plan_capacity
One of the error codes on Errors & Rate Limits.
The API returns plan_capacity with HTTP status 402.
A plan limit or monthly allowance is used up (the code varies by endpoint), or the workspace's billing needs attention (billing_locked).
Reference
#What the response looks like
{
"error": {
"code": "plan_capacity",
"message": "...",
"details": null
}
}error.code is stable and safe to branch on. error.message is debugging context, not something to parse. The full list of codes, and the rate limits, are on Errors & Rate Limits.
Was this page helpful?