Export records by an ID list, a created-date range or a last-updated-date range, selecting the fields to return.
POSThttps://secure-api.setshape.com/api/leads/bulk/export/{crmid}
Replace
{crmid} with your CRM ID, the Shape system ID that belongs to your API key. Send the standard headers on every request: Authorization: YOUR_API_AUTHORIZATION_KEY and Content-Type: application/json. See Authentication.Body parameters
Send up to 500 IDs, or one date range: createdDateRange or updatedDateRange, not both. fields is required.
| Field | Requirement | Description |
|---|---|---|
ids |
Conditional | A list of up to 500 record IDs (or use a date range). |
createdDateRange |
Conditional | Filters by the date records were created. An object with from, to and pageNumber. If from and to are left out, only today’s records are returned. |
updatedDateRange |
Conditional | Filters by the date records were last updated. An object with from, to and pageNumber, in the same format as createdDateRange. If from and to are left out, only today’s records are returned. Can’t be combined with createdDateRange. |
pageNumber |
Optional | Page number, starting at 1. Always send it when using a date range. Send it inside the date range object or at the top level. |
fields |
Required | A list of the field names to return. |
Paging
When filtering by createdDateRange or updatedDateRange, results come 50 records per page. Send pageNumber, starting at 1, inside the date range object (Bulk Export also accepts it at the top level). Always send pageNumber with a date range. The highest page number is 200. You’ve reached the last page when a page has fewer than 50 records. See Pagination.
Example request
{
"createdDateRange": {
"from": "2026-08-01",
"to": "2026-08-31",
"pageNumber": 1
},
"fields": [
"leadid",
"recordtype",
"createdDate",
"firstname",
"lastname",
"email"
]
}
Example: export by last updated date
{
"updatedDateRange": {
"from": "2026-08-01",
"to": "2026-08-31",
"pageNumber": 1
},
"fields": [
"leadid",
"recordtype",
"lastActivityDate",
"firstname",
"lastname",
"email"
]
}
Sample response
Records are keyed by record ID, and fields_not_found lists any requested field names Shape didn’t recognize.
{
"message": "Data fetched successfully.",
"data": {
"281944": {
"firstname": "Jordan",
"lastname": "Sample",
"email": "jordan.sample@example.com"
}
},
"fields_not_found": []
}