---
title: "Credit alert thresholds, the soft-cap action and where alerts go"
method: GET
path: "/api/orgs/{orgId}/credit-controls"
tags: ["credits"]
---

# Credit alert thresholds, the soft-cap action and where alerts go

`GET /api/orgs/{orgId}/credit-controls`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/orgs/{orgId}/credit-controls`
- Auth: none declared

Needs the `budgets` component.

## Path parameters

- `orgId` string, required

## Response `200`

OK.

- CreditControls
  - `alertThresholdsPct` integer[], required
  - `questionSoftAction` 'warn' | 'ask', required
  - `alertChannels` object, required
    - `email` boolean, required
    - `room` string, nullable, required
    - `whatsapp` boolean, required: Set by the platform only (owner approval).
  - `rooms` object[], required
    - `id` string, required
    - `label` string, nullable, required
  - `version` number, required

## Other responses

- `401`: No resolved context.
- `403`: Not an org admin (`forbidden`), or the component is off (`feature_disabled`).

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
