For developers: Build custom chat interfaces, integrate with your app, or connect to other tools. Simple REST API with streaming support. Non-developer? Use our no-code widget instead—no API needed. See how →
Base URL
https://api.obdal.ai/v1
Status
Operational
Auth
Bearer key + allowed origins
Version
v1 · SSE streaming
Generate a scoped key, lock down origins, and call the chat endpoint with streaming responses. The defaults keep your team safe while you move fast.
Create a scoped key
Issue an API key per app with allowed origins to control access.
Set allowed origins
Whitelist production and staging domains to prevent key leakage.
Send a chat request
Post a user message, optionally stream tokens, and log the session id.
Keep responses streaming and track sessions without extra infrastructure. Everything ships with sensible defaults.
/v1/chat
Send a user message and receive a streaming AI response tailored to your dataset. Sessions keep context across turns.
Request
{
"message": "Summarize the outage playbook",
"api_key": "your_api_key",
"session_id": "sess_9Rna21",
"stream": true
}Response
event: message
data: {"content":"Hi there! I read through your playbook—here's the short version..."}
event: end
data: {"session_id":"sess_9Rna21"}/v1/usage
Monitor requests, token usage, and costs per app to keep your team cost-aware.
Request
GET /v1/usage?api_key=your_api_key&start_date=2024-01-01
Response
{
"total_requests": 1842,
"total_tokens": 421930,
"total_cost": 12.45
}/v1/sessions
Retrieve chat sessions with message history and usage metadata for your app.
Request
GET /v1/sessions?api_key=your_api_key&include_all=true
Response
{
"sessions": [
{
"session_id": "sess_9Rna21",
"last_at": "2024-01-15T10:30:00Z",
"total_tokens": 2430,
"preview": "Hi there! I read through..."
}
]
}Security & control
Ownership
You own your content. Delete files anytime. Control exactly where your widget appears. No lock-in, ever.
Access controls
Allowed origins and scoped API keys to prevent unauthorized access.
Data control
Full control over your content with transparent retention and source management.
Start using Obdal today to automate conversations and delight your customers with AI-powered support.