Authenticate using credentials
POST/login
Authenticate using credentials
Request
Header Parameters
Every request should has X-Domain Header, in the UUIDv4 format. The X-Domain can be get from the Tenant Integrations page
An X-API-KEY key is a token that a client provides with a X-API-SECRET when making API calls, used instead of the JWT
An X-API-SECRET key is a token that a client provides with a X-API-KEY when making API calls, used instead of the JWT
- application/vnd.api+json
Body
data
object
attributes
object
An email of the registered user
An password of the registered user
Responses
- 200
- 422
- 500
Successfully authorized
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
data
object
The authorisation code that should be changed to the JWT token
The id of the auth code internal
{
"data": {
"type": "auth_codes_internal",
"id": "7e48b1a4-ccfc-4c6b-b03f-d9bb9ac4f883"
}
}
The credentials is not equal to the saved values for user
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The response status code of the error
The title of the error
{
"status": 422,
"code": 0,
"title": "Wrong Credential"
}
That means something has gone wrong on the server, and the server returns more specific about what the exact problem is
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
The type of the error
The status of the error
The title of the error
The request body
The internal trace
{
"id": {},
"type": "errors",
"links": [
"string"
],
"status": 0,
"code": 0,
"title": "string",
"detail": "string",
"source": {},
"meta": {}
}