Get JWT token from authentication
POST/login/code/:code
The request to get a JWT token. Most of the requests should include an Authentication Bearer token in the header
Request
Path Parameters
The code can be received from the body of a Authentication request to the authentication server
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
Request body should contains data
data
object
Request body should contain a current tenant id
The current tenant id
Responses
- 200
- 500
The user successfully authorized to the Trisk
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
attributes
object
Authentication Bearer token that should be used as a header in most requests
{
"type": "session",
"attributes": {
"token": "string"
}
}
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": {}
}