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.
403Action not available for your account. Body: { "errors": [ ... ] }.