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: eJe--5xL5yPdOGL6ApeR6Q
Client: NQJh2UoR8vseuSVyAPt1NA
Uid: test@example.com

Body

{
  "api_key": "odyKypTp2H2dawiU"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: eJe--5xL5yPdOGL6ApeR6Q
Token-Type: Bearer
Client: NQJh2UoR8vseuSVyAPt1NA
Expiry: 1889903593
Uid: test@example.com

Body

{
  "success": true,
  "Access-Token": "437acbca7916e727d16899f815e310d5aeb46c673b9b9e5bbe63f218c16265f3$$SzPqb1AYwcUFJgIK6F4GRW2mi97GHA4mmUXQ1a2cU2S9QDTDrDedpqtrsQ==--Od3UUKqOvl2rNIYG--wCtqQFq9ErV6YUopCrbwMg==",
  "Api-Key": "odyKypTp2H2dawiU"
}