Skip to main content
GET
/
companies
/
{id}
/
credits
Endpoint
GET /companies/{id}/credits
Authentication: authorization: {idToken} Parameters Send the company id via query parameter
FieldTypeDescription
creditintNumber of available credits/tokens
cURL Example
curl -X GET "https://gateway.orkeia.ai/companies/12345/credits"           -H "authorization:  <your_idToken>"

Responses

Response - Success

response
{
  "status": "OK",
  "data": {"12345"}
}

500 — Bad Request

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

400 — Client Error

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