> This is a page from the ElevenLabs documentation. For an index of the documentation, fetch https://elevenlabs.io/docs/llms.txt.

# Get lead

POST https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/{campaign_id}/leads
Content-Type: application/json

Add recipients to an outbound campaign that isn't stopping, stopped or failed. Recipients whose `id` the campaign already has are skipped, and a `completed` campaign becomes `active` again.

Reference: https://elevenlabs.io/docs/eleven-agents/api-reference/campaigns/leads/create

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Path parameters

- `campaign_id` (string, required)

### Body (application/json)

This endpoint expects an object.

- `recipients` (list of SubmitCampaignRecipient, required) — Who to add. A recipient whose `id` the campaign already has is skipped, so retrying a request with ids is safe. Recipients without an `id` are always added.

## Response

### 200

सफल रिस्पॉन्स

- `campaign` (CampaignResponse, required)
- `added` (integer, required) — Recipients the campaign didn't have yet.

## Errors

### 422 Leads Create Request Unprocessable Entity Error

वैलिडेशन एरर

- `detail` (list of ValidationError, optional)

## Types

### SubmitCampaignRecipient

- `phone_number` (string, optional) — कॉल करने का नंबर, E.164 फ़ॉर्मैट में, जैसे `+14155550100`।
- `phone_numbers` (list of string, optional) — `phone_number` के बाद क्रम में कॉल करने के लिए और नंबर। मौजूदा नंबर पर कॉल लगातार विफल होने पर लीड अगले नंबर पर जाती है।
- `whatsapp_user_id` (string, optional) — संपर्क की WhatsApp यूज़र ID। WhatsApp अभियान फ़ोन नंबर के बजाय इसका उपयोग करते हैं।
- `id` (string, optional) — प्राप्तकर्ता के लिए आपका आइडेंटिफ़ायर, जो उसकी लीड के `recipient_id` के रूप में लौटाया जाता है।
- `timezone_override` (string, optional) — इस प्राप्तकर्ता के कॉलिंग विंडो और कॉलबैक समय पढ़ने के लिए IANA टाइमज़ोन, जो कैंपेन के टाइमज़ोन को ओवरराइड करता है।
- `conversation_initiation_client_data` (ConversationInitiationClientDataRequestInput, optional) — इस प्राप्तकर्ता की कॉल के लिए डायनामिक वैरिएबल और ओवरराइड।

### CampaignResponse

- `campaign_id` (string, required)
- `call_name` (string, required) — अभियान का नाम।
- `agent_id` (string, required)
- `channel_config` (CampaignResponseChannelConfig, required)
- `status` (enum, required) — `attention` का मतलब है कि एक खुला ध्यान आइटम अभियान की कुछ कॉल को रोकता है, जबकि बाकी आगे बढ़ती हैं। `stopping` का मतलब है कि कतार में मौजूद कॉल रद्द हो जाती हैं और पहले से की गई कॉल पूरी हो रही होती हैं।
  - Allowed values: `active`, `paused`, `stopping`, `stopped`, `completed`, `failed`, `attention`
- `policy` (CampaignPolicySnapshot, required) — कैंपेन बनाते समय अपनाई गई नीति।
- `variant` (enum, required)
  - Allowed values: `simple`, `advanced`
- `created_at_unix` (integer, required)
- `updated_at_unix` (integer, required)
- `channel` (enum, required)
  - Allowed values: `phone`, `whatsapp`
- `mode` (enum, required)
  - Allowed values: `voice`, `message`
- `counts` (CampaignSummaryCounts, required)
- `agent_name` (string, required, default: )
- `source` (enum, optional) — क्या कैंपेन ऐप में या API के ज़रिए बनाया गया था।
  - Allowed values: `ui`, `api`
