Commet
  • Precios
Iniciar SesiónRegistrarse
Create feature POSTDelete feature DELETEGet feature access GETGet feature GETList feature access GETList features GETUpdate feature PUT
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

Get feature

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

Get feature access GET

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

List feature access GET

List all features for a customer's active subscription, scoped by the customerId query parameter.

GET
/features/{code}

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

code*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://commet.co/api/v1/features/string"

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

{
  "success": true,
  "data": {
    "id": "string",
    "name": "string",
    "code": "string",
    "type": "boolean",
    "description": "string",
    "unitName": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt"



{
  "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"
  }
}
:
"2019-08-24T14:15:22Z"
,
"object": "feature",
"livemode": true
}
}