Create agent (full)
Full URL: POST https://api.kupe.in/api/v1/agents
Create an agent and its configurations in one request (LLM, STT, TTS, optional tools, and agent_specific_config).
Platform defaults apply for any omitted section (including VAD / inferencing). For a name-only create with all defaults,
use POST /api/v1/agents/simple instead.
agent_specific_config is optional on create; send only the behavior keys you need (timeouts, auto_terminate_call,
inbound transfer routes, end-call warnings, noise cancellation strength, background noise, etc.). Omitted keys use platform defaults.
List background noise files with GET /api/v1/noise-assets before setting background_noise_id.
Authorizations
Kupe dashboard API key for your user.
Body
Body for POST /api/v1/agents (full create). Requires agent.name; all other top-level keys are optional. Set runtime behavior (timeouts, auto hangup, inbound transfer routes, audio tuning) under agent_specific_config — values are merged onto platform defaults and stored in agent_specific_configs.configuration (separate from share/branding info). Enable inbound noise reduction on agent.apply_noise_reduction. Welcome line: agent.first_response_message or agent.welcome_message (alias). Not used for POST /api/v1/agents/simple.
model_name: LLM catalog code or row UUID. Requests may also send the legacy property model_provider_id with the same meaning (OpenAPI lists one field to avoid duplicate inputs).
tts_model_name selects the TTS row (catalog code or UUID). Optional language sets voice_parameters.language (e.g. en, hi-IN). Legacy body key tts_provider_id is accepted as an alias for tts_model_name only (not listed as a second field).
transcriber_model_name selects the STT row (catalog code or UUID, e.g. saarika:2.5). language is a locale string (e.g. hi-IN); a single-element array ["hi-IN"] is coerced to that string. The pipeline STT model id is derived from the catalog row only — it is not sent in this object. Legacy provider_id is an alias for transcriber_model_name.
Per-agent behavior stored in agent_specific_configs.configuration. On create (POST /api/v1/agents) and update (PUT /api/v1/agents/{agent_id}), send under agent_specific_config; omitted keys keep platform or existing values (partial PUT merges). Returned on GET /api/v1/agents/{agent_id} under configurations.agent_specific_config. Dashboard may use camelCase aliases (e.g. autoTerminate → auto_terminate_call).