---
title: "Export campaign results grouped by audience member"
method: GET
path: "/campaign/{id}/export/by-audience-member"
tags: ["Campaigns"]
---

# Export campaign results grouped by audience member

`GET /campaign/{id}/export/by-audience-member`

Returns one row per contact in the campaign audience with the outcome of every call
attempt for that contact (status, disposition, duration, cost, call ID). Use this to
reconcile a campaign run against a CRM, or to identify contacts that never connected.
The response streams as CSV.

## Path parameters

- `id` string, required

## Query parameters

- `format` 'json' | 'csv'

## Response `200`

The grouped export. The default `json` returns the structured object below;
`format=csv` streams `text/csv` with one row per audience-member contact. The
CSV column set matches your dashboard's campaign export for this campaign.

- object
  - `campaign` string — The campaign name.
  - `exportedAt` string, date-time
  - `totalAudienceMembers` integer
  - `data` object[]
    - `audienceMemberId` string
    - `audienceMemberData` object — The audience member's custom fields.
    - `phoneNumber` string
    - `originalCall` object, nullable — The first call attempt for this member.
    - `retryAttempts` object[]
    - `totalAttempts` integer
    - `finalStatus` string
    - `totalCallDuration` number
    - `totalCallCost` number

## Other responses

- `404` — Campaign not found.

---

[API](https://skmtc.net/smallest-inc/apis/agent-management-api.md) · [All operations](https://skmtc.net/smallest-inc/apis/agent-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smallest-inc/agent-management-api/revisions/9fd13f607823/schema)
