Skip to Content
Pouch
Exports

Read an export

GET
/v1/exports/{id}

Auth: Bearer key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Query Parameters

fields?string

Comma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, kind, status, count, filename, download_url, error, requested_at, started_at, ready_at, failed_at, expires_at.

Response Body

The export's current status.

application/json
  1. response
id?string

Opaque id, prefixed exp_.

kind?string

What this export contains.

Value in"log_csv""log_ndjson""bodies""data"
status?string

requested and running are both in progress. ready carries download_url. failed carries error. expired means the artifact's retention window (7 days from ready_at) has passed — request a new export.

Value in"requested""running""ready""failed""expired"
count?|

Row count as of the request.

filename?|

Set once the export is ready.

download_url?|

A signed link to the artifact, minted fresh on every read. Present only while status is ready — request the export again to re-read this field for a current link.

error?|

Set only when status is failed.

requested_at?string

ISO 8601 timestamp.

started_at?|

ISO 8601 timestamp the worker began building this export, or null.

ready_at?|

ISO 8601 timestamp, or null.

failed_at?|

ISO 8601 timestamp, or null.

expires_at?|

ISO 8601 timestamp the artifact is deleted, or null before it's ready.

Example Request
curl -X GET 'https://pouch.example.com/v1/exports/string'
Example Response
{  "id": "string",  "kind": "log_csv",  "status": "requested",  "count": 0,  "filename": "string",  "download_url": "string",  "error": "string",  "requested_at": "string",  "started_at": "string",  "ready_at": "string",  "failed_at": "string",  "expires_at": "string"}