---
title: "Read a user"
method: GET
path: "/billing/v1/bring-your-own-keys/users/{userId}"
tags: ["Users"]
---

# Read a user

`GET /billing/v1/bring-your-own-keys/users/{userId}`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/billing/v1/bring-your-own-keys/users/{userId}`
- Auth: HTTP bearer

## Response `200`

Successful response.

- ByokUser: USD. The highest plan/group monthly budget configures weekly and session allowances. Extra usage can start when those included allowances are exhausted. Spend is null when private and always null in mutation responses.
  - `id` string, uuid, required
  - `email` string, email: Present only when the key also has the USER_MANAGEMENT_API scope.
  - `name` string, nullable: Present only when the key also has the USER_MANAGEMENT_API scope.
  - `plan` 'standard' | 'power_user', required
  - `monthlyBudget` object, required
    - `effective` union, required
      - object
        - `type` 'limited', required
        - `amount` number, required
        - `source` union, required
          - object
            - `type` 'plan', required
          - object
            - `type` 'group', required
            - `groupId` string, uuid, required
            - `groupName` string, required
      - object
        - `type` 'unlimited', required
        - `source` union, required
          - object
            - `type` 'plan', required
          - object
            - `type` 'group', required
            - `groupId` string, uuid, required
            - `groupName` string, required
  - `extraUsageBudget` union, required
    - object
      - `type` 'limited', required
      - `amount` number, required
    - object
      - `type` 'unlimited', required
    - object
      - `type` 'none', required
  - `extraUsagePeriodSpend` number, nullable, required

## Other responses

- `400`: Invalid body/query, unknown fields, empty PATCH, invalid limit, invalid bulk member IDs, or a cursor outside this workspace (INVALID_CURSOR).
- `401`: Missing or invalid authentication.
- `403`: Missing Billing scope, personal key, unavailable feature, missing active service-account Admin authority, or email filter without the USER_MANAGEMENT_API scope.
- `404`: Resource not in this workspace, inactive/non-human user, privacy-hidden agent, usage request not found for that member, or endpoint unavailable in this mode.
- `405`: Unsupported HTTP method.
- `409`: Workspace mode differs from the requested mode. details.mode identifies the workspace mode.
- `429`: API rate limit exceeded.

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/billing/v1/bring-your-own-keys/users/:userId/get.md)

---

[API](https://skmtc.dev/langdock/apis/langdock-api.md) - [All operations](https://skmtc.dev/langdock/apis/langdock-api/llms.txt) - [OpenAPI document](https://skmtc.dev/langdock/apis/langdock-api/revisions/c62bf90b4013?raw)
