# List submitted leads

Returns submitted leads, one page at a time. Works with Meta Ads and LinkedIn Ads.

```http
GET https://api.pozy.ai/v1/ads/leads
```

- Area: Ads / Lead Gen
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `formId` (string)
- `accountId` (string)
- `accountIds` (string)
- `status` (string)
- `campaignId` (string)
- `platform` (string): one of meta, linkedin
- `q` (string)
- `adAccountId` (string)
- `limit` (integer)
- `since` (integer)
- `cursor` (string)

## Example request

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

```ts
const res = await fetch("https://api.pozy.ai/v1/ads/leads?limit=25", {
  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/ads/leads",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "limit": 25,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `status`, string
- `leads`, array of object
  - `id`, string
  - `leadgenId`, string
  - `formId`, string
  - `formName`, string: Can be null
  - `accountId`, string
  - `adId`, string: Can be null
  - `adsetId`, string: Can be null
  - `campaignId`, string: Can be null
  - `isOrganic`, boolean
  - `createdTime`, string: Can be null
  - `fields`, map of string
  - `fieldData`, array of object
  - `consents`, array of object
    - `checkboxKey`, string, required
    - `isChecked`, boolean, required
  - `status`, string: One of `new`, `contacted`, `unreachable`, `qualified`, `converted`, `disqualified`
  - `statusChangedAt`, string (date-time): Can be null
  - `value`, number: Can be null
  - `currency`, string: Can be null
  - `contactId`, string: Can be null
  - `firstContactedAt`, string (date-time): Can be null
  - `conversationId`, string: Can be null
  - `webhookDeliveredAt`, string (date-time): Can be null
- `pagination`, object
  - `hasMore`, boolean
  - `cursor`, string: Can be null
- `meta`, object
  - `lastCheckedAt`, string (date-time): Can be null
  - `lastUpdated`, string (date-time)

```json
{
  "status": "active",
  "leads": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "leadgenId": "6dca97cccbf47a98016ac05b",
      "formId": "6da2ff1d8c680bca61eb524a",
      "formName": "Acme",
      "accountId": "696e0b682d0a31188e7a2ba9",
      "adId": "6f40fa2fb0a7e728dd1a73b7",
      "adsetId": "6766358a9af7b9dbb7d42ea6",
      "campaignId": "65a3737dd8b11ea61f199e6e",
      "isOrganic": true,
      "createdTime": "string",
      "fields": {
        "key": "string"
      },
      "fieldData": [
        {}
      ],
      "consents": [
        {
          "checkboxKey": "string",
          "isChecked": true
        }
      ],
      "status": "new",
      "statusChangedAt": "2026-10-02T09:00:00.000Z",
      "value": 12.5,
      "currency": "USD",
      "contactId": "642d31f43531ce7d44aa5013",
      "firstContactedAt": "2026-10-02T09:00:00.000Z",
      "conversationId": "6e525f3820fc636aa96d2ee9",
      "webhookDeliveredAt": "2026-10-02T09:00:00.000Z"
    }
  ],
  "pagination": {
    "hasMore": true,
    "cursor": "string"
  },
  "meta": {
    "lastCheckedAt": "2026-10-02T09:00:00.000Z",
    "lastUpdated": "2026-10-02T09:00:00.000Z"
  }
}
```
