Skip to main content
POST
/
verify
Verify token.
curl --request POST \
  --url https://lab.trustos.telefonicatech.com/id/v2/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "method": "POST",
  "endpoint": "/certificates"
}'
{
  "statusCode": 200,
  "message": "Token verified sucessfully",
  "data": "Valid token"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Data needed for verifying authN and authZ.

method
string
required

The endpoint's method.

Example:

"POST"

endpoint
string
required

The endpoint's path.

Example:

"/certificates"

Response

Successful token verification.

statusCode
number

Request status code.

Example:

200

message
string

Message returned by the request.

Example:

"Token verified sucessfully"

data
string

Data returned by the request.

Example:

"Valid token"

I