How long the project's record is kept
Every plan keeps the record 90 days.
GET/v1/records/retention
Every plan keeps the record 90 days. A project can keep it longer, set by Pod's account service for what was bought. Queries answer the last 90 days; exports reach as far back as the project keeps, read from Pod's archive past the 90 days.
A key with the permissions:records scope.
Request
curl "https://api.pod.mapier.ai/v1/records/retention?project=example" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
project | query | string | Yes | The project the call is about. Every route is scoped to one. |
Pod-Organisation | header | string | No | The organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden. |
Answer
200. How long the record is kept, and how far the archive has got.
{
"keep_days": 90,
"kept_from": "2026-11-23T12:00:00.000Z",
"query_days": 1,
"archived_through": null,
"archive_state": "none",
"archive_error": null
}| Field | Type | Always | What it is |
|---|---|---|---|
keep_days | integer | Yes | How many days the record is kept. 90 on every plan; more is sold. From 90 to 3653. |
kept_from | string | Yes | The oldest time an export reaches. |
query_days | integer | Yes | Queries answer this many days; older rows are exported. |
archived_through | string | null | Yes | How far Pod's archive has got, for a project that keeps more than 90 days. |
archive_state | "none" | "archiving" | "failing" | Yes | |
archive_error | string | null | Yes |
Errors
The refusals this call is known for: unauthorized, forbidden. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.