APINew
Certificates, subscriptions, site settings, community events, and more in the Workspace API, CLI, and MCP
Seven new areas of the dashboard are now available to your scripts, the Zanfia CLI, MCP clients, and the creator assistant, with the same rules and approval gates as the dashboard.
Everything below is on one shared core with the dashboard: the same validation, the same permissions, and, in the assistant, an approval card before anything irreversible. Each area lands in the Workspace API (with regenerated OpenAPI and docs), the zanfia CLI, and the MCP server at the same time. API overview · CLI commands · MCP
- API Certificates. List, issue (single or bulk), revoke, reinstate, and resend certificates, and manage templates, from
/certificates*,zanfia certificates …, and matching MCP tools. Issuing from outside the dashboard is asynchronous: you get a202and poll the list until the PDF is rendered. The assistant issues certificates on request after a confirmation. Learn more - API Subscriptions and customer operations. Failed subscription payments and their retry, upcoming renewals, ending subscriptions, bulk actions on a product's clients or on a filtered list, client delete, and a CSV export identical to the dashboard's, plus approve or reject of manual orders. CLI:
zanfia subscriptions …,zanfia clients bulk-* | delete | export,zanfia orders approve | reject. Learn more - API Clients, consents, tracking, course analytics. Cancel a client's subscription, read a client's tags, e-mail log, accesses and notes (and add a note), list and upsert checkout consents, read conversion events and tracking health, and pull course analytics and lesson transcripts.
PATCH /checkout-settingsno longer acceptscustomConsents; use the consents routes. Learn more - API Automation runs, community events, moderation. Retry a failed run or start a test run of an automation (
202, real actions fire); create, update, list, and delete community events; read the moderation queue and resolve a report; toggle community settings (events, direct messages, content visible from join date, gamification, auto-hide after reports) fromzanfia communities settings update. Learn more - API Content editors. Newsletter archive issues (create, save and publish a draft, discard, copy to another newsletter), knowledge-base tree reorder and article covers, and lesson video chapters and moments, including generating them, with the same credit gate as the dashboard. Every surface merges with the current video data, so saving chapters never clears moments. Learn more
- API Site and storefront settings. General, theme, branding, main page, privacy, slug, custom domains and their verification, customer area, customer access policy, activation, communication, storefront, and legal documents, under
/site/*andzanfia site …; a customer's trusted devices underzanfia clients devices. The assistant edits titles, texts and the like and asks before switching the site on or off; slug and domains stay dashboard-only. Learn more - API AI images and transcription.
POST /media/ai-imagesgenerates an image into your Media Library andPOST /media/{mediaId}/transcribestarts a transcription;zanfia media generate-image --prompt … --confirmandzanfia media transcribe <id> --confirmdo the same. Both answer402when credits or minutes run out. Learn more - Improved CLI:
--json <file>works with a space. The global--jsonoutput switch no longer swallows a command's--json <file-or-inline>body option; both spellings (--json body.jsonand--json=body.json) work, and a missing file reports the file error. Every leaf command is now documented in the CLI reference, in English and Polish.

