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

NameInTypeRequiredWhat it is
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe 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.

200
{
  "keep_days": 90,
  "kept_from": "2026-11-23T12:00:00.000Z",
  "query_days": 1,
  "archived_through": null,
  "archive_state": "none",
  "archive_error": null
}
FieldTypeAlwaysWhat it is
keep_daysintegerYesHow many days the record is kept. 90 on every plan; more is sold. From 90 to 3653.
kept_fromstringYesThe oldest time an export reaches.
query_daysintegerYesQueries answer this many days; older rows are exported.
archived_throughstring | nullYesHow far Pod's archive has got, for a project that keeps more than 90 days.
archive_state"none" | "archiving" | "failing"Yes
archive_errorstring | nullYes

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.