API keys
Connect external tools to ChatAgent with a key bound to your organization and your role.
An API key lets an external tool, such as an automation platform or your own script, call ChatAgent on your behalf. Each key belongs to one person and one organization.
Create a key
Section titled “Create a key”
- Open Settings → API keys and choose Create API key.
- Name it after the integration and environment, such as Zapier production.
- Copy the key and store it in your tool’s secret manager.
What a key can do
Section titled “What a key can do”A key acts with its creator’s current permissions in the organization, with one limit: conversations are read-only. A key cannot send messages to customers.
The key follows its creator. If their role changes, the key’s access changes too. If they leave the organization, the key stops working.
Manage keys
Section titled “Manage keys”The list shows each key’s name, who created it and when it was last used.
- Rotate creates a replacement. The old key stops working immediately, so update your integration right away.
- Revoke stops the key immediately and removes it from the list. This cannot be undone.
Members manage their own keys. Owners and admins can manage every key in the organization.
Calling the API
Section titled “Calling the API”Send the key in the x-api-key header to https://api.chatagent.so. For example, to list customers:
curl https://api.chatagent.so/contacts \ -H "x-api-key: $CHATAGENT_API_KEY"Responses are JSON in this shape:
{ "message": "contacts fetched successfully", "data": { }}The API is the same one the ChatAgent app uses. A stable, versioned public reference is not published yet, so endpoints may change. If you are building an integration, email hello@chatagent.so and we will help you pick the right endpoints.
For working with ChatAgent from an AI assistant, use the MCP server instead. It needs no key.