Exchange an add-on request token for an API token

Exchanges a request token (generated during the Add-on authentication flow) for a user API token. Put the returned apiToken in the api_key header to authenticate all other API calls.

Request tokens expire one minute after creation and are consumed on first exchange — request a fresh one if this call returns 400 or 401. Use this endpoint instead of `POST /user` when an add-on has already authenticated the user on your side and you just need to obtain their elab API token.

Example:
```
{
    "requestToken": "abc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1"
}
```
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
Headers
string
Defaults to Swagger
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

400

Unknown requestToken

401

Authentication failed

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/json