Get credit runway
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
The workspace's credit forecast: balance, daily burn, the day credits run out and the top spenders. Owners and admins; anyone else gets 404.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidRequest fulfilled, document follows
application/json- response
before_period_end*booleanburn_7d_usd*numberlasts_until?string|nullleft_usd*numbertop_spenders*array<>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" } ]}