/token
✅ Email as user_id
user_id
These are the possible response codes when you make an API call to the /token
endpoint using an email address as user_id
.
WarningIf the
/token
endpoint receives five (5) attempts (either successful or failed) within a minute, it will return a429 Too Many Requests
error response. This will block the user account for 5 minutes and will automatically be unblocked when the time has passed.
Response code | Error | Message | Scenario | Resolution |
---|---|---|---|---|
| "Could not send request" | Invalid environment name | Use the correct environment name. | |
200 OK | "bearer" value | Get access_token successfully | ||
200 OK | "bearer" value |
| ||
200 OK | "bearer" value | Removed | ||
400 Bad Request |
| "Invalid json format" | Empty payload | Add the payload. |
400 Bad Request |
| "Invalid json format" | Invalid JSON format used in the payload. | Use correct JSON format for the payload. |
400 Bad Request |
| "Invalid API usage" | Invalid environment ID | Use a valid environment ID. |
403 Forbidden |
| "Forbidden" | Invalid | Use a valid |
403 Forbidden |
| "Forbidden" | Invalid | Use a valid |
422 Unprocessable Entity |
| "client_id": { no error description | Missing | Enter the |
422 Unprocessable Entity |
| "client_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "grant_type": "unsupported" no error description | Invalid | Use a valid |
422 Unprocessable Entity |
| "grant_type": "unsupported" no error description | Missing | Enter the correct |
422 Unprocessable Entity |
| "grant_type": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "auth_type": { | Invalid | Use a valid |
422 Unprocessable Entity |
| "auth_type": { no error description | Missing | Enter the correct |
422 Unprocessable Entity |
| "auth_type": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "redirect_uri": { no error description | Invalid | Enter a valid |
422 Unprocessable Entity |
| "redirect_uri_mismatch expected value: xxxxxxxxxxxx received value: " "redirect_uri does not match expected value" | Missing | Add a valid |
422 Unprocessable Entity |
| "redirect_uri": "field required" | Remove | Add a valid |
422 Unprocessable Entity |
| "authorization_code expired" | Expired | Use a fresh |
422 Unprocessable Entity |
| "code": "missing" no error description | Missing | Enter the correct |
422 Unprocessable Entity |
| "code": "missing" no error description | Removed | Add the |
422 Unprocessable Entity |
| "user_id": { no error description | Invalid | Enter a valid |
422 Unprocessable Entity |
| "user_id": { | Missing | Add valid |
422 Unprocessable Entity |
| "user_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "305": "Expecting '.' delimiter: line x column xx (char 305)" | Invalid | Enter a valid |
422 Unprocessable Entity |
| "302": "Expecting value: line xx column xx (char 302) | Missing | Enter a valid |
429 Too Many Requests |
| "Too many requests" | Attempts rate limit exceeded ( 5 attempts in one minute) | Limit calls to the endpoint within the rate limit. |
503 Service Temporarily Unavailable | "Backend action does not exist" | Invalid version code | Enter the correct |
✅ Mobile phone number as user_id
user_id
These are the possible response codes when you make an API call to the /token
endpoint using a mobile phone number as user_id
.
Responses code | Error | Message | Scenario | Resolution |
---|---|---|---|---|
| "Could not send request" | Invalid environment name | Enter the right environment name | |
200 OK | "bearer" value | Get | ||
200 OK | "bearer" value |
| ||
200 OK | "bearer" value | Removed | ||
400 Bad Request |
| "Invalid API usage" | Invalid environment ID | Enter the correct environment ID. |
403 Forbidden |
| "Forbidden" | Invalid | Enter a valid |
403 Forbidden |
| "Forbidden" | Invalid code ( | Enter a valid |
422 Unprocessable Entity |
| "client_id": { no error description | Missing | Enter a valid |
422 Unprocessable Entity |
| "client_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "grant_type": "unsupported" no error description | Invalid | Enter a valid |
422 Unprocessable Entity |
| "grant_type": "field required" | Missing | Enter a valid |
422 Unprocessable Entity |
| "auth_type": { no error description | Invalid | Enter a valid |
422 Unprocessable Entity |
| "auth_type": { no error description | Missing | Enter a valid |
422 Unprocessable Entity |
| "redirect_uri": { no error description | Invalid | Enter a valid |
422 Unprocessable Entity | "invalid_request" | "error_details": "redirect_uri_mismatch expected value: xxxxxxxxxxxx received value: ", | Missing | Enter a valid |
422 Unprocessable Entity |
| "redirect_uri":"field required" | Removed | Add the |
422 Unprocessable Entity |
| "error_description":"authorization_code expired" | Expired | Use a fresh |
422 Unprocessable Entity |
| "code": "missing" no error description | Missing | Add the correct |
422 Unprocessable Entity |
| "code": "missing" no error description | Removed | Add the |
422 Unprocessable Entity |
| "user_id": { no error description | Invalid | Enter a valid |
422 Unprocessable Entity |
| "user_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| Example: "error_details": { | Invalid | Enter a valid |
422 Unprocessable Entity |
| Example: "error_details": { | Missing | Enter a valid |
503 Service Temporarily Unavailable | "Backend action does not exist" | Invalid | Enter a valid | |