---
title: "Set credit alert"
method: PUT
path: "/credit-alert"
tags: ["Billing"]
---

# Set credit alert

`PUT /credit-alert`

Create or replace the organization's credit-balance alert. An email is sent to the organization's billing email when the credit balance drops below the threshold.

## Request body

- union
  - object
  - ThundertypesCreditAlertSetRequest
    - `amount_cents` integer, required

## Response `200`

OK

- ThundertypesCreditAlertSetResponse
  - `alert` ThundertypesCreditAlert
    - `amount_cents` integer
    - `armed` boolean
    - `created_at` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-31** `cb98490b12ea` — 1 info
  - added the optional property `alert/armed` to the response with the `200` status
- **2026-07-26** `34c556152ce5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/thundercompute/apis/thunder-compute-api/changes/credit-alert/put.md)

---

[API](https://skmtc.dev/thundercompute/apis/thunder-compute-api.md) · [All operations](https://skmtc.dev/thundercompute/apis/thunder-compute-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thundercompute/thunder-compute-api/revisions/122382e24d26/schema)
