---
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

---

[API](https://skmtc.net/thundercompute/apis/thunder-compute-api.md) · [All operations](https://skmtc.net/thundercompute/apis/thunder-compute-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thundercompute/thunder-compute-api/versions/a8120edca3aa/schema)
