Plans

Tenant plan switches

The switches a tenant action is gated on, so the client hides or disables it before the server answers 409 `planLimit`: `features.csv` (CSV upload and download), `features.webhook` (configure / preview / send the webhook), `maxUsers` (cap -1 = unlimited; `used` is null when unlimited). No plan row: every switch true, cap -1.

GET
/api/v2/tenants/{id}/plan/features

Authorization

BearerAuthObject
AuthorizationBearer <token>

Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/plan/features"
{  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "plan": {    "code": "included",    "name": "Included"  },  "features": {    "csv": false,    "webhook": false  },  "maxUsers": {    "cap": 2,    "used": 1  }}
{  "message": {    "error": "Your request was made with invalid credentials."  }}
{  "message": {    "error": "You are not allowed to perform this action."  }}
Empty