MepMail Docs
API referenceEndpointsSegmentsId

Retrieve a segment

GET
/segments/{id}

Returns one segment and its filter.

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
Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "object": "segment",  "id": "ae2014de-c168-4c61-8267-70d2662a1ce1",  "name": "Order updates",  "filter": {    "match": "all",    "conditions": [      {        "field": "email",        "op": "ends_with",        "value": "@example.com"      }    ]  },  "created_at": "2026-10-19T12:00:00.000Z",  "contact_count": 1}