Ledga
GET /exports/{export}/download

Download a completed export's file

The file itself, not an envelope: CSV, XLSX, JSON or Parquet, named for its type and what it is as of.

Parameters

NameInTypeDescription
exportrequired path string
uuid

Responses

200The file

No body.

401Unauthenticated
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
404Not this ledger's, unknown, or its file gone
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
409EXPORT_NOT_READY: not complete yet, or failed
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
429The download limit: 10 a minute per key, 30 per ledger
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}

Examples

curl https://ledga.io/api/v1/exports/{export}/download \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"

← All endpoints