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

Sam Thompson: Re: Authorization


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:

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 for future reference!