anchor.diff:  [.center]
   image::070-third.png[width=80%]
   
  -NOTE: here is the https://id.atlassian.com/manage-profile/security/api-tokens[shortcut] to this page.
  -
  -Now, click on "Create API token".
  -For the sake of simplicity, I will now just copy this token to the config.
  -
  -When you use the API token, you have to use your email as user name and the token as password.
  -
  -In order not to store the credentials in the config file, we pass them with the `./dtcw` command:
  +NOTE: Here is the https://id.atlassian.com/manage-profile/security/api-tokens[shortcut] to this page.
  +
  +Now, click on **Create API token**.
  +To keep things simple, I will copy this token to the config.
  +
  +(When you use the API token, you have to use your email as your username and the token as the password.)
  +
  +So we don't store the credentials in the config file, we pass them with the `./dtcw` command:
   
   .`./dtcw publishToConfluence -PconfluenceUser=<your email> -PconfluencePass=<your api-token>`
   [%collapsible]
  
positive.code: Now comes the hardest part.
  The configuration of the credentials.
  
  Since I use a cloud instance, I can use an access toke.
  This has to be generated from my central atlassian account.
  
  Navigate to your `Profile`
  
  
negative.code: ]
  ----
  
  Next, I'll set up the API endpoint:
  
  [source, groovy]
  ----
  api = 'https://[yourServer]/[context]/rest/api/'
  ----
  
  In my case, I want to publish to https://arc42-template.atlassian.net.
  My first guess is that the correct endpoint is `https://arc42-template.atlassian.net/wiki/rest/api/` and I can verify this by appending `user/current` to this URL.
  
  https://arc42-template.atlassian.net/wiki/rest/api/user/current
  
  This results in the following output, and proves that I got the right endpoint (no 404).
  
  [source, json]
  ----
  