- `scheduled_time_unix` (integer, optional) — कैंपेन कब कॉल करना शुरू करता है; बनते ही शुरू करने के लिए इसे सेट न करें।
- `branch_id` (string, optional) — वह एजेंट ब्रांच जिसके साथ अभियान कॉल करता है।
- `environment` (string, optional) — वह एनवायरनमेंट जिसमें एजेंट के एनवायरनमेंट वैरिएबल रिज़ॉल्व होते हैं।
- `target_concurrency_limit` (integer, optional) — अभियान द्वारा एक साथ की जाने वाली अधिकतम कॉल।

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)

### ConversationInitiationClientDataRequestInput

- `conversation_config_override` (ConversationConfigClientOverrideInput, optional)
- `custom_llm_extra_body` (map from string to any, optional)
- `user_id` (string, optional) — इस बातचीत में भाग लेने वाले अंतिम यूज़र की ID (एजेंट के मालिक द्वारा यूज़र की पहचान के लिए)
- `source_info` (ConversationInitiationSourceInfo, optional) — बातचीत शुरू होने के स्रोत की जानकारी
- `branch_id` (string, optional) — इस बातचीत के लिए इस्तेमाल की जाने वाली एजेंट ब्रांच की ID
- `environment` (string, optional) — environment variables को resolve करने के लिए इस्तेमाल होने वाला environment
- `starting_workflow_node_id` (string, optional) — सेट होने पर, डिफ़ॉल्ट एंट्री के बजाय इस node id से workflow शुरू करें
- `procedure_ids` (list of string, optional) — सेट होने पर, शुरुआत करने वाले एजेंट के लिए केवल ये प्रक्रियाएं उपलब्ध होंगी। हर ID उस एजेंट से जुड़ी होनी चाहिए; अज्ञात ID होने पर बातचीत शुरू नहीं होगी। खाली सूची उस एजेंट की सभी प्रक्रियाएं अक्षम कर देती है। एजेंट ट्रांसफ़र के बाद लागू नहीं होता। enable_procedure_ids_from_client आवश्यक है।
- `start_procedure_ids` (list of string, optional) — सेट होने पर, बातचीत शुरू होते ही ये फ्री-फ़ॉर्म प्रक्रियाएं शुरू हो जाती हैं। अधिकतम पांच IDs स्वीकार की जाती हैं। procedure_ids लागू होने के बाद हर ID उपलब्ध होनी चाहिए। अज्ञात IDs और स्ट्रक्चर्ड प्रक्रियाओं से बातचीत शुरू नहीं हो पाती। इसके लिए enable_procedure_ids_from_client आवश्यक है।
- `dynamic_variables` (map from string to any, optional)

### CampaignResponseChannelConfig

- `channel`: `phone`
  - `agent_phone_number_id` (string, required) — जिस फ़ोन नंबर से कॉल करनी है।
  - `mode_config` (PhoneVoiceConfigOutput, optional)
- `channel`: `whatsapp`
  - `mode_config` (WhatsAppChannelConfigModeConfig, required)
  - `whatsapp_phone_number_id` (string, required) — वह WhatsApp फ़ोन नंबर जिससे कॉल या मैसेज किया जाएगा।

### CampaignPolicySnapshot

कैंपेन बनाते समय अपनाई गई नीति, जिसे सबमिट की गई `policy` की तरह दर्शाया गया है।

- `timezone` (string, required)
- `retry` (RetryPolicy, required)
- `calling_periods` (list of CallingPeriodPolicy, required)
- `data_collection` (DataCollectionPolicy, required)
- `followup_context` (FollowupContextPolicy, required) — फ़ॉलो-अप कॉल्स को कौन से `campaign__` डायनामिक वेरिएबल्स मिलते हैं।
- `date_overrides` (list of DateOverridePolicy, optional)

### CampaignSummaryCounts

- `leads` (integer, required)
- `terminal_leads` (integer, required) — वे लीड जिन्हें दोबारा कॉल नहीं की जाएगी।
- `open_attention` (integer, required) — ध्यान आइटम जिनका अभी समाधान नहीं हुआ है।
- `delivery` (RecipientDeliveryCounts, optional) — कितने मैसेज हर चरण तक पहुंचे; एक मैसेज अभियान प्राप्त करते समय सेट होता है।

