Skip to Content
Contacts

Add or remove contacts

POST
/groups/{groupId}/members

Adds contacts to the group or removes them from it, up to 1000 per request. Returns how many memberships changed.

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

Path Parameters

groupId*string
Formatuuid

Request Body

application/json
  1. body
action*string
Value in"add""remove"
contact_ids*array<>
Items1 <= items <= 1000

Response Body

Rows changed

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08/members' \  -H 'Content-Type: application/json' \  -d '{  "action": "add",  "contact_ids": [    "019a8c2e-4f1b-7a09-9c3d-5e7a10000009"  ]}'
Example Response
{  "data": {    "count": 25  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}