CRAB provides a REST API for programmatic bot management and conversation handling.
Authentication
All API requests require a Bearer token. Generate API keys from Settings → API Keys in your dashboard.
Authorization: Bearer YOUR_API_KEYEndpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/bots | List all bots |
| POST | /api/bots | Create a new bot |
| GET | /api/bots/:id | Get bot details |
| POST | /api/bots/:id/message | Send a message to a bot |
Webhooks
Configure webhooks to receive real-time events for new conversations, escalations, and lead captures. Webhook payloads are signed with HMAC-SHA256 for verification.