> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Workspace Settings

> Read workspace usage limits, plan budgets, usage requests, and agent limit behavior

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

```
https://api.langdock.com/billing/v1/bring-your-own-keys/settings
```

> [!WARNING]
>
> **Dedicated deployments**
>
> Replace `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

## Read settings

`GET /billing/v1/bring-your-own-keys/settings` returns the current settings.

```json theme={null}
{
  "currency": "USD",
  "usageRequestsEnabled": true,
  "workspaceUsageLimit": { "type": "unlimited" },
  "monthlyBudgetPerPlan": {
    "standard": { "type": "limited", "amount": 36 },
    "power_user": { "type": "limited", "amount": 120 }
  },
  "weeklyBudgetPerPlan": {
    "standard": { "type": "limited", "amount": 9 },
    "power_user": { "type": "limited", "amount": 30 }
  },
  "sessionBudgetPerPlan": {
    "standard": { "type": "limited", "amount": 3 },
    "power_user": { "type": "limited", "amount": 10 }
  },
  "sessionLimitsEnabled": true,
  "agentLimitBehavior": {
    "forced": "switch_model",
    "fallbackModelId": "44444444-4444-4444-8444-444444444444"
  },
  "usagePeriod": {
    "start": "2026-09-01T00:00:00.000Z",
    "end": "2026-10-01T00:00:00.000Z"
  },
  "usagePeriodSpend": 1290.1
}
```

`workspaceUsageLimit` caps included and extra chat and agent usage in `usagePeriod`. Personal API usage counts toward that cap, and so do Agent API calls with a workspace key when the agent budget is `always` with a limited amount. Other workspace API usage, workflow runs, and usage of the workspace backbone model do not. `usagePeriodSpend` is the usage counted toward that cap.

`monthlyBudgetPerPlan` is the included allowance for **Standard** (`standard`) and **Power user** (`power_user`). Weekly and session budgets are derived and you cannot write them. The weekly amount is the monthly amount divided by 4. The session amount is the weekly amount divided by 3. An unlimited monthly budget stays unlimited on those windows. `sessionBudgetPerPlan` is `null` when session limits are off.

The monthly amount sets those windows. Extra usage can start when the included weekly or session allowance is used up. It is not a promise that extra usage waits for a calendar month to end.

`usageRequestsEnabled` lets members ask an admin for more usage.

`agentLimitBehavior.forced` chooses what happens after a member or agent limit is reached:

* `null` leaves the choice to the agent owner (**Agent owner decides**).
* `switch_model` switches to the fallback model (**Switch model**). This requires a valid fallback.
* `block_usage` stops the agent (**Block usage**).

`fallbackModelId` is the configured fallback. `null` uses the workspace backbone model. Forcing `switch_model` still requires that resulting model to be valid.

> [!NOTE]
>
> 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](https://docs.langdock.com/en/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.