### ValidationErrorLocItem

- string
- integer

### ConversationConfigClientOverrideInput

- `asr` (AsrConversationalConfigOverride, optional) — कन्वर्सेशनल ट्रांसक्रिप्शन के लिए कॉन्फ़िगरेशन
- `turn` (TurnConfigOverride, optional) — टर्न डिटेक्शन के लिए कॉन्फ़िगरेशन
- `tts` (TtsConversationalConfigOverride, optional) — कन्वर्सेशनल टेक्स्ट टू स्पीच के लिए कॉन्फ़िगरेशन
- `conversation` (ConversationConfigOverride, optional) — कन्वर्सेशनल इवेंट के लिए कॉन्फ़िगरेशन
- `agent` (AgentConfigOverrideInput, optional) — एजेंट-विशिष्ट कॉन्फ़िगरेशन

### ConversationInitiationSourceInfo

बातचीत शुरू होने के स्रोत की जानकारी

- `source` (enum, optional, default: unknown) — conversation initiation का source
  - Allowed values: `unknown`, `android_sdk`, `node_js_sdk`, `react_native_sdk`, `react_sdk`, `js_sdk`, `python_sdk`, `widget`, `sip_trunk`, `twilio`, `exotel`, `genesys`, `avaya`, `audiocodes`, `swift_sdk`, `whatsapp`, `twilio_sms`, `flutter_sdk`, `unity_sdk`, `zendesk_integration`, `slack_integration`, `telegram_integration`, `intercom_integration`, `freshdesk_integration`, `plain_integration`, `salesforce_integration`, `template_preview`, `genesys_bot_connector`, `subagent_tool`, `agent_messages_api`, `websocket_api`
- `version` (string, optional) — SDK वर्ज़न नंबर

### PhoneVoiceConfigOutput

- `ringing_timeout_secs` (integer, optional, default: 60) — कॉल बंद करने से पहले रिसीपिएंट को कितने सेकंड तक रिंग करना है। ध्यान दें कि यह प्रोवाइडर की अपनी सीमाओं से भी सीमित होगा।
- `twilio_call_recording_enabled` (boolean, optional, default: false) — Twilio कॉल रिकॉर्डिंग का इस्तेमाल करके कॉल रिकॉर्ड करनी है या नहीं। गैर-Twilio प्रदाताओं के लिए इसे अनदेखा किया जाता है। रिकॉर्डिंग आपके Twilio अकाउंट में स्टोर होती हैं।
- `twilio_machine_detection` (TwilioMachineDetectionConfig, optional) — Twilio के कैरियर-स्तरीय आंसरिंग मशीन डिटेक्शन (AMD) के लिए कॉन्फ़िगरेशन। इसे बंद करने के लिए छोड़ दें या null सेट करें। गैर-Twilio प्रोवाइडर और इनबाउंड कॉल के लिए इसे अनदेखा किया जाता है। मिलने वाला निर्णय अलग `answering_machine_detection` वेबहुक इवेंट के रूप में दिया जाता है, जिसके लिए उस इवेंट को workspace या एजेंट वेबहुक सेटिंग्स में इनेबल करना ज़रूरी है; यह बातचीत या पोस्ट-कॉल वेबहुक का हिस्सा नहीं है। डिटेक्शन एसिंक्रोनस रूप से चलता है, इसलिए यह बातचीत शुरू होने में कभी देरी नहीं करता, और निर्णय कॉल के दौरान किसी भी समय आ सकता है -- `detect_message_end` के साथ, कॉल खत्म होने के बाद भी। Twilio AMD के लिए अलग से शुल्क लेता है।
- `mode` ("voice", optional)

### WhatsAppChannelConfigModeConfig

- `mode`: `message`
  - `template` (WhatsAppTemplate, required) — Meta टेम्पलेट, जैसा सबमिशन के समय अनुमोदित किया गया था।
