---
title: "Retrieve a refill configuration."
method: GET
path: "/v2/refill-configurations/{account_id}/{metric_id}"
tags: ["Refill Configurations"]
---

# Retrieve a refill configuration.

`GET /v2/refill-configurations/{account_id}/{metric_id}`

## Request

- Base URL: `https://docs.ledgerup.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.ledgerup.ai/v2/refill-configurations/{account_id}/{metric_id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/ledgerup/apis/ledgerup-api/docs/v2/refill-configurations/:account_id/:metric_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `account_id` string, required: LedgerUp account identifier.
- `metric_id` string, required: LedgerUp metric identifier.

## Response `200`

Resource found.

- RefillConfiguration
  - `account_id` string, required: LedgerUp account identifier.
  - `metric_id` string, required: LedgerUp metric identifier.
  - `minimum_balance` string, required: Decimal balance serialized as a string.
  - `target_balance` string, required: Decimal balance serialized as a string.
  - `is_active` boolean, required: Whether automatic refills are enabled.
  - `created_at` integer, required: Unix timestamp in seconds.
  - `updated_at` integer, required: Unix timestamp in seconds.

## Other responses

- `400`: Bad request, invalid header, invalid amount/quantity/currency, or text validation failure.
- `401`: Missing or invalid API key.
- `403`: API key lacks the required permission, or reset was attempted outside the test namespace.
- `404`: Referenced or requested resource was not found.
- `408`: Request exceeded the 30 second timeout.
- `429`: Rate limit exceeded.
- `500`: Internal server error or queue failure.

---

[API](https://skmtc.dev/ledgerup/apis/ledgerup-api.md) - [All operations](https://skmtc.dev/ledgerup/apis/ledgerup-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ledgerup/apis/ledgerup-api/revisions/be257191807b?raw)
