Authenticate Whitelabel User

Authenticates a whitelabel user and returns a JWT embed token. This token can be used for subsequent authenticated requests on behalf of the whitelabel user.

POST/organizations/authenticate

Authenticates a whitelabel user and returns a JWT embed token.

Body application/json

user_idstring<uuid>required

UUID of the whitelabel user.

Response

OK

access_tokenstring

JWT token for the whitelabel user.

token_typestring
expires_ininteger

Bad Request

codestring
messagestring

Unauthorized

codestring
messagestring
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/organizations/authenticate" \
  -H "Content-Type: application/json" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>" \
  -d '{
  "user_id": "00000000-0000-0000-0000-000000000000"
}'
Response
{
  "access_token": "string",
  "token_type": "Bearer",
  "expires_in": 86400
}