---
title: "Export logs"
method: POST
path: "/v2/{ledger}/logs/export"
tags: ["ledger.v2"]
---

# Export logs

`POST /v2/{ledger}/logs/export`

## Path parameters

- `ledger` string, required

## Response `200`

Export OK

## Other responses

- `default` — Error

## Changes

> 52 revisions in range; 44 could not be searched.

- **2026-03-25** `3ef3cb98f97a` — 1 breaking, 2 info
  - removed the media type `application/octet-stream` for the response with the status `default`
  - added the media type `application/json` for the response with the status `default`
  - added the media type `application/octet-stream` for the response with the status `200`

[Change history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v2/:ledger/logs/export/post.md)

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/fe945da1b75d/schema)
