Update billing preferences
PATCH
/v1/billing/preferencesHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
None.
Query parameters
None.
Body schema
Content type: application/json · Required
| Field | Type | Required | Description |
|---|---|---|---|
| usageBillingEnabled | boolean | No | — |
| monthlyResourceSpendLimit | number | No | Monthly persistent-resource spend cap in USD. |
| monthlyResourceSpendLimitUsd | number | No | Monthly persistent-resource spend cap in USD. |
| pauseOnLimit | boolean | No | — |
| resourceEmailAlerts | boolean | No | — |
| inference | object | No | — |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Billing preferences updatedapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| userId | string | No | User ID. |
| billing | object | No | — |
| billing.usageBillingEnabled | boolean | No | — |
| billing.monthlyResourceSpendLimit | number | No | Monthly persistent-resource spend cap in USD. |
| billing.monthlyResourceSpendLimitUsd | number | No | Monthly persistent-resource spend cap in USD. |
| billing.pauseOnLimit | boolean | No | — |
| billing.resourceEmailAlerts | boolean | No | — |
| inference | object | No | — |
| inference.enabled | boolean | No | — |
| inference.providerType | string | No | — |
| inference.baseUrl | string | No | — |
| inference.defaultModel | string | No | — |
| inference.availableModels | string[] | No | — |
| inference.healthStatus | string | No | — |
| inference.lastValidatedAt | string | No | — |
| inference.lastError | string | No | — |
| usage | object | No | — |
| usage.monthlyResourceSpend | number | No | — |
| usage.monthlyResourceSpendUsd | number | No | — |
| usage.monthlyMeteredResourceUsage | number | No | — |
| usage.monthlyMeteredResourceUsageUsd | number | No | — |