Create a request to export leads collected from a lead ad
Changed onThis 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.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of an ad account.
Request body
Example request
{
"ad_id": "687201361754",
"end_date": "2020-12-20",
"start_date": "2020-12-20"
}Response
The request has succeeded.
Example response
{
"leads_export_id": "123456789012"
}Changes
- warning
changed the pattern of the request property
from^(\d{4})-(\d{2})-(\d{2})$to^\d{4}-\d{2}-\d{2}$ - warning
changed the pattern of the request property
from^(\d{4})-(\d{2})-(\d{2})$to^\d{4}-\d{2}-\d{2}$ - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
the response optional property
became read-only for the status - info
added the success response with the status
- warning
- info
endpoint added
- info