---
title: "Get the workspace auto-refill settings"
method: GET
path: "/v1/billing/auto-refill"
tags: ["billing"]
---

# Get the workspace auto-refill settings

`GET /v1/billing/auto-refill`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/billing/auto-refill`
- Auth: HTTP bearer

The tenant's auto-refill config (enable/threshold/amount/cap), or null if never set.

## Headers

- `X-Tenant-Id` string, nullable

## Response `200`

Successful Response

- AutoRefillConfigView: GET view of a tenant's auto-refill config (the dashboard toggle + thresholds). ``enabled`` is derived from ``enabled_at`` (opt-in gate); ``armed_at`` is never exposed (engine-internal). All credit values are whole-credit ints for display.
  - `enabled` boolean, required
  - `threshold` integer, required
  - `amount` integer, required
  - `monthly_cap` integer, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: Not found
- `422`: Validation error

---

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