---
title: "Export an SMS campaign's recipients"
method: POST
path: "/smsCampaigns/{campaignId}/exportRecipients"
tags: ["SMS Campaigns"]
---

# Export an SMS campaign's recipients

`POST /smsCampaigns/{campaignId}/exportRecipients`

It returns the background process ID which on completion calls the notify URL that you have set in the input.

## Path parameters

- `campaignId` integer, required

## Request body

- RequestSmsRecipientExport
  - `notifyURL` string, url — URL that will be called once the export process is finished. For reference, https://help.brevo.com/hc/en-us/articles/360007666479
  - `recipientsType` 'all' | 'delivered' | 'answered' | 'softBounces' | 'hardBounces' | 'unsubscribed', required — Filter the recipients based on how they interacted with the campaign

## Response `202`

Recipient export request has been accepted

- CreatedProcessId
  - `processId` integer, required — Id of the process created

## Other responses

- `400` — bad request
- `404` — Campaign ID not found

---

[API](https://skmtc.net/getbrevo/apis/brevo-api.md) · [All operations](https://skmtc.net/getbrevo/apis/brevo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbrevo/brevo-api/versions/2aec3cf66501/schema)
