Work in progress. Some documented features are not live yet.

Check usage

POST
/v1/check

Checks subscription allowances and the current credit balance without reserving usage or credits. Tracking enforces both again atomically.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/check" \  -H "Content-Type: application/json" \  -d '{    "identity": "string",    "feature": "string"  }'
{  "allowed": true,  "creditKey": "string",  "amountNanocredits": "string",  "balanceNanocredits": "string",  "periodStart": 0,  "periodEnd": 0,  "limit": {    "limit": 0,    "used": 0,    "remaining": 0,    "periodStart": 0,    "periodEnd": 0,    "overage": "block"  },  "reason": "feature_limit_exceeded"}