Commet
  • Pricing
Log InTry out
Add quota POSTList quota allowances GETGet quota allowance GETRemove quota DELETESet quota PUT
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Get quota allowance

Get the current quota allowance (used vs included) for a specific feature.

List quota allowances GET

Get all quota allowances for a customer across every quota feature in their plan.

Remove quota DELETE

Remove from a customer's quota allowance for a feature. Defaults to 1 if count is omitted. Returns 400 insufficient_balance if the balance would go negative.

GET
/usage/quota

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Query Parameters

customerId?string
featureCode*string

Response Body

application/json

application/json

application/json

curl -X GET "https://commet.co/api/v1/usage/quota?featureCode=string"

Get the current quota allowance (used vs included) for a specific feature.

Feature code

{
  "success": true,
  "data": {
    "livemode": true,
    "featureCode": "string",
    "current": 0,
    "included": 0,
    "remaining": 0,
    "unlimited": true,
    "overageEnabled": true,
    "asOf"

{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}
{
  "success": false,
  "error": {
    "type": "validation_error",
    "code": "string",
    "message": "string",
    "doc_url": "string",
    "param": "string"
  }
}
:
"2019-08-24T14:15:22Z"
}
}