post
https://{targetURL}/api/v1/auth/user/exchangeToken
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Unknown requestToken
401Authentication failed