> ## Documentation Index
> Fetch the complete documentation index at: https://revise.io/developer/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account ledger

> Latest 50 entries with no pagination. available_delta_usd is the signed net change in account credit. Prompt and conversion entries expose the corresponding job ID; funding entries have neither. Use /v1/usage for historical charge aggregation.

See [pricing and account credit](/developer/docs/developer/docs/revise-api/pricing) for integration guidance.

## TypeScript

```ts theme={null}
import { ReviseClient } from "@reviseio/api";

const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.account.ledger();
```


## OpenAPI

````yaml developer/docs/openapi/revise-api.json GET /v1/account/ledger
openapi: 3.1.0
info:
  title: Revise API
  version: 0.1.0
  description: >-
    Asynchronous document prompts and format conversions. Submit a job, poll its
    receipt or receive a webhook, then download its artifacts. USD amounts are
    exact decimal strings. Job content expires 24 hours after terminal
    completion. All account endpoints require a bearer API key.
servers:
  - url: https://revise.io/api
security:
  - apiKey: []
paths:
  /v1/account/ledger:
    get:
      summary: Read the latest 50 credit entries
      description: >-
        Latest 50 entries with no pagination. available_delta_usd is the signed
        net change in account credit. Prompt and conversion entries expose the
        corresponding job ID; funding entries have neither. Use /v1/usage for
        historical charge aggregation.
      operationId: getLedger
      responses:
        '200':
          description: Read the latest 50 credit entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ledger'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Ledger:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              kind:
                type: string
              prompt_id:
                description: >-
                  Prompt linked to this entry, or null. Follow with GET
                  /v1/prompt/{id}; conversion_id is null for prompt entries.
                  Both IDs are null for funding entries.
                anyOf:
                  - type: string
                  - type: 'null'
              conversion_id:
                anyOf:
                  - type: string
                  - type: 'null'
                description: >-
                  Conversion linked to this entry, or null. Follow with GET
                  /v1/convert/{id}; prompt_id is null for conversion entries.
              available_delta_usd:
                type: string
                pattern: ^-?[0-9]+\.[0-9]{9}$
                example: '0.050000000'
                description: >-
                  Signed net change to the credit balance for this entry.
                  Historical reservation holds and their releases net to zero.
              created_at:
                type: string
                format: date-time
            required:
              - id
              - kind
              - prompt_id
              - conversion_id
              - available_delta_usd
              - created_at
            additionalProperties: false
        limit:
          const: 50
      required:
        - data
        - limit
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Revise API key from https://revise.io/console/api-keys. Send
        Authorization: Bearer <key>.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.