Skip to main content

Overview

The Vaani Backend API provides endpoints for building and configuring voice agents, triggering and managing calls, and connecting in-browser sessions via WebRTC. Except for the few endpoints listed under Endpoints without an API key, all endpoints require API key authentication via the X-API-Key header.

Authentication

All endpoints require API key authentication. Include your API key in the request header:
Keep your API key secure and never expose it in client-side code or public repositories.

Endpoints without an API key

Base URL

All endpoints are prefixed with /api/. The base URL is:

Errors

Every error response uses the same JSON body:
Validation errors (422) put the failing location and reason in message, for example query -> page: Input should be a valid integer.

API Version

Current API version: 1.0.0 (as reported by /openapi.json)

Agent Builder

Use these endpoints to programmatically create and configure agents via the API. PATCH endpoints leave fields you do not send unchanged. Only the AI provider blocks under senses_capabilities are deep-merged; metadata, faq, guardrails, word_pronunciation_pairs, deployment_config and the extraction data_collection.data_points list are replaced whole by the value you send.

Call Management

Other Endpoints