Skip to main content
POST
/
auth
/
v1
/
rs
/
token
/
verify
VerifyToken in the organization context and return tokens
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/auth/v1/rs/token/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --data '
{
  "token": "Z2VuZXJpYy10b2tlbi1leGFtcGxlLXN0cmluZw..."
}
'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "sessionToken": "c2Vzc2lvbi10b2tlbi1leGFtcGxlLXN0cmluZw...",
  "organizationName": "Organization Name",
  "establishmentId": 1,
  "siteName": "Main site",
  "pinCodeEnabled": false,
  "reportId": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
string
required

Content type, must be "application/json".

Allowed value: "application/json"

Body

application/json
token
string
required

Generic token for various authentication purposes.

Example:

"Z2VuZXJpYy10b2tlbi1leGFtcGxlLXN0cmluZw..."

Response

201 - application/json

Tokens generated successfully

accessToken
string
required

Access token for authentication.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

sessionToken
string
required

Session token for maintaining user sessions.

Example:

"c2Vzc2lvbi10b2tlbi1leGFtcGxlLXN0cmluZw..."

organizationName
string
required

Name of the organization.

Maximum string length: 100
Example:

"Organization Name"

establishmentId
integer | null

Unique identifier of the establishment.

Required range: -9007199254740991 <= x <= 9007199254740991
Example:

1

siteName
string

Name of the site.

Maximum string length: 250
Example:

"Main site"

pinCodeEnabled
boolean

Indicates if the PIN code is enabled for access.

Example:

false

reportId
integer | null

Unique identifier of the report.

Required range: -9007199254740991 <= x <= 9007199254740991
Example:

1