bring-your-own-keys. Amounts are US dollars.
The call uses the workspace API key’s BILLING_API scope. Writes run as the key’s service account owner.
Base URL
Prerequisites
- API key with the
BILLING_APIscope - The key owner is a service account that has not been deleted and has an active Admin membership
Update settings
PATCH accepts usageRequestsEnabled, workspaceUsageLimit, monthlyBudgetPerPlan, sessionLimitsEnabled, and agentLimitBehavior. Send at least one of them. A plan you omit from monthlyBudgetPerPlan keeps its budget. Nested fields you omit from agentLimitBehavior stay as they are.
GET, with usagePeriodSpend set to null. Read the settings again to get spend.
A limited workspaceUsageLimit must be greater than zero. A limited plan budget may be zero.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.