Skip to main content
GET
/
authentication
/
generate-access-token
It obtains idToken and refreshToken credentials using the company’s API Key.

Endpoint

GET /authentication/generate-access-token
This endpoint is GET and does not accept a body. Send the header authorization: ApiKey <your_api_key>.
Headers
authorization: ApiKey sk_live_xxx

Responses

Response - Success

{
"status": "OK",
"data": {
  "idToken": "eyJhbGciOi...",
  "refreshToken": "AbCdEf...123",
  "expiresIn": 3600,
  "userId": null
  }
}

500 — Bad Request

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
cURL Example
curl -X GET "https://gateway.orkeia.ai/authentication/generate-access-token"           -H "authorization: ApiKey sk_live_xxx"