Skip to main content
Read and update the workspace limits and plan budgets for mode 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

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Prerequisites

  • API key with the BILLING_API scope
  • 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.
The response matches 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.