Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST API Script to create API Token for a user

ramesh kumar September 12, 2022

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 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
AUG Leaders

Atlassian Community Events