Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,413
Community Members
 
Community Events
168
Community Groups

REST API Script to create API Token for a user

Hi Team,

Could you please help me where can i get a script (REST API) to generate API token for with user credentials. I want to create an API token, then run a script then one script executes successfully, I need to revoke API Token.

 

Thanks in advance

1 answer

1 vote
Mikael Sandberg Community Leader Sep 12, 2022

Currently there is no endpoint for creating API tokens, the only thing you can do is get and delete a token. Based on this suggestion, ID-6829, Atlassian does not intend to create an endpoint that would allow you to create API tokens via REST API. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events