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: fB_k2P3UtOXa1JYWQgNOvw
Client: dFWaJtRvHTpD_oR3gH69yA
Uid: test@example.com

Body

{
  "api_key": "sJzzsvq4RdnApuu9"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: fB_k2P3UtOXa1JYWQgNOvw
Token-Type: Bearer
Client: dFWaJtRvHTpD_oR3gH69yA
Expiry: 1906580682
Uid: test@example.com

Body

{
  "success": true,
  "Access-Token": "44a46ef31c6c150abaadb875ffdf961484306e39cd74574ea75600e018ac1418$$juOjvzU9PZYV5kuUECVXxcVtGcQBb9wwzP/t0MqFrShv9ncJP3EfiB8nTw==--0l2HAzw76bDWqGlF--373VZeylcIOf0o6eEy8WjQ==",
  "Api-Key": "sJzzsvq4RdnApuu9"
}