- `mode`: `voice`
  - `whatsapp_call_permission_request_template_language_code` (string, required) — उस टेम्पलेट का भाषा कोड।
  - `whatsapp_call_permission_request_template_name` (string, required) — वह अनुमोदित टेम्पलेट जो संपर्क से कॉल करने की अनुमति मांगता है।

### RetryPolicy

- `retry_delay_seconds` (integer, optional, default: 600) — छोटे रीट्राई से पहले कितना इंतज़ार करना है।
- `max_short_retries` (integer, optional, default: 1) — विफल कॉल के बाद किसी कॉलिंग विंडो द्वारा अनुमत रीट्राई। इनके समाप्त होने पर अगला रीट्राई अगली विंडो की प्रतीक्षा करता है, जो नई गिनती के साथ शुरू होती है।
- `max_total_calls` (integer, optional, default: 6) — पहली कॉल सहित, लीड को मिलने वाली अधिकतम कॉल।
- `max_callbacks` (integer, optional, default: 2) — एक नंबर के लिए स्वीकार किए जाने वाले कॉलबैक की अधिकतम संख्या।
- `max_redirects` (integer, optional, default: 2) — लीड द्वारा किसी दूसरे नंबर पर कॉल करने के अनुरोध का अनुसरण करने की अधिकतम संख्या।
- `interval_placement` (enum, optional, default: start) — बाद की कॉलिंग विंडो में टाली गई कॉल कहां होगी: उसके `start` पर, किसी `random` समय पर, या उस विंडो में पिछली कॉल जहां विफल हुई थी उसके `rotate_step_seconds` बाद `rotate` करके।
  - Allowed values: `start`, `random`, `rotate`
- `rotate_step_seconds` (integer, optional, default: 900) — `rotate` प्लेसमेंट हर कॉल को कितनी दूरी तक ले जाता है। केवल `rotate` द्वारा उपयोग किया जाता है।
- `max_consecutive_failures_per_number` (integer, optional) — किसी एक नंबर पर लगातार विफल हो सकने वाली कॉल की संख्या, जिसके बाद लीड अपने अगले सूचीबद्ध नंबर पर जाती है; यदि कोई अगला नंबर नहीं है, तो प्रक्रिया समाप्त हो जाती है। जवाब दी गई कॉल या नए नंबर पर रीडायरेक्ट होने पर गिनती फिर से शुरू होती है। सेट न होने पर केवल `max_total_calls` लागू रहता है।

### CallingPeriodPolicy

- `weekdays` (list of integer, required)
- `intervals` (list of CallingIntervalPolicy, required) — उनमें से हर दिन की समय-सीमाएं। वे किसी भी दिन ओवरलैप नहीं हो सकतीं।

### DataCollectionPolicy

- `callback_time` (string, optional)
- `redirect_phone_number` (string, optional)
- `stop` (string, optional)
- `mappings` (map from string to string, optional) — बाद की कॉल के लिए डेटा कलेक्शन नतीजों को डायनामिक वैरिएबल में कॉपी करता है: हर कुंजी एक डेटा कलेक्शन आइटम ID है और उसका मान वैरिएबल का नाम है।

### FollowupContextPolicy

फ़ॉलो-अप कॉल्स को कौन से `campaign__` डायनामिक वेरिएबल्स मिलते हैं।

- `call_type` (boolean, optional, default: true) — कॉल टाइप को `campaign__call_type` के रूप में पास करें।
- `previous_conversation_id` (boolean, optional, default: true) — पिछली बातचीत की ID को `campaign__previous_conversation_id` के रूप में पास करें।
- `previous_summary` (boolean, optional, default: true) — पिछली बातचीत का सारांश `campaign__previous_summary` के रूप में पास करें।
- `previous_transcript` (boolean, optional, default: true) — पिछली बातचीत का ट्रांसक्रिप्ट `campaign__previous_transcript` के रूप में पास करें।

### DateOverridePolicy

