Skip to main content
Every ai-cmo.dev API resource except health and discovery endpoints is bound to a workspace path segment. This page covers workspace CRUD, settings, profile, model, competitors, and icon endpoints for API consumers.

Endpoints

List workspaces

API keys see only the workspace they are bound to. Session cookies see all accessible workspaces.

Create a workspace

Session-only. Supply a workspaceConfigSchema body:

workspaceConfigSchema fields

Quota validation

Quotas must sum to 1.0 within a tolerance of 0.0001. If the sum is off, the server returns 400 invalid_request with the zod validation error.

Get settings

Update settings

The PATCH accepts a partial WorkspaceUpdate body. Only the fields you supply are updated. Supported fields include displayName, domains, languages, about, industry, email, brandColors, brandMeta, socials, productsServices, designMd.

Model

Get the configured model:
Set the model:

Competitors

Competitors are indexed by their position in the array (0-based). Updates and deletes use index in the request body.

List

Add

Update by index

Remove by index

Icon upload

Icon refresh from domain