v1

latestOpenAPI 3.0.02026-07-24161215397.4 KB
Auth

Validate JWT token

Validate the provided JWT token and retrieve user information from the token.

Required scopes: flex.user.auth.verify

post/api/v2/organizations/{orgSlug}/auth/verify

Path parameters

orgSlugstring required

organization slug

Request body

tokenstring required

The JWT token to verify.

Example request

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4NDZmMjhhZmY1ZDg4MTI2YWJjZmMzZiIsImlhdCI6MTQ4MTExNjQwOCwiZXhwIjoxNDgxMjg5MjA4fQ.ElceBwjTRBhu669SWkn_Za8VKk-cwomzmbEsNywPt5A"
}

Response

isValidboolean

A flag indicating whether the token is valid.

userstring

The user reference.

memberstring

The _id of the member associated with the user.

companystring

The _id of the company associated with the user.

Example response

{
  "isValid": true,
  "user": "6080186f490fcf6e0537ec62",
  "member": "6080186f490fcf6e0537ec67",
  "company": "6080186f490fcf6e0537ec68"
}