Skip to content

Batch Contact Related

POST
/contacts/related

Sequences and/or lists for up to 100 contacts in ONE request. Writes nothing.

Use this instead of looping GET /contacts/{contact_id}/sequences or /lists per contact: the loop spends one rate-limit slot per contact and hits 429 on a large book; this spends one per 100.

Each contact gets exactly what its per-contact route returns, through the same access check. A contact that does not exist or is outside the key’s scope for any requested include comes back found: false with no related records, rather than failing the batch. POST only because the ids are a body; it is tiered as a read.

Authorizations

Parameters

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Which contacts, and which of their related records, to read in one call.

object
contact_ids
required

Up to 100 contact ids, the same ids the per-contact routes take. Duplicates are read once; the response keeps first-seen order.

Array<integer>
>= 1 items <= 100 items
include

Related records to return per contact. sequences matches GET /contacts/{contact_id}/sequences; lists matches GET /contacts/{contact_id}/lists (keyed on the contact primary key).

Array<string>
>= 1 items
Allowed values: sequences lists

Responses

200

Successful Response

object
data
required
object
items
Array<object>

One contact’s related records. A field is present only when requested.

object
contact_id
required
integer
found
required

False when the contact does not exist or is outside this key’s scope (indistinguishable on purpose, like the per-contact 404).

boolean
lists
Any of:
Array<object>
object
key
additional properties
any
sequences
Any of:
Array<object>
object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string