---
title: "Refill Credits"
method: POST
path: "/api/workspaces/{workspace_id}/credits/refill"
---

# Refill Credits

`POST /api/workspaces/{workspace_id}/credits/refill`

## Request

- Base URL: `https://api.crowelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.crowelogic.com/api/workspaces/{workspace_id}/credits/refill`
- Auth: none declared

Refill the workspace's credits to the tier allocation.

Called by the Stripe webhook on invoice.paid and
customer.subscription.updated so a successful payment immediately
restores usage. Also callable by workspace owners for manual
adjustments (audit logged as reason='manual_refill').

## Path parameters

- `workspace_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- CreditRefillRequest
  - `tier_key` string, required
  - `allocation` integer, required
  - `reset_at` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry.md) · [All operations](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/llms.txt) · [OpenAPI document](https://skmtc.dev/crowelogic/apis/crowe-logic-foundry/revisions/a3c1ef17f171?raw)