- `start_date` (string, required) — वह पहली स्थानीय तारीख, जिस पर override लागू होता है।
- `end_date` (string, required) — वह आखिरी स्थानीय तारीख, जिस पर override लागू होता है, इसमें वह तारीख शामिल है।
- `intervals` (list of CallingIntervalPolicy, optional) — `start_date` से `end_date` तक हर दिन के लिए कॉलिंग विंडो, जो साप्ताहिक विंडो को बदल देती हैं। खाली होने का मतलब है कि उन दिनों कोई कॉल नहीं होगी।
- `name` (string, optional)

### RecipientDeliveryCounts

- `sent` (integer, optional, default: 0)
- `delivered` (integer, optional, default: 0)
- `read` (integer, optional, default: 0)
- `replied` (integer, optional, default: 0)
- `failed` (integer, optional, default: 0)

### AsrConversationalConfigOverride

- `keywords` (list of string, optional) — जिनके लिए अनुमान की संभावना बढ़ानी है वे कीवर्ड्स

### TurnConfigOverride

- `soft_timeout_config` (SoftTimeoutConfigOverride, optional) — सॉफ्ट टाइमआउट सुविधा के लिए कॉन्फ़िगरेशन। लंबे LLM रिस्पॉन्स के दौरान तुरंत फ़ीडबैक देता है।
- `noisy_environment_message` (string, optional) — शोर वाला वातावरण पहचानने पर एजेंट क्या कहता है।

### TtsConversationalConfigOverride

- `model_id` (enum, optional, default: eleven_v4_turbo) — TTS के लिए इस्तेमाल किया जाने वाला मॉडल
  - Allowed values: `eleven_turbo_v2`, `eleven_turbo_v2_5`, `eleven_flash_v2`, `eleven_flash_v2_5`, `eleven_multilingual_v2`, `eleven_v3_conversational`, `eleven_v4`, `eleven_v4_turbo`
- `voice_id` (string, optional) — TTS के लिए इस्तेमाल की जाने वाली वॉइस ID
- `supported_voices` (list of SupportedVoice, optional) — एजेंट के लिए अतिरिक्त समर्थित वॉइसेज़
- `stability` (double, optional) — जनरेट की गई स्पीच की स्थिरता
- `speed` (double, optional) — जनरेट की गई स्पीच की गति
- `similarity_boost` (double, optional) — जनरेट की गई स्पीच के लिए सिमिलैरिटी बूस्ट
- `clone_strength` (double, optional) — जनरेट की गई स्पीच के लिए क्लोन स्ट्रेंथ
- `pronunciation_dictionary_locators` (list of PydanticPronunciationDictionaryVersionLocator, optional) — उच्चारण शब्दकोश लोकेटर्स

### ConversationConfigOverride

- `text_only` (boolean, optional) — इसे सक्षम करने पर ऑडियो प्रोसेस नहीं होगा और केवल टेक्स्ट का इस्तेमाल होगा। ऑडियो की कीमत से बचने के लिए इसका इस्तेमाल करें।
- `max_duration_seconds` (integer, optional) — बातचीत की अधिकतम अवधि, सेकंड में

### AgentConfigOverrideInput

- `first_message` (string, optional) — खाली न होने पर, एजेंट का पहला संदेश। खाली होने पर एजेंट चर्चा शुरू करने के लिए यूज़र का इंतज़ार करता है।
- `language` (string, optional) — एजेंट की भाषा — ASR और TTS के लिए इस्तेमाल होती है
- `max_conversation_duration_message` (string, optional) — खाली न होने पर, अधिकतम बातचीत अवधि पूरी होने पर एजेंट द्वारा भेजा जाने वाला संदेश।
- `prompt` (PromptAgentApiModelOverrideInput, optional) — एजेंट के लिए प्रॉम्प्ट

### TwilioMachineDetectionConfig

कॉल पर Twilio का कैरियर-लेवल आंसरिंग मशीन डिटेक्शन (AMD) कैसे चलाना है।

