---
title: "List a segment's contacts"
method: GET
path: "/segments/{id}/contacts"
tags: ["Segments"]
---

# List a segment's contacts

`GET /segments/{id}/contacts`

## Request

- Base URL: `https://api.mepmail.dev`
- URL: `https://api.mepmail.dev/segments/{id}/contacts`
- Auth: HTTP bearer

Lists the contacts a segment resolves to right now.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `limit` integer: Page size, 1-100 (default 20)
- `after` string, uuid: Cursor: id of the last item of the previous page. Must be an id this list returned; there is no sentinel value.
- `before` string, uuid: Cursor: id of the first item of the next page (page backwards); same rule as after.
- `include` string: MepMail extension: comma-separated facets attached to every item — `properties` (the {type, value} map GET /contacts/{id} returns) and `topics` (the rows GET /contacts/{id}/topics returns). Omitted, each item has the Resend shape.

## Response `200`

Contacts the segment resolves to

- ListContactsResponse
  - `object` 'list', required
  - `data` object[], required
    - `id` string, uuid, required
    - `email` string, required
    - `first_name` string, nullable, required
    - `last_name` string, nullable, required
    - `created_at` string, required
    - `unsubscribed` boolean, required
    - `properties` object: Present with include=properties
    - `topics` object[]: Present with include=topics
      - `id` string, uuid, required
      - `name` string, required
      - `description` string, nullable, required
      - `subscription` 'opt_in' | 'opt_out', required: Effective choice: the contact's explicit one, else the topic's default
      - `explicit` boolean, required: True when the contact or the API chose this; false when it is the topic's default
      - `visibility` 'public' | 'private', required: The hosted preference page lists public topics only
  - `has_more` boolean, required

## Other responses

- `401`: Missing, malformed or invalid API key
- `404`: Not found
- `422`: Validation error
- `429`: Rate limit exceeded: 600 requests per minute per API key and 3,000 per team; wait for Retry-After

---

[API](https://skmtc.dev/mepmail/apis/mepmail-api.md) · [All operations](https://skmtc.dev/mepmail/apis/mepmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mepmail/apis/mepmail-api/revisions/262a89f73730?raw)
