← Back to API Reference

POST /contacts

Create Contact

Compatibility endpoint to create contact data.

Request (cURL)

curl -X POST "http://localhost:8080/v1/contacts" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "audience_id": "aud_123",
  "email": "customer@example.com",
  "first_name": "Customer",
  "last_name": "Name"
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "audience_id": "aud_123",
  "email": "customer@example.com",
  "first_name": "Customer",
  "last_name": "Name"
}