Skip to main content
POST
/
public-api
/
campaigns
/
{id}
/
add-leads
Add leads to a campaign
curl --request POST \
  --url https://agents.nineteen58.co.za/public-api/campaigns/{id}/add-leads \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "type": "csv",
  "csvData": "<string>"
}'
{
  "status": "<string>",
  "message": "<string>",
  "data": {
    "campaignId": "<string>",
    "totalContacts": 123,
    "successCount": 123,
    "errorCount": 123,
    "processedContacts": [
      {
        "identifier": "<string>",
        "contactId": "<string>",
        "action": "<string>"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
required

API key for authentication

Path Parameters

id
string<uuid>
required

Campaign ID

Body

application/json
  • Option 1
  • Option 2
type
enum<string>
required
Available options:
csv
csvData
string
required

CSV data with contact information

Response

Successfully added leads to campaign

status
string
message
string
data
object