Campaigns
Add leads to a campaign
Changed onAdds leads to the specified campaign.
post/api/v4/campaigns/{campaign_id}/leads
Request
- Base URLhttps://{cluster_id}.voiso.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
campaign_idinteger required
Example:1
The unique identifier of the campaign.
Request body
Example request
[
{
"phone_number": "15551234567",
"name": "John Doe",
"source": {
"system": "my_crm",
"url": "https://example.com/leads/123"
},
"priority": 10,
"context_headers": {
"X-Client-Order-Id": "1234",
"X-Call-Context": "discount_promo_code"
}
}
]Response
OK
Example response
{
"leads_import": {
"campaign_leads": [
{
"id": 48153,
"phone_number": "15551234567"
}
]
}
}Changes
- info
added the optional property
/to the response with the status
- info