Syndai Docs

Get extra usage

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

GET
/api/v1/external/coding/extra-usage

Read the workspace's extra usage: whether it is on, its monthly limit, what it has used this month, and whether you may change it. Any member may read it.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

customer_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
can_manage*boolean
cancel_at_period_end*boolean
enabled*boolean
invoice_period_end?|null
limit_note?string|null
monthly_limit_usd?number|null
state*string
subscription_status?string|null
usage?|null
usage_markup*number
version*integer
weekly_limit_usd?number|null
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/extra-usage'
Example Response
{  "can_manage": true,  "cancel_at_period_end": true,  "enabled": true,  "invoice_period_end": "2019-08-24T14:15:22Z",  "limit_note": "string",  "monthly_limit_usd": 0,  "state": "string",  "subscription_status": "string",  "usage": {    "accrued_this_month_usd": 0,    "accrued_this_week_usd": 0,    "held_usd": 0,    "month_resets_at": "2019-08-24T14:15:22Z",    "monthly_limit_usd": 0,    "remaining_usd": 0,    "state": "string",    "week_resets_at": "2019-08-24T14:15:22Z",    "weekly_limit_usd": 0  },  "usage_markup": 0,  "version": 0,  "weekly_limit_usd": 0}
Was this page helpful?