Skip to main content
GET
List agent budgets in USD
Read and update monthly agent budgets in US dollars. Use the bring-your-own-keys prefix for this workspace mode. The calls use 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
limit defaults to 50 and cannot exceed 250. Pass cursor from nextCursor. When per user spend is hidden, agents that are not shared are left out of the list. Reading or updating one of those agents returns 404 and changes nothing. Shared agents stay in the list with budgetPeriodSpend set to null.
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.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Query Parameters

limit
integer
default:50
Required range: 1 <= x <= 250
cursor
string<uuid>

Use nextCursor from the preceding page.

Response

Successful response.

agents
object[]
required
nextCursor
string<uuid>