Skip to main content
POST
/
api
/
ledger
/
v2
/
{ledger}
/
logs
/
export
Export logs
curl --request POST \
  --url http://localhost/api/ledger/v2/{ledger}/logs/export \
  --header 'Authorization: Bearer <token>'
"<string>"
Export all logs from the ledger in binary format. Used for backups, disaster recovery, and migrating data between environments.

Parameters

ledger: The name of the ledger to export logs from. (e.g., ledger001)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

ledger
string
required

Name of the ledger.

Example:

"ledger001"

Response

Import OK