Back to appHeyWAGet API key

Leads & Analytics

Add campaign contacts

POST/api/public/v1/campaigns/{campaign_id}/contacts

One contact or a contacts array, maximum 500 per request. Phone is the only mandatory contact field.

Optional custom_fields maps variable names to text values (e.g. city → {{city}}). Names use lowercase letters, digits and underscores, starting with a letter; built-in names are reserved. Missing first_name uses "there". Every other variable used in the message must have a value; missing or blank values skip the message. Assign a list first. Suppression, duplicate exclusions and contact quotas apply. Existing lead progress is never reset. Completed campaigns automatically resume only when new targets are added. If the campaign sets event_key, send company or job_title as a top-level contact field, or a custom event variable in custom_fields: a NEW value enrolls the same contact again as a fresh cycle and the same value never re-sends; contacts without the event variable are skipped.

Authorizations

x-api-keystring· headerrequired

Your workspace API key from Settings. Keep it server-side.

Parameters

campaign_idinteger· pathrequired

Replace {campaign_id} with the numeric ID from the campaign URL.

contactsarray· body

Example: [{"phone":"+15551234567","first_name":"Ada","company":"Acme","custom_fields":{"city":"Mumbai","application_id":"A-1042"}}]

Response codes

200
Success
400
Invalid input
401
Missing, invalid or revoked API key
402
Inactive plan or quota exceeded
404
Resource not found
409
Campaign state or idempotency conflict
422
Launch requirements not satisfied
429
Rate limit exceeded; follow Retry-After
503
API setup required or temporarily unavailable

Rate limit: 300 requests/minute per key. Read endpoints return identifiers and operational metadata, not contact personal information or message content.