How do I Create a Label Studio Auth Token via the API?

Sam Thompson: Re: Authorization

Hey!

I am able to access a token from the user account page - is there a way to make a request to the LabelStudio API that returns a token in the response?

Thanks in advance!

Erin (Label Studio): Hey @Sam Thompson you’ll have to have the token in order to use the API — are you talking about an Oauth token for authentication?

Sam Thompson: Yes, I was wondering if there was an alternate way to retrieve a token that wasn’t directly via the interface!

abubakar.saad.891: Hello Sam,

Try this endpoint: https://labelstud.io/api#operation/api_current-user_token_list

Note: This post was generated by the Label Studio Archive Bot from a conversation in the Label Studio Slack, a gathering place for the Label Studio community. Someone in the community thought this was worth sharing!

If this post answered a question for you, hit the Like button - we use that to assess which posts to put into docs.

archivebot: Gosh, this is an interesting conversation - I’ve filed a copy at http://community.labelstud.io/t/how-do-i-create-a-label-studio-auth-token-via-the-api/47 for future reference!