/login
✅ Email as user_id
user_id
These are the possible response codes when you make an API call to the /login
endpoint with an email address as user_id
.
Response code | Error | Message | Scenario | Resolution |
---|---|---|---|---|
getaddrinfo ENOTFOUND | Invalid environment value and region in URL | Enter the correct environment ID and region in URL | ||
200 OK |
| Successfully logged in using email | ||
200 OK |
| Missing | ||
200 OK |
| Missing | ||
200 OK |
| Missing | ||
200 OK |
| Removed | ||
400 Bad Request |
|
| Invalid environment ID in URL | Ensure that the environment ID in the URL / API call is correct. |
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. |
401 Unauthorized |
|
| Logged in using unregistered User email and password | Use a registered user email and password. |
401 Unauthorized |
| "error_details": { | Log in attempt with invalid password | |
401 Unauthorized |
|
| Enter an invalid/not existing email address | Enter a valid and existing email address |
403 forbidden |
| Logged in user without access for resource code | Ensure that the user is allowed to access the resource. | |
403 Forbidden |
| Entered an invalid | Enter a valid, existing | |
422 Unprocessable Entity |
|
| Logged in using unverified account | Check if the email address is verified, if not, have the user go through proper verification |
422 Unprocessable Entity |
|
| Missing | Add the |
422 Unprocessable Entity |
| "error_details": {
| Removed | Add the |
422 Unprocessable Entity |
| "auth_type": { | Missing | Add the |
422 Unprocessable Entity |
| { | Removed | Add the |
422 Unprocessable Entity |
| { | Missing | Add the |
422 Unprocessable Entity |
| "{ | Removed | Add the |
422 Unprocessable Entity |
| "user_id": { | Did not enter email address | Enter the email address as |
422 Unprocessable Entity |
| { | Removed | Add the |
422 Unprocessable Entity |
| "error_details": {
| Missing | Enter the |
422 Unprocessable Entity |
| "error_details": { | Removed | Add the |
422 Unprocessable Entity |
| { "error_description": "some inputs are invalid" | Too many login attempts | Limit your requests to within the rate limit of the client or environment. |
✅ Mobile phone number as user_id
user_id
These are the possible response codes when you make an API call to the /login
endpoint with an mobile phone number as user_id
.
Response code | Error | Message | Scenario | Resolution |
---|---|---|---|---|
getaddrinfo ENOTFOUND | "Could not send request" | Invalid environment in URL | Enter the correct environment ID in the URL. | |
200 OK |
| Logged in successfully using mobile phone number | ||
200 OK |
| Missing value for | ||
200 OK |
| Missing value for | ||
200 OK |
| Removed | ||
400 Bad Request |
| Invalid API usage | Invalid environment ID | Use the correct environment ID. |
401 unauthorized |
| Unauthorized | Logged in using unregistered mobile number as | Use a registered mobile number. |
401 unauthorized |
| Unauthorized | Logged in using unverified mobile phone number | Use a verified mobile phone number. |
401 Unauthorized |
| Unauthorized | Missing value for | Enter the |
401 Unauthorized |
| Unauthorized | Removed | Add the |
401 Unauthorized |
| Unauthorized | Invalid | Use a valid |
401 Unauthorized |
| Unauthorized | Missing value for | Enter a valid |
401 Unauthorized |
| Unauthorized | Removed | Add the |
401 Unauthorized |
| Unauthorized | Invalid | Use a valid |
403 Forbidden |
| Forbidden | Invalid | Use a valid |
422 Unprocessable Entity |
| "client_id": {
| Missing value in | Enter a valid |
422 Unprocessable Entity |
| "error_details": { | Removed | Add the |
422 Unprocessable Entity |
| "auth_type": {
| Missing | Enter the |
422 Unprocessable Entity |
| "auth_type": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "error_details": { | Removed | Add the |
422 Unprocessable Entity |
| "grant_type": {
| Missing value for | Enter the |
422 Unprocessable Entity |
| { | Removed | Add the |
422 Unprocessable Entity |
| "user_id": {
| Missing value for | Enter the |
422 Unprocessable Entity |
| "user_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| "error_details": { | Removed | Add |
422 Unprocessable Entity |
| "user_id": {
| Missing value for | Enter the |
422 Unprocessable Entity |
| "user_id": "field required" | Removed | Add the |
422 Unprocessable Entity |
| { "error_description": "some inputs are invalid" | Too many login attempts | Limit your requests to within the rate limit of the client or environment. |
502 Bad gateway |
| Logged in using a self registration account in demo app | ||
502 Service Temporarily Unavailable | Backend action does not exist | Invalid version | Use the correct version. |