Skip to content
First requestVisit website ↗
Navigation

Create an AI connector integration key (value shown once)

Owners and admins. The key acts as the caller: it stops working if the caller leaves the workspace, loses an allowed role, or becomes folder-restricted. It holds exactly {"mcp":["read"]}, works only with the AI connector (MCP) server and is refused by every REST route. Only its SHA-256 hash is stored (key_full is NULL). Expiry defaults to, and may not exceed, 90 days. The caller must be eligible (current role allowed, not folder-restricted, workspace not cancelled/suspended).

POST
https://api.channelautomation.com/api/workspaces/{workspaceId}/ai-connectors/integration-keys

Authorization

  • BearerAuth
    HTTP Bearer (JWT)
    required

Path parameters

  • workspaceId
    string
    required

Request body JSON required

  • name
    string
    required
    maxLength: 100 · minLength: 3
  • expires_at
    optional
    string

    Default and maximum now + 90 days

    format: date-time

Returns

201

{ success, data: { id, name, expires_at, created_at, api_key (crm_live_…, shown once), warning } }

400

Invalid name or expiry, or the active-key limit is reached

403

Not an owner or admin

409

Caller not eligible: code NOT_IN_PILOT, WORKSPACE_INACTIVE, TURNED_OFF, ROLE_NOT_ALLOWED or RESTRICTED

503

AI_CONNECTORS_NOT_SET_UP, or unavailable

Type to search…

↑↓ navigate↵ selectEsc close