Contacts
Manage account-wide contacts and their segment memberships.
Account-wide contacts represent each email address once across your organization. Changes apply to the address in every segment it belongs to. Every endpoint that takes {id_or_email} accepts a contact ID or an email address. See Contacts and segments.
The contact object
{
"object": "contact",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"email": "[email protected]",
"first_name": "Ann",
"last_name": "Lee",
"unsubscribed": false,
"created_at": "2026-10-11T08:10:00.000Z"
}Create a contact
POST /contacts
| Name | Type | Required | Description |
|---|---|---|---|
email | string | Yes | The email address. Stored in lowercase. |
first_name | string | No | First name. |
last_name | string | No | Last name. |
unsubscribed | boolean | No | Default false. |
segments | string[] | No | Segment IDs to add the contact to. Without it, the contact joins the default General segment. segment_id or audience_id (a single ID) are also accepted. |
curl -X POST https://api.usend.et/contacts \
-H "Authorization: Bearer us_123456789" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"first_name": "Ann",
"segments": ["78261eea-8f8b-4381-83c6-79fa7120f1cf"]
}'{ "object": "contact", "id": "e169aa45-1ecf-4183-9955-b1499d5701d3" }With a single segment, an address that is already in it fails with 409 conflict. With several segments, the segments that already contain the address are skipped.
Retrieve a contact
GET /contacts/{id_or_email}
curl https://api.usend.et/contacts/[email protected] \
-H "Authorization: Bearer us_123456789"Returns the contact object.
List contacts
GET /contacts
One row per email address. Paginated.
| Name | Type | Required | Description |
|---|---|---|---|
segment_id | string | No | Only contacts in this segment. audience_id is also accepted. |
limit | integer | No | 1 to 100. Default 50. |
after | string | No | Return contacts older than this ID. |
before | string | No | Return contacts newer than this ID. |
curl "https://api.usend.et/contacts?segment_id=78261eea-8f8b-4381-83c6-79fa7120f1cf" \
-H "Authorization: Bearer us_123456789"{
"object": "list",
"data": [
{
"object": "contact",
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"email": "[email protected]",
"first_name": "Ann",
"last_name": "Lee",
"unsubscribed": false,
"created_at": "2026-10-11T08:10:00.000Z"
}
],
"has_more": false
}Update a contact
PATCH /contacts/{id_or_email}
Updates the address in every segment it belongs to.
| Name | Type | Required | Description |
|---|---|---|---|
first_name | string | No | First name. |
last_name | string | No | Last name. |
unsubscribed | boolean | No | Unsubscribe or resubscribe the address everywhere. |
curl -X PATCH https://api.usend.et/contacts/[email protected] \
-H "Authorization: Bearer us_123456789" \
-H "Content-Type: application/json" \
-d '{ "first_name": "Annie" }'Returns the updated contact object.
Delete a contact
DELETE /contacts/{id_or_email}
Removes the address from every segment.
curl -X DELETE https://api.usend.et/contacts/[email protected] \
-H "Authorization: Bearer us_123456789"{ "object": "contact", "id": "e169aa45-1ecf-4183-9955-b1499d5701d3", "deleted": true }List a contact's segments
GET /contacts/{id_or_email}/segments
curl https://api.usend.et/contacts/[email protected]/segments \
-H "Authorization: Bearer us_123456789"{
"object": "list",
"data": [
{
"object": "segment",
"id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"name": "Newsletter",
"created_at": "2026-10-11T08:00:00.000Z",
"contact_count": 1240
}
],
"has_more": false
}Add a contact to a segment
POST /contacts/{id_or_email}/segments/{segment_id}
Copies the contact's details into the segment. Adding a contact that is already in the segment succeeds without changes.
curl -X POST https://api.usend.et/contacts/[email protected]/segments/78261eea-8f8b-4381-83c6-79fa7120f1cf \
-H "Authorization: Bearer us_123456789"{ "id": "78261eea-8f8b-4381-83c6-79fa7120f1cf" }Remove a contact from a segment
DELETE /contacts/{id_or_email}/segments/{segment_id}
curl -X DELETE https://api.usend.et/contacts/[email protected]/segments/78261eea-8f8b-4381-83c6-79fa7120f1cf \
-H "Authorization: Bearer us_123456789"{ "id": "78261eea-8f8b-4381-83c6-79fa7120f1cf", "deleted": true }Import contacts in the background
POST /contacts/imports
For large files. The rows are queued and applied by a background job; poll the import for the result. The rules are those of the CSV import: existing contacts are updated, empty values never erase stored ones, and an import can unsubscribe a contact but never subscribes one again. Send either csv or contacts.
| Name | Type | Required | Description |
|---|---|---|---|
csv | string | One of | CSV text with a header row (email, first_name, last_name, unsubscribed and your property keys). |
contacts | array | One of | Rows as JSON: { "email", "first_name", "last_name", "unsubscribed", "properties" }. |
segment_id | string | No | The segment to import into. Defaults to General. |
Up to 250,000 rows per import.
curl -X POST https://api.usend.et/contacts/imports \
-H "Authorization: Bearer us_123456789" \
-H "Content-Type: application/json" \
-d '{ "contacts": [{ "email": "[email protected]", "first_name": "Ann" }] }'{
"object": "contact_import",
"id": "3f0c7c0e-85f6-4c47-9e0c-6a1e2a4f9a10",
"segment_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"status": "pending",
"imported": 0, "updated": 0, "skipped": 0,
"errors": [], "ignored_columns": [], "error": null,
"created_at": "2026-10-11T08:00:00.000Z", "started_at": null, "completed_at": null
}status is pending, processing, completed or failed. When it is completed, imported, updated and skipped hold the counts and errors lists the first 25 rows that were refused. A file that cannot be read at all ends failed with error explaining why.
Retrieve a contact import
GET /contacts/imports/{id}
curl https://api.usend.et/contacts/imports/3f0c7c0e-85f6-4c47-9e0c-6a1e2a4f9a10 \
-H "Authorization: Bearer us_123456789"List contact imports
GET /contacts/imports
Supports pagination and a status filter.
curl "https://api.usend.et/contacts/imports?status=completed" \
-H "Authorization: Bearer us_123456789"Retrieve a contact property
GET /contact-properties/{id}
curl https://api.usend.et/contact-properties/9d1c6b4e-3a53-4f5b-8d3d-2f7a6c1e0b42 \
-H "Authorization: Bearer us_123456789"{
"object": "contact_property",
"id": "9d1c6b4e-3a53-4f5b-8d3d-2f7a6c1e0b42",
"key": "plan",
"type": "string",
"fallback_value": "free",
"created_at": "2026-10-11T08:00:00.000Z"
}