Saltar al contenido principal
GET
/
authentication
/
generate-access-token
Obtiene credenciales idToken y refreshToken usando la API Key de la empresa.

Endpoint

GET /authentication/generate-access-token
Este endpoint es GET y no acepta cuerpo. Envíe el encabezado authorization: ApiKey <su_api_key>.
Encabezados
authorization: ApiKey sk_live_xxx

Respuestas

Response - Éxito

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

500 — Solicitud Incorrecta

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

400 — Error del Cliente

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