Sessions

• using username and password

Endpoint

POST /api/v2/auth/generate_access_token

Parameters

Name Description type
api_key required api key string

Request

Route

POST /api/v2/auth/generate_access_token

Headers

Accept: application/json
Content-Type: application/json
Access-Token: tiWatX-NzxIbBsKZ8UGngA
Client: XQ4hTEs438xnpVQW054uVQ
Uid: test@example.com

Body

{
  "api_key": "YxBfhrb994UMR8dz"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: tiWatX-NzxIbBsKZ8UGngA
Token-Type: Bearer
Client: XQ4hTEs438xnpVQW054uVQ
Expiry: 1894737362
Uid: test@example.com

Body

{
  "success": true,
  "Access-Token": "9b231d342b91236ce8ddd7a00cd632ac84be5067e8e018efc1e5c9e89c748448$$cjYqgk2lka0EshpRh+dzBheQM412ridsbGoe2OjU9w5B597QrdW+halhNw==--PBaaitYv6kKctB/g--2EZNNQ4RxZzPoOcQlLgpkA==",
  "Api-Key": "YxBfhrb994UMR8dz"
}