# \#api-token

**URL:** https://community.developer.atlassian.com/tag/api-token/926.md

[Latest](https://community.developer.atlassian.com/latest.md) · [Categories](https://community.developer.atlassian.com/categories.md) · [Tags](https://community.developer.atlassian.com/tags.md)

---

## [Getting 401 response when calling Confluence cloud rest API search](https://community.developer.atlassian.com/t/getting-401-response-when-calling-confluence-cloud-rest-api-search/101900)

<div class="topic-metadata">

**Author:** [@ArriolaSimon](https://community.developer.atlassian.com/u/ArriolaSimon)\
**Replies:** 1\
**Last updated:** [July 24, 2026, 4:21pm UTC](https://community.developer.atlassian.com/t/getting-401-response-when-calling-confluence-cloud-rest-api-search/101900 "2026-07-24T16:21:37Z")

</div>

Hi, I’m trying to call the confluence rest api search function but facing some issues. I’m getting a 401 response even with the correct credentials. Here’s the simple code I’m trying out: curl --request GET –url ‘htt…

---

## [Sourcetree API-Token Issue](https://community.developer.atlassian.com/t/sourcetree-api-token-issue/101752)

<div class="topic-metadata">

**Author:** [@RobertStephenson](https://community.developer.atlassian.com/u/RobertStephenson)\
**Replies:** 2\
**Last updated:** [July 14, 2026, 12:10pm UTC](https://community.developer.atlassian.com/t/sourcetree-api-token-issue/101752 "2026-07-14T12:10:01Z")

</div>

Hello, Two weeks ago, while using Sourcetree, I became aware of the CHANGE-3222. It took me awhile to get my API token setup and working correctly but I was eventually successful and have been able to use sourcetree. T…

---

## [Proper syntax to pull repo from Bitbucket with API token](https://community.developer.atlassian.com/t/proper-syntax-to-pull-repo-from-bitbucket-with-api-token/101182)

<div class="topic-metadata">

**Author:** [@UnrulyNatives](https://community.developer.atlassian.com/u/UnrulyNatives)\
**Replies:** 2\
**Last updated:** [June 11, 2026, 2:46am UTC](https://community.developer.atlassian.com/t/proper-syntax-to-pull-repo-from-bitbucket-with-api-token/101182 "2026-06-11T02:46:36Z")

</div>

Atlassian deprecated ability to pull repos with use of a password. I use Linux Ubuntu VPS at Linode. I am unable to figure out the proper format of the pull command. Please help. I triad over 20 variations of the synta…

---

## [Curl search cql with hex encoded url no longer working](https://community.developer.atlassian.com/t/curl-search-cql-with-hex-encoded-url-no-longer-working/100233)

<div class="topic-metadata">

**Author:** [@TD7200](https://community.developer.atlassian.com/u/TD7200)\
**Replies:** 2\
**Last updated:** [April 16, 2026, 9:48am UTC](https://community.developer.atlassian.com/t/curl-search-cql-with-hex-encoded-url-no-longer-working/100233 "2026-04-16T09:48:19Z")

</div>

We are using a bash script to update content on confluence cloud. First the script is searching a the page id with the page title using $CONFL\_API\_END=https://my-company.atlassian.net/wiki/rest/api/content/ curl -so- …

---

## [How do I generate an API token under a Service Account for Atlassian Compass?](https://community.developer.atlassian.com/t/how-do-i-generate-an-api-token-under-a-service-account-for-atlassian-compass/94952)

<div class="topic-metadata">

**Author:** [@SeanD](https://community.developer.atlassian.com/u/SeanD)\
**Replies:** 3\
**Last updated:** [November 13, 2025, 5:34pm UTC](https://community.developer.atlassian.com/t/how-do-i-generate-an-api-token-under-a-service-account-for-atlassian-compass/94952 "2025-11-13T17:34:21Z")

</div>

As per the title. It’s not clear at all how to get an API token to call the Compass APIs with via a Service Account user. Currently we have some automation that is using an individual person’s access token, but this is …

---

## [I need to fetch the date a token expires from the api](https://community.developer.atlassian.com/t/i-need-to-fetch-the-date-a-token-expires-from-the-api/93478)

<div class="topic-metadata">

**Author:** [@GabrielAC](https://community.developer.atlassian.com/u/GabrielAC)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 1:57pm UTC](https://community.developer.atlassian.com/t/i-need-to-fetch-the-date-a-token-expires-from-the-api/93478 "2025-09-04T13:57:11Z")

</div>

I need to fetch the date a token expires from the API to renew my tokens I tried to follow this documentation but i get error 401. my account is not org admin and i can’t access one. I need to somehow use the token itse…

---

## [Forge login using API token shows "Your response is needed to continue"](https://community.developer.atlassian.com/t/forge-login-using-api-token-shows-your-response-is-needed-to-continue/67106)

<div class="topic-metadata">

**Author:** [@KyleLiu](https://community.developer.atlassian.com/u/KyleLiu)\
**Replies:** 8\
**Last updated:** [August 6, 2025, 11:41am UTC](https://community.developer.atlassian.com/t/forge-login-using-api-token-shows-your-response-is-needed-to-continue/67106 "2025-08-06T11:41:27Z")

</div>

Hi everyone, I try to login using forge login command, with my email and API token. It works at the first time, but after I call forge logout and try to log in again, it shows “Your response is needed to continue”. S…

---

## [Cannot create issues using Jira Cloud REST API](https://community.developer.atlassian.com/t/cannot-create-issues-using-jira-cloud-rest-api/93456)

<div class="topic-metadata">

**Author:** [@MohanDarabil](https://community.developer.atlassian.com/u/MohanDarabil)\
**Replies:** 0\
**Last updated:** [July 1, 2025, 7:12am UTC](https://community.developer.atlassian.com/t/cannot-create-issues-using-jira-cloud-rest-api/93456 "2025-07-01T07:12:28Z")

</div>

I’m trying to automate Jira issue creation using the Jira Cloud REST API (/rest/api/3/issue) with a Python script and my API token, but I’m consistently getting a 401 Unauthorized error with the message ‘You do not have …

---

## [Confluence API Token Scope Missing](https://community.developer.atlassian.com/t/confluence-api-token-scope-missing/93332)

<div class="topic-metadata">

**Author:** [@aaronstarr](https://community.developer.atlassian.com/u/aaronstarr)\
**Replies:** 2\
**Last updated:** [June 30, 2025, 2:34pm UTC](https://community.developer.atlassian.com/t/confluence-api-token-scope-missing/93332 "2025-06-30T14:34:08Z")

</div>

Hello, Overview I am trying to get the descendants of a folder in my Confluence space When I create an API Token with no scopes (so all permissions) it works. However, when I create one with scopes it does not, as the…

---

## [Email and token all corect but can not authenticated](https://community.developer.atlassian.com/t/email-and-token-all-corect-but-can-not-authenticated/91924)

<div class="topic-metadata">

**Author:** [@S7Inc](https://community.developer.atlassian.com/u/S7Inc)\
**Replies:** 1\
**Last updated:** [May 13, 2025, 3:08am UTC](https://community.developer.atlassian.com/t/email-and-token-all-corect-but-can-not-authenticated/91924 "2025-05-13T03:08:30Z")

</div>

Test Results (based on logs): Jira API: :cross\_mark: Not connected (401 Unauthorized) Confluence API: :cross\_mark: Not connected (401 Unauthorized) Email and token length are correctly loaded from environment variable…

---

## [Asking about security policy](https://community.developer.atlassian.com/t/asking-about-security-policy/91133)

<div class="topic-metadata">

**Author:** [@HungTranManh](https://community.developer.atlassian.com/u/HungTranManh)\
**Replies:** 3\
**Last updated:** [April 19, 2025, 3:59am UTC](https://community.developer.atlassian.com/t/asking-about-security-policy/91133 "2025-04-19T03:59:40Z")

</div>

Hi, Base on this topic Is this guideline specifically referring to the Jira API token, or does it also apply to any tokens generated by our own app? In our case, we are currently asking users to provide both: Their J…

---

## [API to get API Token expiry time?](https://community.developer.atlassian.com/t/api-to-get-api-token-expiry-time/90218)

<div class="topic-metadata">

**Author:** [@matthias](https://community.developer.atlassian.com/u/matthias)\
**Replies:** 5\
**Last updated:** [March 17, 2025, 10:38am UTC](https://community.developer.atlassian.com/t/api-to-get-api-token-expiry-time/90218 "2025-03-17T10:38:50Z")

</div>

Atlassian recently changed the expiry behavior for API tokens so that you no longer are able to generate API tokens without expiry time. While I understand that this might be more secure if you update your tokens from ti…

---

## [How to generate PAT token in Atlassian JIRA Cloud](https://community.developer.atlassian.com/t/how-to-generate-pat-token-in-atlassian-jira-cloud/86578)

<div class="topic-metadata">

**Author:** [@VaniRudraraju](https://community.developer.atlassian.com/u/VaniRudraraju)\
**Replies:** 1\
**Last updated:** [November 25, 2024, 12:39pm UTC](https://community.developer.atlassian.com/t/how-to-generate-pat-token-in-atlassian-jira-cloud/86578 "2024-11-25T12:39:36Z")

</div>

Hi Team, we are migrating board from Jira to azure devops, so we need to use PAT token in command prompt to export … and we are not able to find option to create PAT token, can you please help how to create or is it pos…

---

## [Jira to ServiceNow webhook security](https://community.developer.atlassian.com/t/jira-to-servicenow-webhook-security/86403)

<div class="topic-metadata">

**Author:** [@AnthonySymons](https://community.developer.atlassian.com/u/AnthonySymons)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 2:44pm UTC](https://community.developer.atlassian.com/t/jira-to-servicenow-webhook-security/86403 "2024-11-20T14:44:56Z")

</div>

Hi We are looking to implement the ServiceNow Jira Webhook (JiraCloud) to enable bi-directional updates. In the push flow from Jira to ServiceNow, the configuration documentation uses API Token. Is it possible to use O…

---

## [Is there a C# example for Jira.CreateRestClient that uses API Token?](https://community.developer.atlassian.com/t/is-there-a-c-example-for-jira-createrestclient-that-uses-api-token/49986)

<div class="topic-metadata">

**Author:** [@zfischer](https://community.developer.atlassian.com/u/zfischer)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 11:14am UTC](https://community.developer.atlassian.com/t/is-there-a-c-example-for-jira-createrestclient-that-uses-api-token/49986 "2024-11-11T11:14:17Z")

</div>

I know there are some examples for HttpRequest/HttpResponse…However I would like to see if there are any code samples that show how to use CreateRestClient with the API token in place of (URL,UserName,Password) Basic au…

---

## [Confluence API returns with Curl and from browser but not Fetch](https://community.developer.atlassian.com/t/confluence-api-returns-with-curl-and-from-browser-but-not-fetch/74270)

<div class="topic-metadata">

**Author:** [@mituller](https://community.developer.atlassian.com/u/mituller)\
**Replies:** 8\
**Last updated:** [October 25, 2024, 5:41pm UTC](https://community.developer.atlassian.com/t/confluence-api-returns-with-curl-and-from-browser-but-not-fetch/74270 "2024-10-25T17:41:07Z")

</div>

I am attempting to return the contents of a Confluence page in React. I am able to get the data from using a web browser hitting the url of the rest api for the page. https://mysite.com/rest/api/content/107776737?expand=…

---

## [Access Tenant Token](https://community.developer.atlassian.com/t/access-tenant-token/83855)

<div class="topic-metadata">

**Author:** [@AbhilashBabu](https://community.developer.atlassian.com/u/AbhilashBabu)\
**Replies:** 1\
**Last updated:** [October 1, 2024, 1:57am UTC](https://community.developer.atlassian.com/t/access-tenant-token/83855 "2024-10-01T01:57:39Z")

</div>

Main Issue: The main issue is that I am unable to link QMetry test cases. According to the QMetry documentation, it is possible to link test cases using the QMetry API key. However, when I attempt to do so, it asks for t…

---

## [API security issue when searching a space for documents using keyword](https://community.developer.atlassian.com/t/api-security-issue-when-searching-a-space-for-documents-using-keyword/82992)

<div class="topic-metadata">

**Author:** [@Dwhapham](https://community.developer.atlassian.com/u/Dwhapham)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 8:20pm UTC](https://community.developer.atlassian.com/t/api-security-issue-when-searching-a-space-for-documents-using-keyword/82992 "2024-08-28T20:20:02Z")

</div>

Hi All. I’m a seasoned C# developer who is tyring ot use the Atlassian API to search a space for a document using a keyword. I created an API key, but I’m getting the “Forbidden” error when making a query. Once a key is …

---

## [Jira API integration - 3 questions](https://community.developer.atlassian.com/t/jira-api-integration-3-questions/82988)

<div class="topic-metadata">

**Author:** [@JeffByers](https://community.developer.atlassian.com/u/JeffByers)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 4:26pm UTC](https://community.developer.atlassian.com/t/jira-api-integration-3-questions/82988 "2024-08-28T16:26:34Z")

</div>

We are developing an app where we collect data from a customer. once we have collected the data we are wanting to to create a service desk ticket on their behalf. Question 1: We were going to use OAuth2 but in trying …

---

## [Config section for Forge App](https://community.developer.atlassian.com/t/config-section-for-forge-app/82105)

<div class="topic-metadata">

**Author:** [@Bhaskar](https://community.developer.atlassian.com/u/Bhaskar)\
**Replies:** 5\
**Last updated:** [July 31, 2024, 3:20pm UTC](https://community.developer.atlassian.com/t/config-section-for-forge-app/82105 "2024-07-31T15:20:59Z")

</div>

Hi Team I am building an app for Jira using Forge where i am invoking Atlassian Org API to get the Users Last Activity Date. however I have to pass the Org API token as a auth header to access the API. I want to create…

---

## [Jira REST API way to get data about api tokens](https://community.developer.atlassian.com/t/jira-rest-api-way-to-get-data-about-api-tokens/82059)

<div class="topic-metadata">

**Author:** [@anon14852691](https://community.developer.atlassian.com/u/anon14852691)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 8:21am UTC](https://community.developer.atlassian.com/t/jira-rest-api-way-to-get-data-about-api-tokens/82059 "2024-07-24T08:21:48Z")

</div>

Hey everyone! Im trying to get data about my company’s api tokens through the Jira REST API and cant find anything that does that. Does anyone have any idea on how to accomplish that? Any piece of data would help, for…

---

## [Blocking application access to frontend Forms APIs](https://community.developer.atlassian.com/t/blocking-application-access-to-frontend-forms-apis/81769)

<div class="topic-metadata">

**Author:** [@janette](https://community.developer.atlassian.com/u/janette)\
**Replies:** 3\
**Last updated:** [July 18, 2024, 11:44am UTC](https://community.developer.atlassian.com/t/blocking-application-access-to-frontend-forms-apis/81769 "2024-07-18T11:44:05Z")

</div>

Hi, In today’s Developer Change Log , you’ve announced that ANNOUNCEMENT Blocking application access to frontend Forms APIs On or after 2 August 2024, we’ll be discontinuing and blocking app access to our frontend F…

---

## [REST API impersonal access token](https://community.developer.atlassian.com/t/rest-api-impersonal-access-token/81156)

<div class="topic-metadata">

**Author:** [@vvotipka](https://community.developer.atlassian.com/u/vvotipka)\
**Replies:** 6\
**Last updated:** [July 4, 2024, 11:19am UTC](https://community.developer.atlassian.com/t/rest-api-impersonal-access-token/81156 "2024-07-04T11:19:24Z")

</div>

Hi, I have an back-end application running in AWS. It reads some events and based on an internal logic times to times it decides to create new Jira issue (or update some existing issue). It already works well for me wit…

---

## [404 when accessing Confluence via Postman](https://community.developer.atlassian.com/t/404-when-accessing-confluence-via-postman/81054)

<div class="topic-metadata">

**Author:** [@MichaelvandenDool](https://community.developer.atlassian.com/u/MichaelvandenDool)\
**Replies:** 2\
**Last updated:** [June 24, 2024, 7:05am UTC](https://community.developer.atlassian.com/t/404-when-accessing-confluence-via-postman/81054 "2024-06-24T07:05:14Z")

</div>

Hi, I’m very new to Confluence and just ‘scratching the surface’ to get my colleagues enthousiastic for Confluence as a knowledgebase. I’ve created a space, added pages and now I want to show them how easy it is to acce…

---

## [Where is API V2 Endpoint](https://community.developer.atlassian.com/t/where-is-api-v2-endpoint/80551)

<div class="topic-metadata">

**Author:** [@LizaWu](https://community.developer.atlassian.com/u/LizaWu)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 4:03am UTC](https://community.developer.atlassian.com/t/where-is-api-v2-endpoint/80551 "2024-06-05T04:03:57Z")

</div>

Hello, I can call API using Rest API with 200 code returned, but getting error 404 error using REST API V2. REST API Endpoint: https://{{YOURORG}}.atlassian.net/wiki/rest/api/search?cql=id != 0 order by lastmodified …

---

## [Refuse to connect](https://community.developer.atlassian.com/t/refuse-to-connect/80190)

<div class="topic-metadata">

**Author:** [@JainDivyanshu](https://community.developer.atlassian.com/u/JainDivyanshu)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 7:41am UTC](https://community.developer.atlassian.com/t/refuse-to-connect/80190 "2024-05-22T07:41:02Z")

</div>

Refused to connect to ‘https://login.microsoftonline.com/12233333333/oauth2/token/oauth2/v2.0/token’ because it violates the following Content Security Policy directive: “connect-src ‘self’ https://api.atlassian.com/meta…

---

## [Running 'forge lint' without credentials?](https://community.developer.atlassian.com/t/running-forge-lint-without-credentials/79694)

<div class="topic-metadata">

**Author:** [@OlegKozlyuk](https://community.developer.atlassian.com/u/OlegKozlyuk)\
**Replies:** 0\
**Last updated:** [May 5, 2024, 7:03am UTC](https://community.developer.atlassian.com/t/running-forge-lint-without-credentials/79694 "2024-05-05T07:03:00Z")

</div>

Hi I’m trying to build a Forge Jira app based on one of the templates. To iterate faster on that that, I’ve built a couple CI workflows to deploy and lint the app code in GitHub private repo. To run ‘forge lint/‘forge d…

---

## [Power-ups for different workspace](https://community.developer.atlassian.com/t/power-ups-for-different-workspace/79233)

<div class="topic-metadata">

**Author:** [@JonatasBatistaSilvaS](https://community.developer.atlassian.com/u/JonatasBatistaSilvaS)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 12:27pm UTC](https://community.developer.atlassian.com/t/power-ups-for-different-workspace/79233 "2024-04-17T12:27:52Z")

</div>

Hello friends, I have a problem where I configure power-ups for different workspaces, where when creating a new power-up for the new workspace it overwrites the previous one. Example: I created two workspaces, one call…

---

## [Using Jira API from simple javascript GET with token auth](https://community.developer.atlassian.com/t/using-jira-api-from-simple-javascript-get-with-token-auth/75784)

<div class="topic-metadata">

**Author:** [@JodeePage](https://community.developer.atlassian.com/u/JodeePage)\
**Replies:** 22\
**Last updated:** [March 29, 2024, 9:17am UTC](https://community.developer.atlassian.com/t/using-jira-api-from-simple-javascript-get-with-token-auth/75784 "2024-03-29T09:17:52Z")

</div>

Can’t seem to get this working, returning 404. URL on its own works fine from a browser tab. var jiraToken = '{MyToken}' const jiraUrl = 'https://{MyOrg}.atlassian.net/rest/api/2/issue/{IssueName}'; fetch(jiraUrl,…

---

## [Constant 401 with new token for Basic auth](https://community.developer.atlassian.com/t/constant-401-with-new-token-for-basic-auth/78513)

<div class="topic-metadata">

**Author:** [@SeanCharles](https://community.developer.atlassian.com/u/SeanCharles)\
**Replies:** 8\
**Last updated:** [March 22, 2024, 5:25pm UTC](https://community.developer.atlassian.com/t/constant-401-with-new-token-for-basic-auth/78513 "2024-03-22T17:25:09Z")

</div>

Hi, I created a key, ran it through the instructions: echo -n myemail:api\_key to get a base64 encoded string, a very long one actually, the super short example of ‘fred:fred’ doesn’t really inspire confidence. My curl…

[Next page](https://community.developer.atlassian.com/tag/api-token/926.md?match_all_tags=true&page=1&tags%5B%5D=api-token)
