Create an access token
POST/oauth/token
Creates an access token for the specified user credentials, the access token will last for 4 weeks. It can be used as a bearer token to access protected endpoints.
Request
- application/json
Body
required
scope stringrequired
Possible values: [trusted public
]
Scope
grant_type stringrequired
Possible values: [password
]
Grant type
email stringrequired
User email
password stringrequired
User password
Responses
- 201
Obtain access token using users credentials
- application/vnd.api+json
- Schema
- Example (from schema)
Schema
access_token stringrequired
Access token
token_type stringrequired
Token type
expires_in integerrequired
Token expiration time in seconds
scope stringrequired
Scope
created_at integerrequired
Token creation time in seconds
{
"access_token": "412e4ce497df832272db63c627a00...",
"token_type": "Bearer",
"expires_in": 2419200,
"scope": "trusted public",
"created_at": 1582219200
}
Loading...