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

# Get List

> Retrieve a specific contact list

Get detailed information about a specific contact list by its ID.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique list ID (e.g., `lst_abc123`).
</ParamField>

## Examples

<CodeGroup>
  ```typescript JavaScript theme={null}
  import { MailBreeze } from "mailbreeze";

  const mailbreeze = new MailBreeze({ apiKey: "sk_live_xxx" });

  const list = await mailbreeze.lists.get("lst_abc123");

  console.log(list.name);         // "Newsletter Subscribers"
  console.log(list.contactCount); // 1523
  console.log(list.customFields); // [{ key: "company", label: "Company", type: "text" }]
  ```

  ```python Python theme={null}
  from mailbreeze import MailBreeze

  client = MailBreeze(api_key="sk_live_xxx")

  list = await client.lists.get("lst_abc123")

  print(list.name)          # "Newsletter Subscribers"
  print(list.contact_count) # 1523
  print(list.custom_fields) # [{"key": "company", "label": "Company", "type": "text"}]
  ```

  ```go Go theme={null}
  client := mailbreeze.NewClient("sk_live_xxx")

  list, err := client.Lists.Get(ctx, "lst_abc123")
  if err != nil {
      log.Fatal(err)
  }

  fmt.Println(list.Name)         // "Newsletter Subscribers"
  fmt.Println(list.ContactCount) // 1523
  ```

  ```php PHP theme={null}
  $mailbreeze = new MailBreeze('sk_live_xxx');

  $response = $mailbreeze->lists->get('lst_abc123');
  $list = $response['data'];

  echo $list['name'];           // "Newsletter Subscribers"
  echo $list['totalContacts'];  // 1523
  ```

  ```rust Rust theme={null}
  let client = Client::new("sk_live_xxx");

  let list = client.lists().get("lst_abc123").await?;

  println!("{}", list.name);          // "Newsletter Subscribers"
  println!("{}", list.contact_count); // 1523
  ```

  ```bash cURL theme={null}
  curl "https://api.mailbreeze.com/api/v1/contact-lists/694fc1669e63563857ae8d72" \
    -H "Authorization: Bearer sk_live_xxx"
  ```
</CodeGroup>

## Response

<ResponseField name="id" type="string">
  Unique list ID.
</ResponseField>

<ResponseField name="name" type="string">
  List name.
</ResponseField>

<ResponseField name="description" type="string">
  List description.
</ResponseField>

<ResponseField name="customFields" type="array">
  Custom field definitions.
</ResponseField>

<ResponseField name="contactCount" type="integer">
  Number of contacts in the list.
</ResponseField>

<ResponseField name="createdAt" type="string">
  ISO 8601 timestamp when created.
</ResponseField>

<ResponseField name="updatedAt" type="string">
  ISO 8601 timestamp when last updated.
</ResponseField>

```json Example Response theme={null}
{
  "success": true,
  "data": {
    "domainId": "6911cf4253eb3ff3b4de6215",
    "userId": "68da571fdc22fcf0773dcb33",
    "name": "Test List",
    "description": "Test",
    "totalContacts": 1,
    "activeContacts": 1,
    "suppressedContacts": 0,
    "tags": [],
    "createdAt": "2025-12-27T11:22:14.221Z",
    "updatedAt": "2025-12-27T11:23:05.133Z",
    "id": "694fc1669e63563857ae8d72"
  },
  "meta": {
    "timestamp": "2025-12-27T13:40:04.368Z",
    "requestId": "714a056e-806b-411a-b39c-0ebc792b210f",
    "path": "/api/v1/contact-lists/694fc1669e63563857ae8d72"
  }
}
```

## Errors

| Code        | HTTP Status | Description                     |
| ----------- | ----------- | ------------------------------- |
| `NOT_FOUND` | 404         | List with this ID doesn't exist |
