Create a contact

Create a contact

POST/api/v1/contacts

POST /contacts
curl -X POST 'https://www.unitpost.com/api/v1/contacts' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "customer@example.com",
    "first_name": "Ada",
    "last_name": "Lovelace"
  }'
Response · 201
{
  "object": "contact",
  "id": "id_123",
  "email": "customer@example.com",
  "first_name": "string",
  "last_name": "string",
  "unsubscribed": false,
  "unsubscribed_at": "2026-01-01T00:00:00.000Z",
  "unsubscribe_reason": "USER",
  "custom_fields": {},
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Add a single contact to your workspace. Set an email plus any standard or custom field values; custom fields must already exist (define them with Create a custom contact field). Emails are unique per workspace, so creating one that already exists returns 409 — use Update a contact to change an existing contact, or Start an async contact import to add many at once. Requires the contacts:write capability.

Request body5 fields
FieldTypeDescription
emailrequiredstring—
first_namestring—
last_namestring—
unsubscribedboolean—
custom_fieldsobject—
Response · 201 fields11 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
emailrequiredobject—
first_namerequiredobject—
last_namerequiredobject—
unsubscribedrequiredboolean—
unsubscribed_atrequiredobject—
unsubscribe_reasonrequiredobject—
custom_fieldsrequiredobject—
created_atrequiredstring—
updated_atrequiredstring—
201401409422

Search docs and guides

Search the docs and product guides.