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

Body

{
  "api_key": "WJZKShG8EkTENY91"
}

Response

Status

200

Headers

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

Body

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