POST
/auth/tokenAuthentication
This endpoint authenticates the validity of a username and password combination. A valid token will be generated if the authentication is successful. Use the username and password provided to you in your ReviewsAPI packet.
POST
/auth/tokenMandatory Fields
- userName
- password
Bearer Token Authentication
The access token must be appended to the 'Authorization Header' as depicted in the example below:
Authorization: Bearer A90324XXZUZUgpO0dd6npHcM83CJ...Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | Required | none | |
» userName | body | string | Required | It represents the username of the user. |
» password | body | string | Required | It represents the password associated with the user. |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authentication Failed or Account validity expired | None |
| 404 | Not Found | User Not Found | None |
| 500 | Internal Server Error | Internal server error | None |
Code Samples
# You can also use wget
curl -X POST /auth/token \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'Body parameter
{
"userName": "string",
"password": "string"
}Example responses
200 Response
{
"accessToken": "string",
"tokenType": "Bearer",
"expiresIn": "1d",
"userName": "string",
".issued": "2025-05-06T14:15:22Z",
".expires": "2025-05-06T14:15:22Z"
}Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.