MepMail Docs
API referenceEndpointsContactsIdSegmentsSegmentid

Add a contact to a segment

POST
/contacts/{id}/segments/{segmentId}

Adds a contact to a static segment.

AuthorizationBearer <token>

An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.

In: header

Path Parameters

id*string
Length1 <= length
segmentId*string
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/contacts/string/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "ae2014de-c168-4c61-8267-70d2662a1ce1"}