Validate auth token
POST /api/v1/users/validate/token
Description
This endpoint helps to validate an authentication token
Request
The endpoint expects a JSON payload in the request body with the following:
-
"userAgent": This should be replaced with the user agent string of the client making the request. -
"requestUrl": This should be replaced with the URL of the request. -
"token": This should be replaced with the authentication token you want to validate. -
Header:
-
Key:
authorizer-api-key(Required) -
Key:
authorizer-api-code(Required) -
Key:
Content-Type:application/json -
Key: Authorization:
Bearer {{bearerToken}}
-
URL: /api/v1/users/validate/token: This is the main path of the endpoint. It indicates that you want to validate an authentication token.
Response: The response is "Created" with a code of 201.
/api/v1/users/validate/token
Headers
| Content-Type | Value |
|---|---|
| authorizer-api-key | string |
Headers
| Content-Type | Value |
|---|---|
| authorizer-api-code | string |
Headers
| Content-Type | Value |
|---|---|
| Content-Type | application/json |
Body (raw)
{
"userAgent": "<string>",
"requestUrl": "<string>",
"token": "<string>"
}
Response: 201
LANGUAGE
CURL REQUEST
curl --request POST \
--url /api/v1/users/validate/token \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!