Skip to main content

Base URL

All API requests should be made to:
https://api.leavo.ai

Authentication

All requests require Bearer Token authentication:
Authorization: Bearer your_api_key_here

Available Endpoints

Leads

MethodEndpointDescription
GET/backend/leadsList all leads
POST/backend/leadsCreate new lead
PUT/backend/leads/{id}Update lead
DELETE/backend/leads/{id}Delete lead

Tags

MethodEndpointDescription
GET/backend/tagsList all tags
POST/backend/tagsCreate tag
PUT/backend/tags/{id}Update tag
DELETE/backend/tags/{id}Delete tag

Status

MethodEndpointDescription
GET/backend/statusList statuses
POST/backend/statusCreate status
PUT/backend/status/{id}Update status
DELETE/backend/status/{id}Delete status

Webhooks

MethodEndpointDescription
GET/backend/webhooksList webhooks
POST/backend/webhooksCreate webhook
PUT/backend/webhooks/{id}Update webhook
DELETE/backend/webhooks/{id}Delete webhook

AI Processing

MethodEndpointDescription
POST/ai/processProcess message with AI

Conversations

MethodEndpointDescription
GET/backend/conversationsList conversations
GET/backend/conversations/{id}/streamSSE stream

Messages

MethodEndpointDescription
GET/backend/messages/{lead_id}Get lead messages
POST/backend/messages/sendSend message
POST/backend/messages/mediaSend media