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

# Get End User

> Retrieve details of a specific end user

Retrieve the details of an existing end user by their unique identifier.

## Authentication

Requires an [API key](/authentication) with `end_users:read` scope.

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.bota.dev/v1/end-users/eu_abc123 \
    -H "Authorization: Bearer sk_live_..."
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.bota.dev/v1/end-users/eu_abc123', {
    headers: {
      'Authorization': 'Bearer sk_live_...',
    },
  });

  const endUser = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.bota.dev/v1/end-users/eu_abc123',
      headers={'Authorization': 'Bearer sk_live_...'},
  )

  end_user = response.json()
  ```
</RequestExample>

## Path Parameters

<ParamField path="id" type="string" required>
  The end user's unique identifier (e.g., `eu_abc123`).
</ParamField>

## Response

Returns the end user object.

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "eu_abc123",
    "external_id": "user_12345",
    "email": "john@example.com",
    "name": "John Doe",
    "metadata": {
      "plan": "pro",
      "department": "sales"
    },
    "created_at": "2025-01-15T10:30:00Z"
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "not_found",
      "message": "End user not found"
    }
  }
  ```
</ResponseExample>

## Response Fields

| Field         | Type   | Description                                               |
| ------------- | ------ | --------------------------------------------------------- |
| `id`          | string | Unique identifier for the end user (prefixed with `eu_`). |
| `external_id` | string | Your system's unique identifier for this user.            |
| `email`       | string | User's email address.                                     |
| `name`        | string | User's display name.                                      |
| `metadata`    | object | Arbitrary key-value metadata.                             |
| `created_at`  | string | ISO 8601 timestamp of when the end user was created.      |
