Get extra usage
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id?|nullRequest fulfilled, document follows
application/json- response
can_manage*booleancancel_at_period_end*booleanenabled*booleaninvoice_period_end?|nulllimit_note?string|nullmonthly_limit_usd?number|nullstate*stringsubscription_status?string|nullusage?|nullusage_markup*numberversion*integerweekly_limit_usd?number|nullcurl -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}