API & Webhooks
Workspace administrators can create API keys for supported integrations and configure an outgoing webhook destination.
Only workspace admins and superadmins can manage these settings.
Opening the pages
Click your name/avatar at the bottom-left of the sidebar and select Settings.
In the left sub-menu, under Integrations, choose Public API or Webhook.
[IMAGE-01: Left sub-menu with the Integrations section (Public API and Webhook)]
Public API
The Public API page lets you create and manage workspace API keys for external systems such as an ERP or warehouse system.
[IMAGE-02: Public API page with the Workspace API keys and API keys cards]
Open the API reference
On the Public API page, click OpenAPI v1 reference (top-right).
Use the reference for the endpoints, request fields, and responses supported by the current backend deployment.
The reference URL is generated from the configured backend URL. If the link is unavailable, ask the CRMAI administrator for the correct API documentation endpoint.
Use Refresh to reload the page data.
Create a workspace API key
In the Workspace API keys card, enter a recognizable name in Key name, such as
ERP production.Review the value shown in Permissions (for example,
messages:send).Click Create API key.
Copy the full key from the one-time display and store it in your integration's secret manager.
Send the key in the
X-API-Keyheader when calling an endpoint that accepts workspace API keys.Confirm the key appears in the API keys list by its name and prefix.
[IMAGE-03: Workspace API keys card showing Key name, Permissions, and the Create API key button, with any generated key redacted]
CRMAI displays the full API key only once. After you dismiss the one-time notice, the full secret cannot be retrieved. Do not put a live key in documentation, screenshots, source code, or browser URLs.
The API keys list
The API keys card lists keys by name and prefix only — the full secret is never stored or shown again. When there are no keys, it shows "No API keys yet".
[IMAGE-04: API keys list showing key names and prefixes, secrets redacted]
Revoke a key
Find the key by its name and prefix in the API keys list.
Confirm which integration currently uses it.
Choose Revoke and review the confirmation.
Create and securely deliver a replacement key if the integration must continue running.
Update the integration, verify it works, and then revoke any key that should no longer be used.
Revoking a key disables it immediately. Integrations using it will need a replacement.
Webhooks
The Webhook page configures where CRMAI sends events from your workspace.
The workspace currently supports one active callback configuration. It can subscribe to these event types:
Event | Sent when |
|---|---|
A message is created | |
| A message's status changes |
A ticket is created | |
A ticket is updated |
Configure an outgoing webhook
In the Outgoing webhook configuration card, enter an optional Destination name (for example,
ERP events).Enter the Callback URL — the HTTPS address of your receiver (for example,
https://your-system.example.com/webhooks/crmai).Enter a Callback signing secret, or click Generate secret. Any non-empty string up to 256 characters is accepted, including spaces. Use the eye icon to check what you typed.
Store the exact same secret in your receiver. For better protection, choose a hard-to-guess secret. CRMAI encrypts the saved secret at rest.
Under Events to send, select one or more event types your receiver needs.
Click Add webhook.
Copy the secret from the one-time display.
Use Send test (if available on the configuration) to send a signed synthetic event and confirm your receiver accepts it.
[IMAGE-05: Outgoing webhook configuration form showing Callback URL, event selection, and a redacted signing secret]
The test event does not create a real customer message or ticket event. Use a test endpoint or a receiver that safely handles synthetic data.
The webhook configuration list
The Webhook configuration card manages the active callback. Each entry shows its name, status, callback URL, subscribed events, and creation date. Revoked configurations remain in the list as history.
[IMAGE-06: Webhook configuration list showing an active entry and a Revoked entry with event badges]
Update or revoke a webhook
To change the callback URL or event selection, choose Edit on the active configuration.
Leave the secret blank to keep the current signing secret. Enter a new secret only when rotating it, and update the receiver to match.
To stop future deliveries, choose Revoke and review the confirmation. Requests already in progress may still complete.
Troubleshooting
Issue | What to check |
|---|---|
API key is rejected | Check the |
Full API key is no longer visible | Create a replacement key; the original secret cannot be recovered from CRMAI. |
OpenAPI reference link unavailable | Ask the CRMAI administrator for the correct API documentation endpoint. |
Webhook test fails | Confirm the callback is reachable over HTTPS, the receiver accepts the event, and the signing secret matches. |
An event is not delivered | Confirm the event is selected and the destination is active (not Revoked). Check the receiver's logs and the webhook delivery status. |
Can't add a new webhook | Only one active configuration is supported. Revoke or edit the current one first. |