# TurnCall ## Docs - [Create Agent](https://docs.turncall.io/api-reference/agents/create-agent.md): Create a new draft agent. - [Get Agent](https://docs.turncall.io/api-reference/agents/get-agent.md): Get an agent by ID. - [Link Knowledge Base](https://docs.turncall.io/api-reference/agents/link-knowledge-base.md): Link a knowledge base to an agent. - [List Agent Knowledge Bases](https://docs.turncall.io/api-reference/agents/list-agent-knowledge-bases.md): List knowledge bases linked to an agent. - [List Agent Versions](https://docs.turncall.io/api-reference/agents/list-agent-versions.md): List all versions of an agent (by name). - [List Agents](https://docs.turncall.io/api-reference/agents/list-agents.md): List agents for the authenticated project. - [Publish Agent](https://docs.turncall.io/api-reference/agents/publish-agent.md): Publish a draft agent. Freezes the version immutably. - [Rollback Agent](https://docs.turncall.io/api-reference/agents/rollback-agent.md): Rollback to a previous version: un-archive it, archive current, update routing. - [Unlink Knowledge Base](https://docs.turncall.io/api-reference/agents/unlink-knowledge-base.md): Unlink a knowledge base from an agent. - [Update Agent](https://docs.turncall.io/api-reference/agents/update-agent.md): Update a draft agent's config. Published agents cannot be updated. - [Create Api Key](https://docs.turncall.io/api-reference/api-keys/create-api-key.md): Create the first API key for a project (bootstrap, no auth). - [List Api Keys](https://docs.turncall.io/api-reference/api-keys/list-api-keys.md): List API keys for the authenticated project (without secrets). - [Revoke Api Key](https://docs.turncall.io/api-reference/api-keys/revoke-api-key.md): Revoke an API key (must belong to authenticated project). - [End Call](https://docs.turncall.io/api-reference/call-control/end-call.md): End an active call. - [Handoff Call](https://docs.turncall.io/api-reference/call-control/handoff-call.md): Hand off an active call to another agent. - [Inject Message](https://docs.turncall.io/api-reference/call-control/inject-message.md): Inject a context message into an active call. - [Send Dtmf](https://docs.turncall.io/api-reference/call-control/send-dtmf.md): Send DTMF tones on an active call. - [Transfer Call](https://docs.turncall.io/api-reference/call-control/transfer-call.md): Transfer an active call to a human agent. - [Create Outbound Call](https://docs.turncall.io/api-reference/calls/create-outbound-call.md): Create an outbound call via Twilio. - [Get Call](https://docs.turncall.io/api-reference/calls/get-call.md): Get a call by ID. - [Get Call Analysis](https://docs.turncall.io/api-reference/calls/get-call-analysis.md): Get post-call analysis results. - [Get Call Transcript](https://docs.turncall.io/api-reference/calls/get-call-transcript.md): Get the full transcript for a call. - [List Call Events](https://docs.turncall.io/api-reference/calls/list-call-events.md): List events for a call. - [List Calls](https://docs.turncall.io/api-reference/calls/list-calls.md): List calls for the authenticated project. - [Rerun Call Analysis](https://docs.turncall.io/api-reference/calls/rerun-call-analysis.md): Re-run post-call analysis for a completed call. - [Delete Session](https://docs.turncall.io/api-reference/chat/delete-session.md): Expire/delete a chat session. - [Get Session Detail](https://docs.turncall.io/api-reference/chat/get-session-detail.md): Get a chat session with details. - [List Session Messages](https://docs.turncall.io/api-reference/chat/list-session-messages.md): List messages in a chat session. - [List Sessions](https://docs.turncall.io/api-reference/chat/list-sessions.md): List chat sessions for the authenticated project. - [Send Message](https://docs.turncall.io/api-reference/chat/send-message.md): Send a chat message and receive an LLM reply. - [Health Check](https://docs.turncall.io/api-reference/health/health-check.md): Check service health including database and Redis connectivity. - [Liveness Check](https://docs.turncall.io/api-reference/health/liveness-check.md): Kubernetes liveness probe - checks if the process is alive. - [Readiness Check](https://docs.turncall.io/api-reference/health/readiness-check.md): Kubernetes readiness probe - checks if the service can serve traffic. - [Create Knowledge Base](https://docs.turncall.io/api-reference/knowledge-bases/create-knowledge-base.md): Create a new knowledge base. - [Delete Document](https://docs.turncall.io/api-reference/knowledge-bases/delete-document.md): Delete a document and its chunks. - [Delete Knowledge Base](https://docs.turncall.io/api-reference/knowledge-bases/delete-knowledge-base.md): Delete a knowledge base. Fails if agents depend on it. - [Get Document](https://docs.turncall.io/api-reference/knowledge-bases/get-document.md): Get a document by ID. - [Get Knowledge Base](https://docs.turncall.io/api-reference/knowledge-bases/get-knowledge-base.md): Get a knowledge base by ID. - [List Documents](https://docs.turncall.io/api-reference/knowledge-bases/list-documents.md): List documents in a knowledge base. - [List Knowledge Bases](https://docs.turncall.io/api-reference/knowledge-bases/list-knowledge-bases.md): List knowledge bases for the authenticated project. - [Search Knowledge Base](https://docs.turncall.io/api-reference/knowledge-bases/search-knowledge-base.md): Search a knowledge base (debug/development endpoint). - [Update Knowledge Base](https://docs.turncall.io/api-reference/knowledge-bases/update-knowledge-base.md): Update a knowledge base. - [Upload Document](https://docs.turncall.io/api-reference/knowledge-bases/upload-document.md): Upload a document to a knowledge base. - [API Overview](https://docs.turncall.io/api-reference/overview.md): Authentication, response format, and conventions - [Bind Phone Number](https://docs.turncall.io/api-reference/phone-numbers/bind-phone-number.md): Bind a Twilio phone number to a routing target. - [Clear Routing Weights](https://docs.turncall.io/api-reference/phone-numbers/clear-routing-weights.md): Clear A/B routing weights, revert to single-agent routing. - [Get Phone Number](https://docs.turncall.io/api-reference/phone-numbers/get-phone-number.md): Get a phone number binding. - [Get Routing](https://docs.turncall.io/api-reference/phone-numbers/get-routing.md): Get current routing configuration for a phone number. - [List Phone Numbers](https://docs.turncall.io/api-reference/phone-numbers/list-phone-numbers.md): List phone numbers for the authenticated project. - [Set Routing Weights](https://docs.turncall.io/api-reference/phone-numbers/set-routing-weights.md): Set A/B routing weights on a phone number. - [Unbind Phone Number](https://docs.turncall.io/api-reference/phone-numbers/unbind-phone-number.md): Remove a phone number binding. - [Create Project](https://docs.turncall.io/api-reference/projects/create-project.md): Create a new project. No auth required (bootstrapping). - [Get Project](https://docs.turncall.io/api-reference/projects/get-project.md): Get a project by ID. Must belong to the authenticated project. - [List Tool Invocations](https://docs.turncall.io/api-reference/tools/list-tool-invocations.md): List all tool invocations for a call. - [Register Tool](https://docs.turncall.io/api-reference/tools/register-tool.md): Register a tool definition. - [Create Webhook](https://docs.turncall.io/api-reference/webhooks/create-webhook.md): Create a webhook subscription. - [Delete Webhook](https://docs.turncall.io/api-reference/webhooks/delete-webhook.md): Deactivate a webhook subscription. - [List Webhooks](https://docs.turncall.io/api-reference/webhooks/list-webhooks.md): List webhook subscriptions for the project. - [Webrtc Connect](https://docs.turncall.io/api-reference/webrtc/webrtc-connect.md): WebRTC signaling endpoint — SDP offer/answer exchange. - [Webrtc Ice Candidate](https://docs.turncall.io/api-reference/webrtc/webrtc-ice-candidate.md): WebRTC signaling endpoint — ICE candidate trickle. - [Architecture](https://docs.turncall.io/architecture.md): System design, call flow, and the real-time pipeline - [Changelog](https://docs.turncall.io/changelog.md): Latest updates and improvements to TurnCall - [A/B Testing](https://docs.turncall.io/guides/ab-testing.md): Weighted traffic routing on phone numbers - [Agent Versioning](https://docs.turncall.io/guides/agent-versioning.md): Publish, promote, and rollback agent versions - [Agents](https://docs.turncall.io/guides/agents.md): Create and configure voice AI agents - [Pre-Call Init](https://docs.turncall.io/guides/call-init.md): Dynamic agent resolution before the pipeline starts - [Knowledge Base](https://docs.turncall.io/guides/knowledge-base.md): Upload documents for retrieval-augmented generation (RAG) - [MCP Tools](https://docs.turncall.io/guides/mcp.md): Connect agents to MCP servers for auto-discovered tools - [Phone Numbers](https://docs.turncall.io/guides/phone-numbers.md): Bind Twilio numbers to agents - [Post-Call Analysis](https://docs.turncall.io/guides/post-call-analysis.md): Automatic LLM-powered analysis after calls end - [Providers](https://docs.turncall.io/guides/providers.md): Configure STT, LLM, and TTS providers per agent - [Speech-to-Speech](https://docs.turncall.io/guides/s2s.md): Ultra-low latency with OpenAI Realtime and Gemini Live - [Server Events](https://docs.turncall.io/guides/server-events.md): Bidirectional server hooks for call lifecycle - [SMS / Chat](https://docs.turncall.io/guides/sms-chat.md): Text-based conversations with agents - [Tools](https://docs.turncall.io/guides/tools.md): Built-in tools, webhook tools, and tool invocation recording - [Video Avatar](https://docs.turncall.io/guides/video-avatar.md): Lip-synced video avatars on WebRTC calls (HeyGen, Tavus) - [WebRTC](https://docs.turncall.io/guides/webrtc.md): Browser-based voice calls - [WhatsApp](https://docs.turncall.io/guides/whatsapp.md): Voice calls and text messages via WhatsApp Business - [Introduction](https://docs.turncall.io/introduction.md): Voice AI infrastructure you can self-host - [Quickstart](https://docs.turncall.io/quickstart.md): Get TurnCall running in 5 minutes ## OpenAPI Specs - [openapi](https://docs.turncall.io/openapi.json) ## Optional - [GitHub](https://github.com/kobikis/turncall)