cloadyDocs
API ReferenceEndpointsAccount

Set the monthly usage limit

Caps what usage may spend in a UTC month (requires full scope). Requests past it are refused until the next month or a higher limit.

PATCH
/api/me/balance
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/me/balance" \  -H "Content-Type: application/json" \  -d '{    "limitCents": 1  }'
{  "balance": {    "balanceMicros": 0,    "limitCents": 1,    "exempt": true,    "month": {      "ai": {        "spentMicros": 0,        "freeMicros": 0,        "count": 0      },      "email": {        "spentMicros": 0,        "freeMicros": 0,        "count": 0      }    },    "entries": [      {        "id": "string",        "kind": "topup",        "amountMicros": 0,        "note": "string",        "createdAt": "string"      }    ]  }}