# List contacts

Returns contacts, one page at a time.

```http
GET https://api.pozy.ai/v1/contacts
```

- Area: Automations / Contacts
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `profileId` (string)
- `accountId` (string)
- `search` (string)
- `tag` (string)
- `tags` (string)
- `platform` (string): one of instagram, facebook, telegram, twitter, bluesky, reddit, whatsapp, slack, sms
- `isSubscribed` (string): one of true, false
- `limit` (integer)
- `skip` (integer)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/contacts?limit=50" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/contacts?limit=50", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/contacts",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "limit": 50,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `contacts`, array of object
  - `id`, string
  - `name`, string
  - `email`, string
  - `company`, string
  - `avatarUrl`, string
  - `tags`, array of string
  - `isSubscribed`, boolean
  - `isBlocked`, boolean
  - `lastMessageSentAt`, string (date-time)
  - `lastMessageReceivedAt`, string (date-time)
  - `messagesSentCount`, integer
  - `messagesReceivedCount`, integer
  - `customFields`, object
  - `notes`, string
  - `createdAt`, string (date-time)
  - `platform`, string
  - `platformIdentifier`, string
  - `displayIdentifier`, string
- `filters`, object
  - `tags`, array of string
- `pagination`, object
  - `total`, integer
  - `limit`, integer
  - `skip`, integer
  - `hasMore`, boolean

```json
{
  "success": true,
  "contacts": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "name": "Acme",
      "email": "alex@example.com",
      "company": "string",
      "avatarUrl": "https://pozy.ai/media/example-1.jpg",
      "tags": [
        "string"
      ],
      "isSubscribed": true,
      "isBlocked": true,
      "lastMessageSentAt": "2026-10-02T09:00:00.000Z",
      "lastMessageReceivedAt": "2026-10-02T09:00:00.000Z",
      "messagesSentCount": 42,
      "messagesReceivedCount": 42,
      "customFields": {},
      "notes": "string",
      "createdAt": "2026-10-02T09:00:00.000Z",
      "platform": "instagram",
      "platformIdentifier": "instagram",
      "displayIdentifier": "string"
    }
  ],
  "filters": {
    "tags": [
      "string"
    ]
  },
  "pagination": {
    "total": 42,
    "limit": 1,
    "skip": 1,
    "hasMore": true
  }
}
```
