Authorize and return API access token
POST/api/v1/token/authorize
Finds an account with provided username and password, if exists and returns new API access token.
Request
- application/json
Body
required
email stringrequired
Email to authorize
Example:
myuser@coolmail.com
password stringrequired
Secret password to authorize
Example:
supersecretpwd
Responses
- 201
- 400
- 401
- 403
- 404
- 409
Login successful, access token created
- application/json
- application/problem+json
- Schema
- Example (from schema)
Schema
token stringrequired
Auth token
refreshToken stringrequired
Refresh token
{
"token": "string",
"refreshToken": "string"
}
- Schema
- Example (from schema)
Schema
token stringrequired
Auth token
refreshToken stringrequired
Refresh token
{
"token": "string",
"refreshToken": "string"
}
Constraint violation
- */*
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Invalid API token provided
- application/problem+json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
AccessDeniedException
- */*
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Account with provided credentials was not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Account not active.
- application/problem+json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties
object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Loading...