Create automation connection
Store a reusable workspace credential. kind is api (provider REST API — e.g. Airtable PAT, HubSpot Private App token, SMTP host/user/password, Apps connected account) or mcp (remote MCP endpoint). Apps connections (provider=composio) are normally created via the connect-link OAuth flow (POST /api/oauth/composio/start); stored fields include connected_account_id and toolkit (secrets never returned). credentials values are AES-256-GCM encrypted at rest. For provider=smtp, Test Connection verifies the relay and sends a test email to the calling admin. Required scope: automations:write or calls:write.
Authorizations
API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access.
Response
Created connection (secrets masked).