Forums

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

Bitbucket api 2.0 - GPG token always returns invalid or unsupported endpoint which ever used

arun macharla May 18, 2025

Hi,

 

I’ve been trying to add GPG using the REST API. I’ve tried creating an app password from my personal settings and checking on the organisation level to get the API key with the scope account:admin. However, when I give the user’s UUID, I always get the same response: “getting invalid token or not supported endpoint”.

 

Here’s the link to the API documentation: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-gpg/#api-group-gpg

 

Could you please suggest a proper REST API that we can use? We’ve enabled signed commits, and we want to automate the process of adding GPG keys and making signed commits using Jenkins. Additionally, we’d like to be able to delete signed commits every time.

suggest here   

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2025

Hi arun,

That error message implies an issue with the authentication type. Have you tried to use workspace access token or OAuth Token?

Please also provide the cURL command you're executing (minus the GPG key) so I can take a look at the formatting/syntax.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events