Get an export and, once ready, where to fetch it
Get an export and, once ready, where to fetch it
GET/v1/records/exports/{export_id}
A key with the permissions:records scope.
Request
curl "https://api.pod.mapier.ai/v1/records/exports/example?project=example" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
export_id | path | string | Yes | |
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. The export.
{
"id": "example",
"state": "running",
"format": "ocsf",
"from": "2026-11-23T12:00:00.000Z",
"to": "2026-11-23T12:00:00.000Z",
"sandbox": null,
"rows": null,
"chain_heads": [
{
"sandbox": "example",
"seq": 0,
"hash": "example"
}
],
"download_url": null,
"expires_at": null,
"created_at": "2026-11-23T12:00:00.000Z",
"created_by": "example",
"problem": null
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
state | "running" | "ready" | "failed" | Yes | |
format | "ocsf" | "otlp" | Yes | ocsf: OCSF events as JSON lines. otlp: OpenTelemetry log records as OTLP JSON. |
from | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
to | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
sandbox | string | null | Yes | |
rows | integer | null | Yes | At least 0. |
chain_heads | ChainHead[] | Yes | |
download_url | string | null | Yes | Once ready, where to fetch the file, signed and short-lived. |
expires_at | string | null | Yes | |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
created_by | string | Yes | Who made a change. An identity account id for a person, or a key id (key_…) for an API key. |
problem | string | null | Yes | Why it failed. |
Errors
The refusals this call is known for: unauthorized, forbidden, not_found. 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.