Skip to main content
POST
/
v1
/
tokens
/
verify
Verify a grant token online
curl --request POST \
  --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/tokens/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "valid": true,
  "grantId": "<string>",
  "scopes": [
    "<string>"
  ],
  "principal": "<string>",
  "agent": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Developer API key

Body

application/json
token
string
required

Response

Verification result

valid
boolean
grantId
string
scopes
string[]
principal
string
agent
string
expiresAt
string<date-time>