Skip to Content
Contacts

Apply one action to many contacts

POST
/contacts/bulk

Targets either the given ids or every contact matching a filter (optionally minus exclude_ids), up to 200,000 contacts. Tag, group and consent actions need contacts.update; delete needs contacts.delete.

Scope: contacts.update. Rate limit: 300 requests per minute per API key.

Authorization

apiKey contacts.update
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: contacts.update

Request Body

application/json
  1. body
action*string
Value in"add_tag""remove_tag""add_to_group""remove_from_group""opt_out""opt_in""delete"
exclude_ids?array<>
Itemsitems <= 1000
filter?
group_id?string
Formatuuid
ids?array<>
Itemsitems <= 1000
tag_id?string
Formatuuid
tag_name?string

For add_tag: creates the tag when it does not exist.

Length1 <= length <= 50

Response Body

Done

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/contacts/bulk' \  -H 'Content-Type: application/json' \  -d '{  "action": "add_tag",  "ids": [    "019a8c2e-4f1b-7a09-9c3d-5e7a10000009",    "019a8c2e-4f1b-7a18-9c3d-5e7a10000018"  ],  "tag_name": "winter-2026"}'
Example Response
{  "data": {    "affected": 117,    "matched": 120  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}