Skip to main content
POST
/
campaigns
/
{campaignId}
/
contacts
curl --request POST \
  --url https://api.heylibby.com/api/v1/campaigns/{campaignId}/contacts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "contacts": [
    {
      "firstName": "Ava",
      "lastName": "Lopez",
      "email": "[email protected]",
      "phone": "15551234567",
      "contactMetadata": {
        "source": "web_form",
        "tier": "trial"
      }
    }
  ]
}
'
{
"message": "Processed 3 contacts successfully",
"success": [
{
"phone": "15551234567",
"email": "[email protected]",
"action": "created"
},
{
"phone": "15559876543",
"email": "[email protected]",
"action": "updated"
}
],
"errors": []
}

Authorizations

x-api-key
string
header
required

Path Parameters

campaignId
string<uuid>
required

The unique ID of the campaign

Body

application/json
contacts
object[]
required

List of contacts to add or update. When action is set to "remove", these contacts are removed from the campaign.

action
enum<string>

Set to "remove" to remove the contacts specified in the contacts array.

Available options:
remove
Example:

"remove"

Response

Request accepted and processed successfully.

message
string

Human-readable summary of the operation results.

Example:

"Processed 2 contacts successfully, 1 failed"

success
object[]

Contacts that were successfully created, updated, or deleted.

errors
object[]

Contacts that failed to process with error details.