Get authentication token
POST/authentications/tokens
Get authentication token
Request
Path Parameters
organizationId string
- application/json
Body
required
account stringrequired
The account of user.
password stringrequired
The password of user.
Responses
- 200
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
Data of the token.
token stringrequired
accessToken stringrequired
tokenType stringrequired
refreshToken stringrequired
idToken stringrequired
expiresIn stringrequired
{
"data": {
"token": "string",
"accessToken": "string",
"tokenType": "string",
"refreshToken": "string",
"idToken": "string",
"expiresIn": "string"
}
}
{
"data": {
"token": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"accessToken": "ACCESS_TOKEN",
"tokenType": "Bearer",
"refreshToken": "REFRESH_TOKEN",
"idToken": "Bearer yJhbxxxxxxxxxxb",
"expiresIn": "86400000"
}
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The resource hasn't found.
message stringrequired
The resource hasn't found message.
{
"error": "string",
"message": "string"
}
{
"error": "ResourceNotFound",
"message": "The requested resource could not be found."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}
Loading...