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

# List Members

> The List Members endpoints let you view List members, add members to your Lists, and remove. Reference for the X API v2 standard tier covering list members.

export const Button = ({href, children}) => {
  return <div className="not-prose group">
    <a href={href}>
      <button className="flex items-center space-x-2.5 py-1 px-4 bg-primary-dark dark:bg-white text-white dark:text-gray-950 rounded-full group-hover:opacity-[0.9] font-medium">
        <span>
          {children}
        </span>
        <svg width="3" height="24" viewBox="0 -9 3 24" class="h-6 rotate-0 overflow-visible"><path d="M0 0L3 3L0 6" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>
      </button>
    </a>
  </div>;
};

The List Members endpoints let you view List members, add members to your Lists, and remove them. You can also see which Lists a user is a member of.

## Overview

<CardGroup cols={2}>
  <Card title="View members" icon="users">
    Get all members of a List
  </Card>

  <Card title="Add member" icon="user-plus">
    Add a user to your List
  </Card>

  <Card title="Remove member" icon="user-minus">
    Remove a user from your List
  </Card>

  <Card title="Memberships" icon="list">
    See Lists a user is on
  </Card>
</CardGroup>

***

## Endpoints

### List members lookup

| Method | Endpoint                                                             | Description            |
| :----- | :------------------------------------------------------------------- | :--------------------- |
| GET    | [`/2/lists/:id/members`](/x-api/lists/get-list-members)              | Get members of a List  |
| GET    | [`/2/users/:id/list_memberships`](/x-api/users/get-list-memberships) | Get Lists a user is on |

### Manage List members

| Method | Endpoint                                                           | Description     |
| :----- | :----------------------------------------------------------------- | :-------------- |
| POST   | [`/2/lists/:id/members`](/x-api/lists/add-list-member)             | Add a member    |
| DELETE | [`/2/lists/:id/members/:user_id`](/x-api/lists/remove-list-member) | Remove a member |

***

## Example: Get List members

```bash theme={null}
curl "https://api.x.com/2/lists/1234567890/members?\
user.fields=username,verified" \
  -H "Authorization: Bearer $BEARER_TOKEN"
```

## Example: Add a member

```bash theme={null}
curl -X POST "https://api.x.com/2/lists/1234567890/members" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "9876543210"}'
```

***

## Getting started

<Note>
  **Prerequisites**

  * An approved [developer account](https://developer.x.com/en/portal/petition/essential/basic-info)
  * A [Project and App](/resources/fundamentals/developer-apps) in the Developer Console
  * Your App's [keys and tokens](/resources/fundamentals/authentication)
</Note>

<CardGroup cols={2}>
  <Card title="Lookup quickstart" icon="users" href="/x-api/lists/list-members/quickstart/list-members-lookup">
    Get members of a List
  </Card>

  <Card title="Manage quickstart" icon="user-plus" href="/x-api/lists/list-members/quickstart/manage-list-members">
    Add and remove members
  </Card>

  <Card title="Integration guide" icon="book" href="/x-api/lists/list-members/integrate">
    Key concepts and best practices
  </Card>

  <Card title="API Reference" icon="code" href="/x-api/lists/get-list-members">
    Full endpoint documentation
  </Card>
</CardGroup>
