Base URL
All API requests should be made to:Authentication
All requests require Bearer Token authentication:Available Endpoints
Leads
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/leads | List all leads |
POST | /backend/leads | Create new lead |
PUT | /backend/leads/{id} | Update lead |
DELETE | /backend/leads/{id} | Delete lead |
Tags
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/tags | List all tags |
POST | /backend/tags | Create tag |
PUT | /backend/tags/{id} | Update tag |
DELETE | /backend/tags/{id} | Delete tag |
Status
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/status | List statuses |
POST | /backend/status | Create status |
PUT | /backend/status/{id} | Update status |
DELETE | /backend/status/{id} | Delete status |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/webhooks | List webhooks |
POST | /backend/webhooks | Create webhook |
PUT | /backend/webhooks/{id} | Update webhook |
DELETE | /backend/webhooks/{id} | Delete webhook |
AI Processing
| Method | Endpoint | Description |
|---|---|---|
POST | /ai/process | Process message with AI |
Conversations
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/conversations | List conversations |
GET | /backend/conversations/{id}/stream | SSE stream |
Messages
| Method | Endpoint | Description |
|---|---|---|
GET | /backend/messages/{lead_id} | Get lead messages |
POST | /backend/messages/send | Send message |
POST | /backend/messages/media | Send media |