Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain an API token for company wiki?

Roman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2023

I understand I can obtain a token here:

https://id.atlassian.com/manage-profile/security/api-tokens

 

But will this token be visible when I trying to access my own company's wiki?

 

Looking at this curl cmd:

curl --request GET \ --url 'https://your-domain.atlassian.net/wiki/rest/api/content/{id}/restriction' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'

 

What if my domain doesn't live on atlassian.net?

 

Here is the error message I see:

Basic Authentication Failure - Reason : AUTHENTICATED_FAILED

 

Doesn't seem like my company email and API token obtained from atlassian.com work

 

 

1 answer

1 accepted

1 vote
Answer accepted
Sagar Mahajan
Community Champion
October 20, 2023

Hi @Roman  If you are using self hosted Confluene instance (Confluence Datacenter) then please follow the below document to for how to generate a API token in self hosted instance

https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html

The token generated from https://id.atlassian.com/manage-profile/security/api-tokens is used in Cloud version and not in Datacenter one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events