Sessions

• using username and password with invalid api key

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: CwWi4z00z_qorfGSFKaPvQ
Client: 862dr7j11mxgw_55qTzP9Q
Uid: test@example.com

Body

{
  "api_key": "WVbMn7EKSEHDftKk"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: CwWi4z00z_qorfGSFKaPvQ
Token-Type: Bearer
Client: 862dr7j11mxgw_55qTzP9Q
Expiry: 1906580683
Uid: test@example.com

Body

{
  "success": false,
  "errors": {
    "messages": [
      "Invalid API credentials"
    ]
  }
}