- `mode` (enum, optional, default: enable) — डिटेक्शन कितना विस्तृत होना चाहिए। जैसे ही Twilio किसी इंसान और मशीन में अंतर पहचान पाता है, `enable` एक निर्णय लौटाता है। `detect_message_end` वॉइसमेल ग्रीटिंग खत्म होने तक भी इंतज़ार करता है, जिससे `machine_end_*` निर्णय मिलते हैं, लेकिन नतीजा बाद में लौटता है।
  - Allowed values: `enable`, `detect_message_end`
- `actions` (list of TwilioMachineDetectionRule, optional) — हर AMD निर्णय के लिए कॉल पर की जाने वाली कार्रवाइयाँ। हर कार्रवाई अधिकतम एक नियम में हो सकती है, इसलिए उससे जुड़े सभी निर्णय एक साथ सूचीबद्ध करें। जिन निर्णयों का कोई नियम नहीं है, उनमें कॉल चलती रहती है।

### WhatsAppTemplate

- `name` (string, required)
- `language` (string, required) — https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/supported-languages
- `components` (list of WhatsAppTemplateComponent, required)
- `parameter_format` (enum, optional, default: POSITIONAL)
  - Allowed values: `POSITIONAL`, `NAMED`
- `category` (string, optional) — https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/message_templates/

### CallingIntervalPolicy

- `start` (string, required) — स्थानीय प्रारंभ समय, `HH:MM` के रूप में।
- `end` (string, required) — स्थानीय समाप्ति समय, `HH:MM` के रूप में; `24:00` आधी रात को समाप्त होता है।

### SoftTimeoutConfigOverride

- `message` (string, optional) — LLM जवाब की प्रतीक्षा के दौरान पहला सॉफ्ट टाइमआउट होने पर दिखाया जाने वाला संदेश। डायनामिक वेरिएबल समर्थित हैं (जैसे, \{\{system\_\_time}}, \{\{custom\_variable}})।
- `additional_soft_timeout_messages` (list of string, optional) — उसी LLM जनरेशन में बाद के soft timeout के लिए अतिरिक्त स्थिर filler संदेश। पहला timeout `message` का उपयोग करता है। यदि कॉन्फ़िगर किए गए संदेश `max_soft_timeouts_per_generation` से कम हैं, तो आखिरी कॉन्फ़िगर किया गया संदेश दोहराया जाता है; अन्यथा built-in filler इस्तेमाल होता है।

### SupportedVoice

- `label` (string, required)
- `voice_id` (string, required)
- `description` (string, optional)
- `language` (string, optional)
- `model_family` (enum, optional)
  - Allowed values: `turbo`, `flash`, `multilingual`, `v3_conversational`, `v4`, `v4_turbo`
- `optimize_streaming_latency` (integer, optional)
- `stability` (double, optional)
- `speed` (double, optional)
- `similarity_boost` (double, optional)
- `clone_strength` (double, optional)

### PydanticPronunciationDictionaryVersionLocator

अन्य दस्तावेज़ों के लिए किसी खास शब्दकोश और उसके संस्करण का संदर्भ देने वाला लोकेटर। यह PronunciationDictionaryVersionLocatorDBModel का pydantic संस्करण है। अन्य एजेंट डेटा मॉडल्स के साथ संगतता सुनिश्चित करने के लिए आवश्यक है।

- `pronunciation_dictionary_id` (string, required) — उच्चारण डिक्शनरी की ID
- `version_id` (string, optional) — उच्चारण डिक्शनरी के वर्ज़न की ID

### PromptAgentApiModelOverrideInput

