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: FiL4Nb7GxwtkkWhFnvzBTg
Client: wPN-r8BHknnqnFnI0N9apw
Uid: test@example.com

Body

{
  "api_key": "EBHwQWkjXWh2118d"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: FiL4Nb7GxwtkkWhFnvzBTg
Token-Type: Bearer
Client: wPN-r8BHknnqnFnI0N9apw
Expiry: 1876514669
Uid: test@example.com

Body

{
  "success": true,
  "Access-Token": "4cfeaa32b4ff90b0536bdbe6c531de4440b944237cb87f9b54a2f12c2d23f5e1$$dpiMlNwoB/5gn35/XH/ba43PLUaQeEvUbSh4/GULvixnGHa+V5GI6l8Xmw==--RzPI7QjOVqf5SZov--6Z3JH70nht2As+b9BDspxw==",
  "Api-Key": "EBHwQWkjXWh2118d"
}