Skip to content

Subscribe & unsubscribe contacts

If you have questions regarding this API, please visit our API FAQ page.

These two endpoints bulk-change the subscription status of existing contacts within a single contacts list. They are symmetric: subscribe sets the contacts’ status to subscribed, unsubscribe sets it to unsubscribed.

Subscribing contacts

Make a POST request to https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/contacts/subscribe/ with a valid X-API-Key. Pass one or more contact ids in the body.

Terminal window
curl -X POST 'https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/contacts/subscribe/' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"contacts_ids": [4821, 4822]
}'

Unsubscribing contacts

Make a POST request to https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/contacts/unsubscribe/ with the same body shape.

Terminal window
curl -X POST 'https://webapi.inboxroad.com/api/v2/contacts-lists/{blueprint_id}/contacts/unsubscribe/' \
-H 'X-API-Key: <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"contacts_ids": [4821, 4822]
}'

Path parameters

Param nameDescription
blueprint_idUnique identifier of the contacts list (UUID).

Request fields

Field nameRequiredDescription
contacts_idsYesArray of contact ids (integers) whose status to change. All must belong to the given list.

Response

Returns 200 with a human-readable confirmation message.

{
"message": "Subscribed 2 contacts"
}

The unsubscribe endpoint returns the same shape, e.g. "Unsubscribed 2 contacts".

Possible response codes

Status codeDescription
200Subscription status updated successfully.
401Unauthorized.
403Updating contacts is not available for your account, or the list’s integration does not support subscribing.
404Contact list not found, or an id does not belong to it.
422blueprint_id is not a valid UUID, or contacts_ids is not a list of integers.
429Rate limit exceeded. See Rate limiting.