Login and Retrieve Access Token
POST/api/v1/auth/login
deprecated
Login and Retrieve Access Token
Request​
- application/json
Body
password stringrequired
Possible values: non-empty
Password of the user used to retrieve access token, e.g. acme123
username stringrequired
Possible values: non-empty
Username of the user used to retrieve access token, e.g. [email protected]
Responses​
- 200
- 400
- 401
- 422
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
data
object
orgName string
Name of the organization the user belongs to
token stringrequired
Authentication token used for every API request
{
"data": {
"orgName": "Acme Corp",
"token": "8847eae8-9ef1-123-abc"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
errors object
message string
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Internal Error
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
errors object
message string
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Loading...