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

# Get Prime Account

> Returns information about the authenticated Prime Account

# Get Prime Account

Returns the Prime Account associated with the query key used to authenticate the request.

## Request

```
GET /prime_account
```

No parameters required.

## Response

<CodeGroup>
  ```bash cURL theme={null}
  curl https://prime-api.legend.xyz/prime_account \
    -H "Authorization: Bearer $LEGEND_QUERY_KEY"
  ```

  ```typescript TypeScript theme={null}
  const info = await client.primeAccount();
  ```

  ```python Python theme={null}
  info = await client.prime_account()
  ```

  ```rust Rust theme={null}
  let info = client.prime_account().await?;
  ```
</CodeGroup>

```json Response theme={null}
{
  "id": "lgd_a1b2c3d4e5f6",
  "name": "Acme Corp",
  "email": "admin@acme.com",
  "created_at": "2025-06-01T00:00:00Z"
}
```

### Response fields

| Field        | Type   | Description                                             |
| ------------ | ------ | ------------------------------------------------------- |
| `id`         | string | Unique identifier for the Prime Account (`lgd_` prefix) |
| `name`       | string | Display name of the Prime Account                       |
| `email`      | string | Admin email associated with the account                 |
| `created_at` | string | ISO 8601 timestamp of when the account was created      |
