---
title: "Set emergency credit"
method: PATCH
path: "/accounts/set-emergency-credit"
tags: ["Account Management"]
---

# Set emergency credit

`PATCH /accounts/set-emergency-credit`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/set-emergency-credit`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/set-emergency-credit/patch.ts> (a function with typed inputs; its response is checked against the schema)

Sets the emergency credit amount for an account.
- Allows users with appropriate permissions (root, admin, or billing roles) to configure a maximum monthly emergency budget.
- For accounts with fixed resource allocations, emergency credit funds the provisioning of additional resources when regular allocations are exhausted.

## Request body

- object
  - `emergency_credit` number, float, required: Emergency credit amount

## Response `200`

Emergency credit set successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
