Commet
  • Pricing
Log InTry out
Create feature POSTDelete feature DELETEGet feature access GETGet feature GETList feature access GETList features GETUpdate feature PUT
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

Get feature access

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

GET
/feature-access/{code}

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

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

code*string

Query Parameters

customerId*string
action?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/feature-access/string?customerId=string"
{  "success": true,  "data": {    "allowed": true,    "code": "string",    "name": "string",    "type": "boolean",    "enabled": true,    "current": 0,    "included": 0,    "remaining": 0,    "overageQuantity": 0,    "overageUnitPrice": 0,    "unlimited": true,    "overageEnabled": true,    "billedQuantity": 0,    "willBeCharged": true,    "reason": "string",    "object": "feature",    "livemode": true  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}
{  "success": false,  "error": {    "type": "string",    "code": "string",    "message": "string",    "param": "string",    "details": null,    "doc_url": "string"  }}

Delete feature DELETE

Delete a feature. Fails if the feature is attached to active plans or has an active add-on.

Get feature GET

Get a single feature definition by code from the organization's feature catalog.