> ## 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 User

> Read one member's plan, effective included budget, and extra usage budget

List active human members, change a plan, and set the extra usage budget beyond the included allowance. Amounts are US dollars.

The calls use the workspace API key's `BILLING_API` scope. Writes run as the key's service account owner. This API does not invite or deactivate members. Use the [User Management API](https://docs.langdock.com/en/developer/user-management-api/user-management-overview.md) for that.

## Base URL

```
https://api.langdock.com/billing/v1/bring-your-own-keys/users/{userId}
```

> [!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
* `USER_MANAGEMENT_API` on the same key when you need `email`, `name`, or an email filter

A member object includes `email` and `name` only when the key also has `USER_MANAGEMENT_API`. Without that scope, those fields are omitted. `name` may be `null` when it is included.

```json theme={null}
{
  "id": "11111111-1111-4111-8111-111111111111",
  "email": "jane@example.com",
  "name": "Jane Doe",
  "plan": "power_user",
  "monthlyBudget": {
    "effective": {
      "type": "limited",
      "amount": 120,
      "source": { "type": "plan" }
    }
  },
  "extraUsageBudget": { "type": "limited", "amount": 30 },
  "extraUsagePeriodSpend": 12.4
}
```

`monthlyBudget.effective` is the included monthly budget. It is the higher of the plan budget and any group budget. An unlimited value wins over a limited one. When the amounts are equal, the plan wins over a group. If two groups set the same amount, the source is the group whose name comes first. `source` is `plan`, or `group` with `groupId` and `groupName`.

That monthly budget sets the weekly allowance (monthly divided by 4) and the session allowance (weekly divided by 3). `extraUsageBudget` is the allowance after those included windows are used up. It is `none`, `unlimited`, or `limited`.

`extraUsagePeriodSpend` measures that extra usage. It is `null` when the workspace hides per user spend. A user who is not an active human member returns `404`.

> [!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.