Syndai Docs

Get credit runway

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/coding/customers/{customer_id}/credit-runway

The workspace's credit forecast: balance, daily burn, the day credits run out and the top spenders. Owners and admins; anyone else gets 404.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid

Response Body

Request fulfilled, document follows

application/json
  1. response
before_period_end*boolean
burn_7d_usd*number
lasts_until?string|null
left_usd*number
top_spenders*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/credit-runway'
Example Response
{  "before_period_end": true,  "burn_7d_usd": 0,  "lasts_until": "string",  "left_usd": 0,  "top_spenders": [    {      "amount_usd": 0,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "kind": "string",      "options": [        "check_less_often"      ],      "title": "string"    }  ]}
Was this page helpful?