Skip to main content

API Reference

The Senda Platform API provides programmatic access to AI agents, knowledge bases, actions, and analytics. All endpoints use JSON and return standard HTTP status codes.

Interactive API Explorer

You can explore and test the entire Senda API directly in your browser using our Swagger UI, or import it into Postman.

Base URL

https://senda.telar.ai/api/v1/

Authentication

All requests require an API key in the Authorization header:

Authorization: Bearer sk_live_YOUR_KEY

See Authentication for details on scopes and key management.

Endpoints

MethodEndpointScopeDescription
POST/v1/chat/completionschatSend message, receive SSE stream
GET/v1/chat/history/:chatIdchatGet chat message history
GET/v1/agentsagentsList agents
GET/v1/agents/:idagentsAgent detail with actions & knowledge
GET/v1/knowledgefilesList knowledge files
POST/v1/knowledge/ingestfilesUpload document to RAG
GET/v1/actionsactionsList available actions
POST/v1/actions/:id/executeactionsExecute action directly
GET/v1/usageanalyticsConsumption metrics
GET/v1/keysJWT onlyList API keys
POST/v1/keysJWT onlyCreate API key
DELETE/v1/keys/:idJWT onlyRevoke API key
ALL/v1/scim/*JWT onlySCIM 2.0 User & Group provisioning
WEBHOOKEventsN/ASubscribed Webhook payload deliveries

Response Format

All responses are JSON:

{
"agents": [...]
}

Errors return a standard format:

{
"error": "Human-readable error message"
}

Rate Limiting

All API key requests are rate-limited. See Rate Limits for details. Headers included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58