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: rufxYCY-gnlQ0HuGnzedfQ
Client: dmEY4EQyG6uUUpple4MwkQ
Uid: test@example.com

Body

{
  "api_key": "JrNHSVDLBMcqSqeC"
}

Response

Status

200

Headers

Content-Type: application/json; charset=utf-8
Access-Token: rufxYCY-gnlQ0HuGnzedfQ
Token-Type: Bearer
Client: dmEY4EQyG6uUUpple4MwkQ
Expiry: 1889903594
Uid: test@example.com

Body

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