Your agent, inside
your application.
A simple REST API lets you integrate your AI agent into any software. Send a message, get a response. Authentication via API key. Rate limits and usage tracking included. Build whatever you want.
// Send a message
curl -X POST \
"https://app.anydialog.io/v1/chat" \
-H "X-API-Key: cs_live_***" \
-d '{
"message": "What is your return policy?",
"session_id": "sess_8f3k2..."
}'
// Response
{
"reply": "Returns are accepted within 30 days...",
"session_id": "sess_8f3k2...",
"tokens_used": 84
}
Without AnyDialog
Your AI agent only works on your website. You cannot embed it in your mobile app, CRM, or internal tools.
With AnyDialog
Full REST API with token auth, session management, and rate limiting. Integrate your agent into any software.
Real scenario
Example scenario
Industry: SaaS, ~80 people
The challenge Federico, Lead Developer at a fintech startup, needed AI-powered answers inside their mobile banking app — not just on a website widget.
The solution Using the AnyDialog REST API, the team integrated their agent into the mobile app in one afternoon. Token auth, session management, and conversation history — all via standard HTTP endpoints.
How it works
REST API integration in three steps.
Get your API key
Generate an API key from your agent settings. Keep it secure.
Call the API
POST /api/v1/chat with a message and session ID. Get back an instant response.
Build your interface
Your design, your control. Webhooks for real-time updates if needed.
API capabilities
Message API
Send messages and get responses instantly. Stream mode for real-time output.
Session management
Create sessions, retrieve history, manage state across calls.
Conversation webhooks
Real-time events: message received, response sent, session ended.
Rate limiting & quotas
Control costs with per-minute rate limits and usage tracking.
Authentication
API key authentication. Bearer token in header. Automatic key rotation.
Full documentation
OpenAPI spec, code samples (Node, Python, cURL), Postman collection.
The API is its own channel
The REST API is a first-class channel in AnyDialog — alongside website widget, Telegram, WhatsApp, and voice.
Integrate AI into anything.
REST API with full documentation. Deploy in your own UI in minutes.