Update sub-account features
Merge feature flags into the sub-account. Flags you send overwrite existing ones; flags you don't send are kept.
PATCH
https://api.centerfy.ai/webhooks/inbound/agency/sub-accounts/:id/features Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your agency API key (cfy_…) | Agency (organization-wide) API key, created in the agency workspace under Settings → API Keys (“Agency API Keys”; the tab only appears on White Label or SaaS Mode plans). Or send Authorization: Bearer <key>; x-api-key wins if both are present. Keys must start with cfy_. A sub-account key is rejected with 401. |
Content-Type | Yes | application/json | The request body is JSON. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The sub-account id. Must belong to the key’s agency and not be deleted. |
Body parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
features | object | Yes | — | Boolean flags to merge. Accepted keys: crm_integration_enabled, ai_agents_enabled, workflows_enabled, invoicing_enabled, quotes_invoices_enabled, contracts_enabled, pipelines_enabled, email_integration_enabled, phone_integration_enabled, llm_integration_enabled, sites_enabled, image_studio_enabled, app_builder_enabled, app_builder_token_billing_enabled, extended_prompt_enabled. Non-boolean values and unknown keys are ignored. |
Request body
{
"features": {
"extended_prompt_enabled": true,
"sites_enabled": false
}
}Example
curl -X PATCH "https://api.centerfy.ai/webhooks/inbound/agency/sub-accounts/{id}/features" \
-H "x-api-key: $CENTERFY_AGENCY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"features": {
"extended_prompt_enabled": true,
"sites_enabled": false
}
}' import { CenterfyAgencyClient } from "@centerfy/sdk";
const agency = new CenterfyAgencyClient({ apiKey: process.env.CENTERFY_AGENCY_API_KEY! });
const result = await agency.subAccounts.updateFeatures("<subAccountId>", {
"features": {
"extended_prompt_enabled": true,
"sites_enabled": false
}
});
console.log(result); centerfy --agency subAccounts update-features <subAccountId> '{"features":{"extended_prompt_enabled":true,"sites_enabled":false}}' MCP tool: centerfy_agency_sub_accounts_update_features (see MCP server)
Response
{
"status": "success",
"sub_account": {
"id": "5a1f3c2e-8b4d-4e6f-9a7b-1c2d3e4f5a01",
"name": "Acme Roofing",
"slug": "acme-roofing",
"parent_sub_account_id": null,
"is_active": true,
"archived_at": null,
"paused_reason": null,
"paused_at": null,
"paused_note": null,
"subscription_plan": "starter",
"subscription_status": "active",
"max_users": 10,
"max_contacts": 1000,
"created_at": "2026-09-14T15:20:00.000Z",
"updated_at": "2026-10-06T12:00:00.000Z",
"features": {
"crm_integration_enabled": true,
"ai_agents_enabled": true,
"workflows_enabled": true,
"invoicing_enabled": false,
"email_integration_enabled": true,
"phone_integration_enabled": true,
"llm_integration_enabled": false,
"sites_enabled": false,
"extended_prompt_enabled": true
},
"settings": {
"rebilling_enabled": true,
"monthly_credit_amount": 25,
"timezone": "America/Chicago"
}
}
}Errors
400— if features contains no accepted boolean key.403— ‘Extended AI Prompts are not enabled for this agency’ when extended_prompt_enabled is set to true but the platform has not enabled the tier on the agency.404— when the sub-account id is not a uuid, does not exist, is deleted, or belongs to another agency.401— when the key is missing, not cfy_-prefixed or unknown (including sub-account keys); 403 when the agency is not on a White Label or SaaS Mode plan; 429 above 50 requests per minute per agency (Retry-After header set); 500 ‘database error’ on an internal failure.
Notes
Same switches as the agency’s Sub-Account Settings → Features tab. extended_prompt_enabled lets agents in the sub-account pick a larger prompt size (2×, 3× or 4× the character cap); minutes on those agents bill the size’s per-minute rate: the 2× rate is rebilling_config.ai_phone_call_extended_per_minute (set through Update sub-account settings; when unset, 2× the AI Phone Call rate) and each further size adds the same step again.