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

# Get account

## TypeScript

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

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


## OpenAPI

````yaml openapi/revise-api.json GET /v1/account
openapi: 3.1.0
info:
  title: Revise API
  version: 0.1.0
  description: >-
    Queued document prompting and file conversion. Conversion supports the same
    formats as revise.io/converter, including semantic PDF/image scanning. USD
    responses are exact decimal strings. Same-origin downloads require Bearer
    auth. Account provider keys (BYOK) are pinned at admission. Request content
    expires 24 hours after terminal completion; encrypted artifacts use compact
    JWE RSA-OAEP-256/A256GCM.
servers:
  - url: https://revise.io/api
security:
  - apiKey: []
paths:
  /v1/account:
    get:
      summary: Read the account credit balance
      operationId: getAccount
      responses:
        '200':
          description: The signed credit balance and funding capabilities.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Account:
      type: object
      properties:
        id:
          type: string
        currency:
          const: usd
        available_usd:
          type: string
          pattern: ^-?[0-9]+\.[0-9]{9}$
          example: '0.050000000'
          description: >-
            Signed fixed-decimal USD credit balance. Requests are admitted only
            while the balance is positive; the final settled charge of an
            in-flight request may take it below zero until the next top-up.
            Spending thresholds stop new calls; the last response and its tools
            can take the final charge beyond them.
        pricing_version:
          type: string
        funding_enabled:
          type: boolean
        stripe_test_mode:
          type: boolean
        api_key_id:
          type: string
          description: Non-secret ID of the currently authenticated key.
      required:
        - id
        - currency
        - available_usd
        - pricing_version
        - funding_enabled
        - stripe_test_mode
        - api_key_id
      additionalProperties: false
      example:
        id: local-playground
        currency: usd
        available_usd: '24.695000000'
        pricing_version: local-v5-monthly-fees
        funding_enabled: true
        stripe_test_mode: true
        api_key_id: key_00000000-0000-4000-8000-000000000001
    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>.

````