POST - /token
General Information
Service | API | Method | Data Models | Workflow |
---|---|---|---|---|
oauth | /token | POST | N/A | N/A |
Description
This API allows the user to login and create an access and refresh token.
Input
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
username | Body | NO | String | N/A | Username |
password | Body | NO | String | N/A | Password |
grant_type | Body | YES | String | "enum": ["refresh_token", "password"] | Grant Type |
refresh_token | Body | NO | String | N/A | Refresh token |
Output
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Invalid Response
SOAJS Error Codes
Code | Description |
---|---|
406 | Missing Tenant secret |
414 | Local login is not allowed |
503 | You do not have privileges to enable pin login |
503 | Unable to log in the user. User not found |