Commet
  • Pricing
Log InTry out
Get feature access GETList features GET
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Get feature access

Get feature access details. Use action=canUse to check if customer can consume one more unit.

Update customer PUT

Update a customer's name, external ID, or metadata.

List features GET

List all features for a customer's active subscription.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

Query Parameters

Response Body

application/json

application/json

GET
/features/{code}
code*string
customerId?string
externalId?string
action?string
curl -X GET "https://commet.co/api/features/string"

Get feature access details. Use action=canUse to check if customer can consume one more unit.

Feature code

Set to 'canUse' to check access

{
  "success": true,
  "data": {
    "code": "string",
    "name": "string",
    "type": "boolean",
    "allowed": true,
    "enabled": true,
    "current": 0,
    "included": 0,
    "remaining"





{
  "success": false,
  "code": "string",
  "message": "string",
  "details": null
}
:
0
,
"overage": 0,
"overageUnitPrice": 0,
"unlimited": true,
"overageEnabled": true
}
}