Skip to navigation

Retrieve an export

The export, with its source (dashboard, api or agent) and, once it is ready, a fresh download_url.

Authentication

AuthorizationBearer

A secret key (rl_sk_test_..., rl_sk_live_...) or a restricted key with limited scopes (rl_rk_test_..., rl_rk_live_...). A restricted key can carry agent: true and an expires_at, and is what a coding agent should hold. Keys end in a checksum so secret scanners can recognize them. People create, roll and revoke keys in the dashboard; GET /v1/api_keys lists them, masked.

Path parameters

export_idstringRequired

The export ID (exp_...).

Response

The export, with a download URL once it's ready.
idstring
object"export"
typeenum
Allowed values:
formatenum
Allowed values:
statusenum

pending while the worker writes the file, ready once it can be downloaded, failed with error saying why, and expired once the file has been removed, seven days after it was ready; create the export again for a fresh file.

Allowed values:
livemodeboolean
created_atdatetime
sourceenum

How the export was created: dashboard for a person in the dashboard, api for a call to POST /v1/exports with an ordinary key, agent for a call made by an agent (an agent key or the MCP server). Returned by GET /v1/exports and GET /v1/exports/{export_id}.

Allowed values:
row_countintegerOptional
download_urlstringOptionalformat: "uri"

Present when ready, on GET /v1/exports/{export_id}. Left out of GET /v1/exports. Expires after an hour; retrieve the export again for a fresh one.

download_expires_atdatetimeOptional

When download_url stops working.

errorobjectOptional
An RFC 9457 problem details object with Runledger's extension members.
completed_atdatetimeOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error