Pular para o conteúdo principal
GET
/
authentication
/
generate-access-token
Obtém credenciais idToken e refreshToken usando a API Key da empresa.

Endpoint

GET /authentication/generate-access-token
Este endpoint é GET e não aceita corpo. Envie o cabeçalho authorization: ApiKey <sua_api_key>.
Cabeçalhos
authorization: ApiKey sk_live_xxx

Respostas

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
}
Exemplo cURL
curl -X GET "https://gateway.orkeia.ai/authentication/generate-access-token"           -H "authorization: ApiKey sk_live_xxx"