- `prompt` (string, optional) — एजेंट के लिए प्रॉम्प्ट
- `llm` (enum, optional) — prompt और चैट हिस्ट्री के साथ क्वेरी करने वाला LLM। data residency इस्तेमाल करने पर, LLM का data residency एनवायरनमेंट में समर्थित होना ज़रूरी है।
  - Allowed values: `gpt-4o-mini`, `gpt-4o`, `gpt-4`, `gpt-4-turbo`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4.1-nano`, `gpt-5`, `gpt-5.1`, `gpt-5.2`, `gpt-5.2-chat-latest`, `gpt-5.4`, `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5.5`, `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`, `gpt-6-astra`, `gpt-6-sol`, `gpt-6-luna`, `gpt-6.1-sol`, `gpt-6.1-terra`, `gpt-6.2-astra`, `gpt-6.2-sol`, `gpt-5-mini`, `gpt-5-nano`, `gpt-3.5-turbo`, `gemini-1.5-pro`, `gemini-1.5-flash`, `gemini-2.0-flash`, `gemini-2.0-flash-lite`, `gemini-2.5-flash-lite`, `gemini-2.5-flash`, `gemini-3-pro-preview`, `gemini-3-flash-preview`, `gemini-3.1-pro-preview`, `gemini-3.1-flash-lite-preview`, `gemini-3.1-flash-lite`, `gemini-3.5-flash`, `gemini-3.5-flash-lite`, `gemini-3.6-flash`, `gemini-3.7-flash`, `gemini-3.8-flash`, `gemini-4-argon`, `gemini-4-hydrogen`, `gemini-4-neon`, `claude-sonnet-4-5`, `claude-opus-4-6`, `claude-opus-4-7`, `claude-opus-4-8`, `claude-opus-5`, `claude-opus-5-5`, `claude-sonnet-4-6`, `claude-sonnet-5`, `claude-sonnet-5-5`, `claude-sonnet-4`, `claude-haiku-4-5`, `claude-haiku-5-5`, `claude-3-7-sonnet`, `claude-3-5-sonnet`, `claude-3-5-sonnet-v1`, `claude-3-haiku`, `custom-llm`, `qwen3-4b`, `qwen3-30b-a3b`, `qwen36-35b-a3b`, `qwen35-397b-a17b`, `gpt-oss-20b`, `gpt-oss-120b`, `glm-45-air-fp8`, `glm-52`, `deepseek-v41-flash`, `nemotron-35-super-vl-nvfp4`, `gemini-2.5-flash-preview-09-2025`, `gemini-2.5-flash-lite-preview-09-2025`, `gemini-2.5-flash-preview-05-20`, `gemini-2.5-flash-preview-04-17`, `gemini-2.5-flash-lite-preview-06-17`, `gemini-2.0-flash-lite-001`, `gemini-2.0-flash-001`, `gemini-1.5-flash-002`, `gemini-1.5-flash-001`, `gemini-1.5-pro-002`, `gemini-1.5-pro-001`, `claude-sonnet-4@20250514`, `claude-sonnet-4-5@20250929`, `claude-haiku-4-5@20251001`, `claude-3-7-sonnet@20250219`, `claude-3-5-sonnet@20240620`, `claude-3-5-sonnet-v2@20241022`, `claude-3-haiku@20240307`, `gpt-5-2025-08-07`, `gpt-5.1-2025-11-13`, `gpt-5.2-2025-12-11`, `gpt-5.4-2026-03-05`, `gpt-5.4-mini-2026-03-17`, `gpt-5.4-nano-2026-03-17`, `gpt-5.5-2026-04-23`, `gpt-5-mini-2025-08-07`, `gpt-5-nano-2025-08-07`, `gpt-4.1-2025-04-14`, `gpt-4.1-mini-2025-04-14`, `gpt-4.1-nano-2025-04-14`, `gpt-4o-mini-2024-07-18`, `gpt-4o-2024-11-20`, `gpt-4o-2024-08-06`, `gpt-4o-2024-05-13`, `gpt-4-0613`, `gpt-4-0314`, `gpt-4-turbo-2024-04-09`, `gpt-3.5-turbo-0125`, `gpt-3.5-turbo-1106`, `watt-tool-8b`, `watt-tool-70b`
- `reasoning_effort` (enum, optional) — मॉडल का रीजनिंग प्रयास। केवल कुछ मॉडलों के लिए उपलब्ध।
  - Allowed values: `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`
- `tool_ids` (list of string, optional) — एजेंट द्वारा इस्तेमाल किए गए टूल की IDs की सूची।
- `tool_ids_strict` (boolean, optional) — यह केवल कन्वर्सेशन ओवरराइड के रूप में लागू होता है और जब भी tool_ids को ओवरराइड किया जा सकता हो, तब अनुमत है। true होने पर, ओवरराइड किया गया tool_ids कन्वर्सेशन में अनुमत टूल की पूरी सूची होता है, जिसमें workflow नोड्स के टूल भी शामिल हैं। एजेंट पर सेट होने पर इसे अनदेखा किया जाता है।
- `native_mcp_server_ids` (list of string, optional) — एजेंट द्वारा उपयोग किए जाने वाले Native MCP सर्वर ids की सूची
- `knowledge_base` (list of KnowledgeBaseLocator, optional) — एजेंट द्वारा उपयोग किए जाने वाले नॉलेज बेस की सूची

### TwilioMachineDetectionRule

दिए गए AMD निर्णयों के लिए लाइव कॉल पर की जाने वाली कार्रवाई।

- `action` ("hang_up", required)
- `answered_by` (list of enum, required) — वे निर्णय जो कार्रवाई ट्रिगर करते हैं।
  - Allowed values: `human`, `fax`, `unknown`, `machine_start`, `machine_end_beep`, `machine_end_silence`, `machine_end_other`

### WhatsAppTemplateComponent

- `type` (string, required)
- `format` (string, optional)
- `text` (string, optional)
- `buttons` (list of WhatsAppTemplateComponentButton, optional)

### KnowledgeBaseLocator

- `type` (enum, required) — नॉलेज बेस का टाइप
  - Allowed values: `file`, `url`, `text`, `folder`
- `name` (string, required) — knowledge base का नाम
- `id` (string, required) — नॉलेज बेस की ID
- `usage_mode` (enum, optional, default: auto) — नॉलेज बेस का उपयोग मोड
  - Allowed values: `prompt`, `auto`

### WhatsAppTemplateComponentButton

- `type` (string, required)
- `text` (string, optional)
- `url` (string, optional)

## Examples

**Request**

```json
{
  "recipients": [
    {}
  ]
}
```

**Response**

```json
{
  "campaign": {
    "campaign_id": "campaign_id",
    "call_name": "call_name",
    "agent_id": "agent_id",
    "channel_config": {
      "channel": "phone",
      "agent_phone_number_id": "agent_phone_number_id"
    },
    "status": "active",
    "policy": {
      "timezone": "timezone",
      "retry": {},
      "calling_periods": [
        {
          "weekdays": [
            1
          ],
          "intervals": [
            {
              "start": "start",
              "end": "end"
            }
          ]
        }
      ],
      "data_collection": {},
      "followup_context": {},
      "date_overrides": [
        {
          "start_date": "start_date",
          "end_date": "end_date"
        }
      ]
    },
    "variant": "simple",
    "created_at_unix": 1,
    "updated_at_unix": 1,
    "channel": "phone",
    "mode": "voice",
    "counts": {
      "leads": 1,
      "terminal_leads": 1,
      "open_attention": 1
    },
    "agent_name": "agent_name",
    "source": "ui",
    "scheduled_time_unix": 1,
    "branch_id": "branch_id",
    "environment": "environment",
    "target_concurrency_limit": 1
  },
  "added": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads"

payload = { "recipients": [{}] }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"recipients":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads"

	payload := strings.NewReader("{\n  \"recipients\": [\n    {}\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"recipients\": [\n    {}\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads")
  .header("Content-Type", "application/json")
  .body("{\n  \"recipients\": [\n    {}\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads', [
  'body' => '{
  "recipients": [
    {}
  ]
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"recipients\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = ["recipients": [[]]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/convai/outbound-campaigns/campaigns/campaign_id/leads")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```