Skip to main content
Weavr API
Access tokens

Create an access token

POST/access_token

Exchange an auth token for an access token, which authorizes identity-scoped API calls.

You need a new access token after a user signs in with a password or biometrics, when a user with access to multiple identities selects an identity, or when the current access token expires. Specify identity to choose which identity the access token authorizes. If the user has access to only one identity, identity is optional.

Request

Request body

*
application/json
{}
objectobject · 3 fields

Responses

200OK

Success

Headers
Body
application/json
{}
objectobject · 4 fields
Response example
{  "token": "string",  "identity": {    "type": "CONSUMER",    "id": "123456789"  },  "credentials": {    "type": "USER",    "id": "987654321"  },  "status": "STANDARD"}