Skip to main content

Validate Access Token


https://api.deadsimplechat.com/consumer/api/v1/user/accessToken/validate

Validate Access Token

This endpoint lets you validate the accesstoken

Validate Access Tokendescription
Parameters
Query
publicKeystringYour account public key
Body
accessTokenstringaccessToken of the user you wish to validate.

Responses

200

JSON

{
"_id": "612ab0a47b577208b5f34",
"username": "jon",
"parentCustomerAccount": "5cb71cdd82ba0042fb43f",
"createdUsingApi": true,
"chatRoom": "5f3978eaf3b23047fbfab7a6",
"isModerator": true,
"externalUserId": "undefined",
"customer": "5cb71cdd82ba6b00042fb43f",
"created": "2021-08-28T21:54:44.371Z",
"updated": "2021-08-28T21:54:44.371Z",
"__v": 0,
"iat": 1630187684
}

400

JSON
{
"message": "invalid accessToken"
}