---
title: "Get a single system log by bucket-wide sequence"
method: GET
path: "/v3/_/logs/{sequence}"
tags: ["Logs"]
---

# Get a single system log by bucket-wide sequence

`GET /v3/_/logs/{sequence}`

## Request

- Base URL: `http://localhost:9000`
- URL: `http://localhost:9000/v3/_/logs/{sequence}`
- Auth: one of:
  - HTTP bearer
  - none

Returns the system log entry with the given bucket-wide sequence number.
Requires `ledger:ReadOps` scope.

## Path parameters

- `sequence` integer, required

## Headers

- `X-Consistency` 'linearizable' | 'stale'
- `Formance-Bigint-As-String` string

## Response `200`

Log retrieved successfully.

- object
  - `data` SystemLog, required: System log entry, shared by single-log responses, ledger-log lists, prepared-query logData, and JSON events. The system payload keeps its named variant (apply, createLedger, deleteLedger, etc.). A ledger log inside payload.apply.log uses the flat LedgerLog contract. Non-apply system payload variants are not exhaustively described here.
    - `sequence` integer
    - `payload` object: Named system payload variants are preserved as supplied, including nested fields and future sibling variants. Only apply is typed here; other variants remain open-ended (EN-2781).
      - `apply` object
        - `ledgerName` string
        - `log` LedgerLog: Ledger-local log. The type selects the direct object in data, following the v2 type/data structure; data has no variant-name wrapper. New v3 operations have distinct type values. Metadata remains typed, volumes retain colors, and reversals contain the original transaction ID and the reversing transaction rather than the full original transaction. This JSON projection is not an audit replay or backup format.
          - `type` 'NEW_TRANSACTION' | 'REVERTED_TRANSACTION' | 'SET_METADATA' | 'DELETE_METADATA' | 'SET_METADATA_FIELD_TYPE' | 'REMOVED_METADATA_FIELD_TYPE' | 'ORDER_SKIPPED' | 'FILL_GAP' | 'CREATE_INDEX' | 'DROP_INDEX' | 'ADDED_ACCOUNT_TYPE' | 'REMOVED_ACCOUNT_TYPE' | 'UPDATED_DEFAULT_ENFORCEMENT_MODE', required
          - `data` object, required: Direct operation payload selected by type. NEW_TRANSACTION contains transaction and optional accountMetadata. REVERTED_TRANSACTION contains revertedTransactionId and revertTransaction. SET_METADATA and DELETE_METADATA contain targetType (ACCOUNT or TRANSACTION) and targetId: an account-address string or an unsigned 64-bit transaction integer, including zero. SET_METADATA also contains metadata; DELETE_METADATA contains key. ORDER_SKIPPED contains reason and optional context. Other types carry the fields of their corresponding operation directly. FILL_GAP contains originalId, a uint64 encoded as a decimal JSON string by protobuf JSON. Transaction IDs, revertedTransactionId and transaction targetId are JSON numbers; consumers must preserve full integer precision. Metadata integers are JSON numbers and null-valued keys are preserved.
          - `date` string, date-time
          - `id` integer: Ledger-local log ID; omitted when zero.
    - `responseSignature` object

## Other responses

- `400`: Bad request
- `401`: Authentication required (missing or invalid JWT token)
- `403`: Insufficient permissions (missing required scope)
- `404`: Not found
- `500`: Internal server error

## Changes

- **2026-11-03** `f5e817eca038`: 1 info
  - api operation id `getLog` removed and replaced with `v3GetLog`
- **2026-10-09** `0ed18e459f51`: 1 info
  - added the new optional `header` request parameter `Formance-Bigint-As-String`
- **2026-10-08** `3da23d327316`: 2 info
  - added the media type `text/plain` for the response with the status `401`
  - added the media type `text/plain` for the response with the status `403`
- **2026-10-08** `b3ee1959d86a`: 1 info
  - added the new optional `header` request parameter `X-Consistency`
- **2026-09-30** `b747efd5cd77`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/formancehq/apis/ledger-api/changes/v3/_/logs/:sequence/get.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.dev/formancehq/apis/ledger-api/revisions/f5e817eca038?raw)
