Forums

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

Reqeust limitation

yuan ming
April 9, 2026

Hi Atlassian Team,

I have a question about the 'X-RateLimit-Limit','X-RateLimit-Resource' and 'X-RateLimit-NearLimit' for response header.

I can't get the Rate limit response headers when I reqeust any rest api, I want to know how can I get it when I request rest api?

3 answers

1 accepted

0 votes
Answer accepted
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 12, 2026

Hi @yuan ming 

May I know if you're using access token for authentication? Only access token authentication supports the 'X-RateLimit-Limit','X-RateLimit-Resource' and 'X-RateLimit-NearLimit' response headers.

I'd also like to know which endpoint you're querying, as not all endpoints support these headers.

Cheers!

- Ben (Bitbucket Cloud Support)

yuan ming
April 13, 2026

Hi Ben,
I use the Oauth cusotmer to reqeust 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commit/{commit}/comments/{comment_id}' this restapi, if not, can you tell me which restapi support these response headers?

 

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2026

Hi @yuan ming 

OAuth Consumer will not work either, you need to use either Repository, Workspace or Project Access Tokens for this header to appear:

The /2.0/repositories endpoint you've specified does support that header, so should be visible when you use it (provided you're using RAT/WAT/PAT for authentication)

Cheers!

- Ben (Bitbucket Cloud Support)

yuan ming
April 14, 2026

Hi @Ben ,

For your answer is useful for me, and I have another question, How about I use Oauth Customer token to simulate user token or Atlassian API token? can I use these token to get these request headers?

 

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 14, 2026

Hi @yuan ming 

Unfortunately, this will not work. Only repository/project/workspace access tokens return this header.

Cheers!

- Ben (Bitbucket Cloud Support)

yuan ming
April 14, 2026

got it, Thank you Ben

0 votes
Aron Gombas _Midori_
Community Champion
April 10, 2026

@yuan ming 

The rate limit response headers you mentioned (X-RateLimit-Limit, X-RateLimit-Resource, X-RateLimit-NearLimit) are not necessarily returned on every single API response!

They typically start appearing when your usage is approaching the rate limit threshold. If your request volume is low, you may not see them at all in the response.

yuan ming
April 11, 2026

but when I request volume is approaching or exceeding the rate limit threshold and still can't see these response headers企业微信截图_17759781448306.png

yuan ming
April 12, 2026

I continued to request APIs and log request headers until I encountered an error of 429 too many requests, but I did not find these few request headers

0 votes
yuan ming
April 9, 2026

aa.pngbb.png

these are all my response headers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events