Create User Access Token
POST/api/v1/organisations/me/users/:id/access_tokens
Allow admin to generate access tokens for group_manager and business manager users from organisation
Request
Path Parameters
id stringrequired
- application/vnd.api+json
 
Body
required
data
object
required
id stringrequired
type stringrequired
Possible values: [users]
Responses
- 201
 
Returns access token for given user
- 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
refresh_token stringrequired
Token that can be used to obtain new access token
scope stringrequired
Scope
created_at integerrequired
Token creation time in seconds
{
  "access_token": "412e4ce497df832272db63c627a00...",
  "token_type": "Bearer",
  "expires_in": 2419200,
  "refresh_token": "KF0Pwsoz9bDyglLsvDN9hee2_gtF...",
  "scope": "trusted public",
  "created_at": 1582219200
}
Loading...