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": "ava@example.com",
"phone": "15551234567",
"contactMetadata": {
"source": "web_form",
"tier": "trial"
}
}
]
}'
{
"message": "Processed 2 contacts successfully",
"success": [
{
"phone": "15551234567",
"email": "jane.doe@example.com",
"action": "created"
},
{
"phone": "15559876543",
"email": "john.smith@example.com",
"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.

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 or updated.

errors
object[]

Contacts that failed to process with error details.

I