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

Body

{
  "api_key": "1k7vE7ZhZVHWVtsV"
}

Response

Status

200

Headers

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

Body

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