---
title: "Create a request to export leads collected from a lead ad"
method: POST
path: "/ad_accounts/{ad_account_id}/leads_export"
tags: ["leads_export"]
---

# Create a request to export leads collected from a lead ad

`POST /ad_accounts/{ad_account_id}/leads_export`

## Request

- Base URL: `https://api.pinterest.com/v5`
- URL: `https://api.pinterest.com/v5/ad_accounts/{ad_account_id}/leads_export`
- Auth: OAuth 2
  - Authorization code: `https://www.pinterest.com/oauth/`
  - Token URL: `https://api.pinterest.com/v5/oauth/token` scopes: `ads:write`
- TypeScript: <https://skmtc.dev/pinterest/apis/pinterest-rest-api/docs/ad_accounts/:ad_account_id/leads_export/post.ts> (a function with typed inputs; its response is checked against the schema)

**This feature is currently in beta and not available to all apps. If you're interested in joining the beta, please reach out to your Pinterest account manager.**

Create an export of leads collected from a lead ad. This returns a `leads_export_id` token that you can use to download the export when it is ready.

Note: Lead ad data will be available up to 30 days after the lead has been submitted.

For more, see [Lead ads](https://help.pinterest.com/en/business/article/lead-ads).

## Path parameters

- `ad_account_id` string, required

## Request body

- LeadsExportsCreate: Resource create operation model.
  - `ad_id` string, required: ID for the ad collecting leads.
  - `end_date` string, required: Export leads collected on and before end date (UTC). Format: YYYY-MM-DD.
  - `start_date` string, required: Export leads collected on and after start date (UTC). Format: YYYY-MM-DD.

## Response `200`

The request has succeeded.

- LeadsExports
  - `leads_export_id` string: ID for the leads export job.

## Other responses

- `201`: Resource create operation completed successfully.
- `400`: The request could not be understood by the server due to unexpected data.
- `401`: Authentication is required and has either failed or not been provided.
- `403`: The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404`: The requested resource could not be found on this server.
- `429`: The user has sent too many requests in a given amount of time and is being rate limited.
- `default`: An unexpected error response.

## Changes

- **2026-06-04** (v5) `b698c180678a`: 2 warning, 6 info
  - changed the pattern of the request property `end_date` from `^(\d{4})-(\d{2})-(\d{2})$` to `^\d{4}-\d{2}-\d{2}$`
  - changed the pattern of the request property `start_date` from `^(\d{4})-(\d{2})-(\d{2})$` to `^\d{4}-\d{2}-\d{2}$`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - …4 more
- **2024-08-14** (v5) `89c27ed39cfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pinterest/apis/pinterest-rest-api/changes/ad_accounts/:ad_account_id/leads_export/post.md)

---

[API](https://skmtc.dev/pinterest/apis/pinterest-rest-api.md) - [All operations](https://skmtc.dev/pinterest/apis/pinterest-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pinterest/apis/pinterest-rest-api/revisions/b698c180678a?raw)
