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: xpuDznSsW3nJn06SDzkh8A
Client: zi3mKZ3BAI39t-0cYWtYXA
Uid: test@example.com

Body

{
  "api_key": "vMVD2nH75srzTQ8P"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: xpuDznSsW3nJn06SDzkh8A
Token-Type: Bearer
Client: zi3mKZ3BAI39t-0cYWtYXA
Expiry: 1880664507
Uid: test@example.com

Body

{
  "success": true,
  "Access-Token": "e12f681cc1af664182f7d4374215fdfff1c6d3d6a653c5c39242a5af5482f313$$7V7GX3br2Cm72IUiLMt560PJsaSB/I9SnwC+Ei0tnQUBxCzy19t0UTYt0Q==--n+MQYSRVp28Rj03y--IfhQ02ZGN9Fu+fNc6DW7bg==",
  "Api-Key": "vMVD2nH75srzTQ8P"
}