Send Leads To Campaign
send_leads_to_campaignAdd unlocked creators with emails to an Instantly or Smartlead campaign, the app's Send to Instantly/Smartlead: the campaign may start emailing them. Use CRM lead ids (list_crm_leads), or chat lead ids together with that chat's chat_id or list_id. Already-sent creators are skipped. Two steps: the first call returns a preview and confirmation_token; call again with the token only after the user confirms the campaign. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Optional Firebase uid. Must match the URL uid unless local fallback is enabled. | |
| chat_id | No | The chat_id from list_chats. | |
| list_id | No | Or the list_id run_ugc_agent returned, for the chat that search created. | |
| lead_ids | Yes | ||
| provider | Yes | ||
| campaign_id | Yes | ||
| bearer_token | No | Optional Firebase ID token. Hosted clients normally authenticate with an API key header or ?uid= in the URL instead. | |
| confirmation_token | No | Omit on the first call to get a preview and a token. Pass the token back unchanged only after the user confirmed the preview in a later turn. |