Developer API

API keys, scopes, rate limits, and programmatic access.

The Developer API lets you integrate Chatloop with your own backend, CRM, or internal tools using REST and bearer authentication.

Who can use it

Access requires all of the following:

  • You are not a global team-member account (TEAM role)—invited team members cannot create or manage keys.
  • Your membership plan includes API access (apiEnabled).
  • The platform administrator has not disabled the API globally.

When access is granted, the Developer API link appears in the sidebar footer (above your profile). If any requirement fails, the link is hidden and visiting /dashboard/settings/api redirects to the dashboard.

This is an account-level page—not tied to the active chatbot in the switcher—though you can scope individual keys to one chatbot.

Creating an API key

  1. Open Developer API from the sidebar footer.
  2. Enter a name (for your reference).
  3. Choose Live or Test environment.
  4. Optionally restrict the key to a single chatbot or leave it workspace-wide (All agents).
  5. Select scopes (see below).
  6. Click Create key and copy the secret immediately. It is shown only once.

Live secrets start with cl_live_; test secrets start with cl_test_. Store secrets securely. Revoke keys you no longer need from the same page.

Authentication

Send the secret as a Bearer token on every request:

Authorization: Bearer cl_live_your_secret_here

Base URL:

https://api.chatloop.io/v1

The same host and path structure is used for test keys. A machine-readable manifest is available at GET /api/v1/docs on your app host (also listed in the Developer API page header).

Scopes

Grant only the scopes your integration needs. All scopes can be selected when creating a key:

ScopeAllows
agents:readList and read chatbots
agents:writeUpdate chatbots (no v1 route yet)
conversations:readList conversations
conversations:writeCreate conversations
messages:readRead message history
messages:writeSend messages
customers:readRead customer records
customers:writeUpdate customers (no v1 route yet)
knowledge:readRead documents, FAQs, websites (no v1 route yet)
knowledge:writeManage knowledge (no v1 route yet)
analytics:readUsage and analytics (no v1 route yet)
ai:invokeRequest AI responses (POST .../ai/respond)
connectors:readConnector catalog and agent connections
connectors:writeConnect, disconnect, sync, and index knowledge

Scopes marked no v1 route yet are reserved for future endpoints; selecting them has no effect until those routes ship.

Implemented v1 endpoints

MethodPathScope
GET/v1/agentsagents:read
GET/v1/agents/{agentId}agents:read
GET/v1/agents/{agentId}/conversationsconversations:read
POST/v1/agents/{agentId}/conversationsconversations:write
GET/v1/agents/{agentId}/conversations/{conversationId}/messagesmessages:read
POST/v1/agents/{agentId}/conversations/{conversationId}/messagesmessages:write
POST/v1/agents/{agentId}/ai/respondai:invoke
GET/v1/agents/{agentId}/customerscustomers:read
GET/v1/connectors/catalogconnectors:read
GET/v1/agents/{agentId}/connectorsconnectors:read
POST/v1/agents/{agentId}/connectors/connectconnectors:write
DELETE/v1/agents/{agentId}/connectors/connections/{connectionId}connectors:write
POST/v1/agents/{agentId}/connectors/connections/{connectionId}/syncconnectors:write
POST/v1/agents/{agentId}/connectors/connections/{connectionId}/index-knowledgeconnectors:write

Connector endpoints require connectors:read or connectors:write. See Connectors.

Limits and quotas

Your plan may cap:

  • Whether API access is enabled at all
  • Requests per minute (burst protection, per key and per IP)
  • Requests per month
  • Maximum number of keys

The Developer API page shows API requests this month when available. If a request is rejected for quota or rate limiting, retry with backoff or upgrade your plan.

Platform administrators can disable the API globally or adjust default limits in the admin panel.

  • Connectors — CRM/CMS integrations for in-chat and API-managed connections.
  • Data Sources — live database or external API lookups configured per chatbot under Automation > Data Sources.
  • Social integrations — Meta and Telegram are configured under Automation > Integrations, not via Developer API keys.

For internal admin ↔ app communication (super-admin operations), a separate service API key is used—that is not the same as owner Developer API keys.