Update Credit Settings
Credits
Update Credit Settings
Configure auto top-ups for your organization’s credits.
POST
Update Credit Settings
Enable, disable, or update auto top-up settings for your organization. When enabled, credits are automatically purchased at your plan’s top-up rate whenever your balance drops below the threshold.
Requires one of these active plans:
creator, creator_annual, professional, or professional_annual. Returns 403 if no eligible plan is active.
To read current credit and auto top-up state, use GET /credits.
Request
Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
auto_topup.enabled | boolean | Yes | Enable or disable auto top-ups. |
auto_topup.threshold | number | Yes | Credit balance threshold that triggers an auto top-up (0 – 1,000,000). |
auto_topup.quantity | number | Yes | Number of credits to purchase per auto top-up (0 – 1,000,000). |
Response
Returns the updated settings.Errors
| Status | Reason |
|---|---|
403 | No active paid plan, or plan is not eligible for auto top-ups (must be creator, creator_annual, professional, or professional_annual). |