Export Retention Samples
GET/api/v2/retention-samples/export
Download the retention samples list as an Excel or CSV file: the same filters (including filter_groups and filter[<column>.<operator>]) and sort as List Retention Samples, with the columns you choose, each written as the list shows it (status and source by label, dates as YYYY-MM-DD).
inventory:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Up to 10,000 rows are written. When more rows match, the response carries an X-Export-Truncated header whose value is how many matched.
Permission: inventory.index and inventory.export. Personal access tokens need the inventory:read scope.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.