# List contacts

`GET /v1/contacts`

The people of the workspace, or of one audience, newest first, by address, name and status.

Needs the scope: `audiences:read`

## Query parameters

- `q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `after` (string): The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
- `before` (string): The id of the first item you have. The answer ends with the item just before it. Give this or `after`, not both. Up to 64 characters.
- `audienceId` (string): Only the contacts in this audience. Without it, every contact of the workspace. Up to 64 characters.
- `status` (string): Only contacts in this state: `subscribed` or `unsubscribed`. One of: `subscribed`, `unsubscribed`.

## Returns

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("contact"): Always `contact`.
- `data[].id` (string): The id of the contact.
- `data[].email` (string): The address of the contact. A workspace holds an address once.
- `data[].firstName` (string): The first name of the contact. Empty when it is not known.
- `data[].lastName` (string): The last name of the contact. Empty when it is not known.
- `data[].status` (string): `subscribed` while the contact gets broadcasts, `unsubscribed` after they leave. One of: `subscribed`, `unsubscribed`.
- `data[].unsubscribedAt` (string | null): When the contact unsubscribed, or `null`.
- `data[].properties` (Record<string, string | number | boolean>): Values of your own on the contact, by name. Automations can test them, and broadcasts and automations fill `{{name}}` slots with them.
- `data[].audienceIds` (string[]): The ids of the audiences the contact is in.
- `data[].topics` (Record<string, string>): What the contact chose for a topic, by the id of the topic: `opt_in` or `opt_out`. A topic that is not here follows its own default.
- `data[].createdAt` (string): When the contact was added.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

cURL:

```bash
curl "$OPENSEND_API_URL/v1/contacts?audienceId=aud_01&status=unsubscribed" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.contacts.list({
  audienceId: 'aud_01',
  status: 'unsubscribed',
})
```

CLI:

```bash
opensend contacts list --audience-id aud_01 --status unsubscribed
```

MCP:

```json
{
  "name": "contacts_list",
  "arguments": {
    "audienceId": "aud_01",
    "status": "unsubscribed"
  }
}
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "contact",
      "id": "con_0123594d7690360bf2986a91",
      "email": "linus@example.com",
      "firstName": "Linus",
      "lastName": "Torvalds",
      "status": "unsubscribed",
      "unsubscribedAt": "2026-11-27T09:30:00.000Z",
      "properties": {},
      "audienceIds": [
        "aud_01"
      ],
      "topics": {},
      "createdAt": "2026-11-27T09:30:00.000Z"
    }
  ],
  "total": 1,
  "hasMore": false
}
```
