Skip to main content
POST
/
api
/
v1
/
auth
/
validate
Validate an access token
curl --request POST \
  --url https://app.mlm-platform.com/api/v1/auth/validate \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-api-key: <api-key>' \
  --data '
{
  "token": "<string>"
}
'
{
  "valid": true,
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "expiresAt": "2023-11-07T05:31:56Z",
  "scopes": [
    "<string>"
  ]
}

Authorizations

x-tenant-api-key
string
header
required

Tenant API key for authentication

Body

application/json
token
string
required

Response

200 - application/json

Validation result

valid
boolean
userId
string<uuid>
tenantId
string<uuid>
expiresAt
string<date-time>
scopes
string[]