POST
/
CampaignItem
/
{campaignId}
/
bulk-add-items
curl --request POST \
  --url https://api.starleads.co/CampaignItem/{campaignId}/bulk-add-items \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '{
  "items": [
    {
      "phoneNumber": "<string>",
      "dataBag": {},
      "nextTryDate": "<string>"
    }
  ]
}'
{
  "errors": [
    {
      "item": {
        "phoneNumber": "<string>",
        "dataBag": {},
        "nextTryDate": "<string>"
      },
      "errorDescription": "<string>"
    }
  ]
}

Headers

X-Api-Key
string
required

Api key to pass as a X-Api-Key request header. You can get yours in your profile when authenticated in Starleads

Path Parameters

campaignId
string
required

ID of the campaign.

Body

Response

201
application/json

Created

The response is of type object.