> ## 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.

# UsersClient

> Methods for X API v2 Users endpoints.

Access **Users** endpoints via `client.Users` (`UsersClient`).

## Methods

| Method | Endpoint | Behavior | Summary |
| :- | :- | :- | :- |
| [`BlockDmsAsync`](#blockdmsasync) | `POST /2/users/{id}/dm/block` | Standard | Block DMs |
| [`CreateBookmarkAsync`](#createbookmarkasync) | `POST /2/users/{id}/bookmarks` | Standard | Create Bookmark |
| [`CreateBookmarkFolderAsync`](#createbookmarkfolderasync) | `POST /2/users/{id}/bookmarks/folders` | Standard | Create Bookmark Folder |
| [`DeleteBookmarkAsync`](#deletebookmarkasync) | `DELETE /2/users/{id}/bookmarks/{tweet_id}` | Standard | Delete Bookmark |
| [`FollowListAsync`](#followlistasync) | `POST /2/users/{id}/followed_lists` | Standard | Follow List |
| [`FollowUserAsync`](#followuserasync) | `POST /2/users/{id}/following` | Standard | Follow User |
| [`GetAffiliatesAsync`](#getaffiliatesasync) | `GET /2/users/{id}/affiliates` | Paginated | Get Affiliates |
| [`GetBlockingAsync`](#getblockingasync) | `GET /2/users/{id}/blocking` | Paginated | Get Blocked Users |
| [`GetBookmarkFoldersAsync`](#getbookmarkfoldersasync) | `GET /2/users/{id}/bookmarks/folders` | Paginated | Get Bookmark Folders |
| [`GetBookmarksAsync`](#getbookmarksasync) | `GET /2/users/{id}/bookmarks` | Paginated | Get Bookmarks |
| [`GetBookmarksByFolderIdAsync`](#getbookmarksbyfolderidasync) | `GET /2/users/{id}/bookmarks/folders/{folder_id}` | Paginated | Get Bookmarks by Folder ID |
| [`GetByIdAsync`](#getbyidasync) | `GET /2/users/{id}` | Standard | Get User by ID |
| [`GetByIdsAsync`](#getbyidsasync) | `GET /2/users` | Standard | Get Users by IDs |
| [`GetByUsernameAsync`](#getbyusernameasync) | `GET /2/users/by/username/{username}` | Standard | Get User by Username |
| [`GetByUsernamesAsync`](#getbyusernamesasync) | `GET /2/users/by` | Standard | Get Users by Usernames |
| [`GetFollowedListsAsync`](#getfollowedlistsasync) | `GET /2/users/{id}/followed_lists` | Paginated | Get Followed Lists |
| [`GetFollowersAsync`](#getfollowersasync) | `GET /2/users/{id}/followers` | Paginated | Get Followers |
| [`GetFollowingAsync`](#getfollowingasync) | `GET /2/users/{id}/following` | Paginated | Get Following |
| [`GetLikedPostsAsync`](#getlikedpostsasync) | `GET /2/users/{id}/liked_tweets` | Paginated | Get Liked Posts |
| [`GetListMembershipsAsync`](#getlistmembershipsasync) | `GET /2/users/{id}/list_memberships` | Paginated | Get List Memberships |
| [`GetMeAsync`](#getmeasync) | `GET /2/users/me` | Standard | Get My User |
| [`GetMeFollowersAsync`](#getmefollowersasync) | `GET /2/users/me/followers` | Paginated | Get the Authenticated User's Followers |
| [`GetMeFollowingAsync`](#getmefollowingasync) | `GET /2/users/me/following` | Paginated | Get the Users the Authenticated User Follows |
| [`GetMentionsAsync`](#getmentionsasync) | `GET /2/users/{id}/mentions` | Paginated | Get Mentions |
| [`GetMutingAsync`](#getmutingasync) | `GET /2/users/{id}/muting` | Paginated | Get Muting |
| [`GetOwnedListsAsync`](#getownedlistsasync) | `GET /2/users/{id}/owned_lists` | Paginated | Get Owned Lists |
| [`GetPinnedListsAsync`](#getpinnedlistsasync) | `GET /2/users/{id}/pinned_lists` | Standard | Get Pinned Lists |
| [`GetPostsAsync`](#getpostsasync) | `GET /2/users/{id}/tweets` | Paginated | Get Posts |
| [`GetPublicKeyAsync`](#getpublickeyasync) | `GET /2/users/{id}/public_keys` | Standard | Get User Public Keys |
| [`GetPublicKeysAsync`](#getpublickeysasync) | `GET /2/users/public_keys` | Standard | Get Public Keys for Multiple Users |
| [`GetRepostsOfMeAsync`](#getrepostsofmeasync) | `GET /2/users/reposts_of_me` | Paginated | Get Reposts of Me |
| [`GetTimelineAsync`](#gettimelineasync) | `GET /2/users/{id}/timelines/reverse_chronological` | Paginated | Get Timeline |
| [`IdBlockAsync`](#idblockasync) | `POST /2/users/{id}/blocking` | Standard | Block User |
| [`IdUnblockAsync`](#idunblockasync) | `DELETE /2/users/{source_user_id}/blocking/{target_user_id}` | Standard | Unblock User |
| [`LikePostAsync`](#likepostasync) | `POST /2/users/{id}/likes` | Standard | Like Post |
| [`MuteUserAsync`](#muteuserasync) | `POST /2/users/{id}/muting` | Standard | Mute User |
| [`PinListAsync`](#pinlistasync) | `POST /2/users/{id}/pinned_lists` | Standard | Pin List |
| [`RepostPostAsync`](#repostpostasync) | `POST /2/users/{id}/retweets` | Standard | Repost Post |
| [`SearchAsync`](#searchasync) | `GET /2/users/search` | Paginated | Search Users |
| [`UnblockDmsAsync`](#unblockdmsasync) | `POST /2/users/{id}/dm/unblock` | Standard | Unblock DMs |
| [`UnfollowListAsync`](#unfollowlistasync) | `DELETE /2/users/{id}/followed_lists/{list_id}` | Standard | Unfollow List |
| [`UnfollowUserAsync`](#unfollowuserasync) | `DELETE /2/users/{source_user_id}/following/{target_user_id}` | Standard | Unfollow User |
| [`UnlikePostAsync`](#unlikepostasync) | `DELETE /2/users/{id}/likes/{tweet_id}` | Standard | Unlike Post |
| [`UnmuteUserAsync`](#unmuteuserasync) | `DELETE /2/users/{source_user_id}/muting/{target_user_id}` | Standard | Unmute User |
| [`UnpinListAsync`](#unpinlistasync) | `DELETE /2/users/{id}/pinned_lists/{list_id}` | Standard | Unpin List |
| [`UnrepostPostAsync`](#unrepostpostasync) | `DELETE /2/users/{id}/retweets/{source_tweet_id}` | Standard | Unrepost Post |

## `BlockDmsAsync`

POST `/2/users/{id}/dm/block`

**Block DMs**

Blocks direct messages to or from a specific User by their ID for the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.BlockDmsAsync("2244994945");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Returns:** `Task<BlockUsersDmsResponse>`

***

## `CreateBookmarkAsync`

POST `/2/users/{id}/bookmarks`

**Create Bookmark**

Adds one or more Posts to the authenticated user's Bookmarks. Supply `tweet_id` for a single Post, or `tweet_ids` (at most 25) to bookmark several in one request. Optional `folder_id` applies to every Post in the request. Billing and rate limits still apply per HTTP request.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.CreateBookmarkAsync(
    "2244994945",
    new CreateUsersBookmarkRequest { TweetId = "1895000000000000000" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**body** `CreateUsersBookmarkRequest` *required*

At least one of `tweet_id`, `tweet_ids` is required.

**Returns:** `Task<JsonElement>`

***

## `CreateBookmarkFolderAsync`

POST `/2/users/{id}/bookmarks/folders`

**Create Bookmark Folder**

Creates a new Bookmark folder for the authenticated user.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.CreateBookmarkFolderAsync(
    "2244994945",
    new CreateUsersBookmarkFolderRequest { Name = "My List" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**body** `CreateUsersBookmarkFolderRequest` *required*

Request payload.

**Returns:** `Task<CreateUsersBookmarkFolderResponse>`

***

## `DeleteBookmarkAsync`

DELETE `/2/users/{id}/bookmarks/{tweet_id}`

**Delete Bookmark**

Removes a Post from the authenticated user's Bookmarks by its ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.DeleteBookmarkAsync("2244994945", "1895000000000000000");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**tweetId** `string` *required*

`tweet_id` (path parameter).

**Returns:** `Task<DeleteUsersBookmarkResponse>`

***

## `FollowListAsync`

POST `/2/users/{id}/followed_lists`

**Follow List**

Causes the authenticated user to follow a specific List by its ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.FollowListAsync(
    "2244994945",
    new FollowListRequest { ListId = "1450000000000000000" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `FollowListRequest` *required*

Request payload.

**Returns:** `Task<FollowListResponse>`

***

## `FollowUserAsync`

POST `/2/users/{id}/following`

**Follow User**

Causes the authenticated user to follow a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.FollowUserAsync("2244994945", new FollowUserRequest { TargetUserId = "2244994945" });
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `FollowUserRequest` *required*

Request payload.

**Returns:** `Task<FollowUserResponse>`

***

## `GetAffiliatesAsync`

GET `/2/users/{id}/affiliates` Paginated

**Get Affiliates**

Retrieves a list of Users who are affiliated with a specific organization User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetAffiliatesPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetAffiliatesOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A 64-bit signed integer.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersAffiliatesResponse>` (use `GetAffiliatesPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetBlockingAsync`

GET `/2/users/{id}/blocking` Paginated

**Get Blocked Users**

Returns the Users that the given User is blocking.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetBlockingPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetBlockingOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

`pagination_token` (query parameter).

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersBlockingResponse>` (use `GetBlockingPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetBookmarkFoldersAsync`

GET `/2/users/{id}/bookmarks/folders` Paginated

**Get Bookmark Folders**

Retrieves a list of Bookmark folders created by the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetBookmarkFoldersPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**Optional parameters (UsersClient.GetBookmarkFoldersOptions — 2)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**Returns:** `Task<GetUsersBookmarkFoldersResponse>` (use `GetBookmarkFoldersPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetBookmarksAsync`

GET `/2/users/{id}/bookmarks` Paginated

**Get Bookmarks**

Retrieves a list of Posts bookmarked by the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetBookmarksPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**Optional parameters (UsersClient.GetBookmarksOptions — 8)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersBookmarksResponse>` (use `GetBookmarksPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetBookmarksByFolderIdAsync`

GET `/2/users/{id}/bookmarks/folders/{folder_id}` Paginated

**Get Bookmarks by Folder ID**

Retrieves Posts in a specific Bookmark folder by its ID for the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetBookmarksByFolderIdPages("2244994945", "1895000000000000000"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

The authenticated user's numeric ID, not `me`: the `id` from Get My User (`GET /2/users/me`).

**folderId** `string` *required*

`folder_id` (path parameter).

**Optional parameters (UsersClient.GetBookmarksByFolderIdOptions — 2)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**Returns:** `Task<GetUsersBookmarksByFolderIdResponse>` (use `GetBookmarksByFolderIdPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetByIdAsync`

GET `/2/users/{id}`

**Get User by ID**

Retrieves details of a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

var response = await client.Users.GetByIdAsync("2244994945");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetByIdOptions — 3)**

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersByIdResponse>`

***

## `GetByIdsAsync`

GET `/2/users`

**Get Users by IDs**

Retrieves details of multiple Users by their IDs.

```csharp theme={null}
using System;
using System.Collections.Generic;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

var response = await client.Users.GetByIdsAsync(new List<string> { "2244994945" });
Console.WriteLine(response);
```

### Parameters

**ids** `List\<string\>` *required*

`ids` (query parameter).

**Optional parameters (UsersClient.GetByIdsOptions — 3)**

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersByIdsResponse>`

***

## `GetByUsernameAsync`

GET `/2/users/by/username/{username}`

**Get User by Username**

Retrieves details of a specific User by their username.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

var response = await client.Users.GetByUsernameAsync("XDevelopers");
Console.WriteLine(response);
```

### Parameters

**username** `string` *required*

`username` (path parameter).

**Optional parameters (UsersClient.GetByUsernameOptions — 3)**

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersByUsernameResponse>`

***

## `GetByUsernamesAsync`

GET `/2/users/by`

**Get Users by Usernames**

Retrieves details of multiple Users by their usernames.

```csharp theme={null}
using System;
using System.Collections.Generic;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

var response = await client.Users.GetByUsernamesAsync(new List<string> { "XDevelopers" });
Console.WriteLine(response);
```

### Parameters

**usernames** `List\<string\>` *required*

`usernames` (query parameter).

**Optional parameters (UsersClient.GetByUsernamesOptions — 3)**

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersByUsernamesResponse>`

***

## `GetFollowedListsAsync`

GET `/2/users/{id}/followed_lists` Paginated

**Get Followed Lists**

Retrieves a list of Lists followed by a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetFollowedListsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetFollowedListsOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A 64-bit signed integer.

**options.ListFields** `List\<string\>`

A comma separated list of List fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**Returns:** `Task<GetUsersFollowedListsResponse>` (use `GetFollowedListsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetFollowersAsync`

GET `/2/users/{id}/followers` Paginated

**Get Followers**

Retrieves a list of Users who follow a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetFollowersPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetFollowersOptions — 5)**

**options.MaxResults** `int`

The maximum number of users to return.

**options.PaginationToken** `string`

The next\_token or previous\_token from a previous response, to fetch that page. A base32hex-encoded pagination token.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersFollowersResponse>` (use `GetFollowersPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetFollowingAsync`

GET `/2/users/{id}/following` Paginated

**Get Following**

Retrieves a list of Users followed by a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetFollowingPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetFollowingOptions — 5)**

**options.MaxResults** `int`

The maximum number of users to return.

**options.PaginationToken** `string`

The next\_token or previous\_token from a previous response, to fetch that page. A base32hex-encoded pagination token.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersFollowingResponse>` (use `GetFollowingPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetLikedPostsAsync`

GET `/2/users/{id}/liked_tweets` Paginated

**Get Liked Posts**

Retrieves a list of Posts liked by a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetLikedPostsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetLikedPostsOptions — 8)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersLikedPostsResponse>` (use `GetLikedPostsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetListMembershipsAsync`

GET `/2/users/{id}/list_memberships` Paginated

**Get List Memberships**

Retrieves a list of Lists that a specific User is a member of by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetListMembershipsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetListMembershipsOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

`pagination_token` (query parameter).

**options.ListFields** `List\<string\>`

A comma separated list of List fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**Returns:** `Task<GetUsersListMembershipsResponse>` (use `GetListMembershipsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetMeAsync`

GET `/2/users/me`

**Get My User**

Retrieves details of the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.GetMeAsync();
Console.WriteLine(response);
```

### Parameters

**Optional parameters (UsersClient.GetMeOptions — 3)**

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersMeResponse>`

***

## `GetMeFollowersAsync`

GET `/2/users/me/followers` Paginated

**Get the Authenticated User's Followers**

Returns the Users who follow the authenticated user. Same results as `GET /2/users/{id}/followers` with your own user ID, without looking it up.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetMeFollowersPages())
{
    Console.WriteLine(page);
}
```

### Parameters

**Optional parameters (UsersClient.GetMeFollowersOptions — 5)**

**options.MaxResults** `int`

The maximum number of users to return.

**options.PaginationToken** `string`

The next\_token or previous\_token from a previous response, to fetch that page. A base32hex-encoded pagination token.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersMeFollowersResponse>` (use `GetMeFollowersPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetMeFollowingAsync`

GET `/2/users/me/following` Paginated

**Get the Users the Authenticated User Follows**

Returns the Users the authenticated user follows. Same results as `GET /2/users/{id}/following` with your own user ID, without looking it up.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetMeFollowingPages())
{
    Console.WriteLine(page);
}
```

### Parameters

**Optional parameters (UsersClient.GetMeFollowingOptions — 5)**

**options.MaxResults** `int`

The maximum number of users to return.

**options.PaginationToken** `string`

The next\_token or previous\_token from a previous response, to fetch that page. A base32hex-encoded pagination token.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersMeFollowingResponse>` (use `GetMeFollowingPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetMentionsAsync`

GET `/2/users/{id}/mentions` Paginated

**Get Mentions**

Retrieves a list of Posts that mention a specific User by their ID.

When both are provided, `start_time` must be earlier than `end_time`. When both are provided, `since_id` must be less than `until_id`.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetMentionsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetMentionsOptions — 12)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.StartTime** `string`

Must be on or after 2010-11-06.

**options.EndTime** `string`

Must be on or after 2010-11-06.

**options.SinceId** `string`

`since_id` (query parameter).

**options.UntilId** `string`

`until_id` (query parameter).

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersMentionsResponse>` (use `GetMentionsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetMutingAsync`

GET `/2/users/{id}/muting` Paginated

**Get Muting**

Retrieves a list of Users muted by the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetMutingPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetMutingOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

`pagination_token` (query parameter).

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<GetUsersMutingResponse>` (use `GetMutingPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetOwnedListsAsync`

GET `/2/users/{id}/owned_lists` Paginated

**Get Owned Lists**

Retrieves a list of Lists owned by a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetOwnedListsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetOwnedListsOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A 64-bit signed integer.

**options.ListFields** `List\<string\>`

A comma separated list of List fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**Returns:** `Task<GetUsersOwnedListsResponse>` (use `GetOwnedListsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetPinnedListsAsync`

GET `/2/users/{id}/pinned_lists`

**Get Pinned Lists**

Retrieves a list of Lists pinned by the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.GetPinnedListsAsync("2244994945");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetPinnedListsOptions — 3)**

**options.ListFields** `List\<string\>`

A comma separated list of List fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**Returns:** `Task<GetUsersPinnedListsResponse>`

***

## `GetPostsAsync`

GET `/2/users/{id}/tweets` Paginated

**Get Posts**

Retrieves a list of Posts authored by a specific User by their ID.

When both are provided, `start_time` must be earlier than `end_time`. When both are provided, `since_id` must be less than `until_id`.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.GetPostsPages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetPostsOptions — 13)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.StartTime** `string`

Must be on or after 2010-11-06.

**options.EndTime** `string`

Must be on or after 2010-11-06.

**options.SinceId** `string`

`since_id` (query parameter).

**options.UntilId** `string`

`until_id` (query parameter).

**options.Exclude** `List\<string\>`

`exclude` (query parameter).

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersPostsResponse>` (use `GetPostsPages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetPublicKeyAsync`

GET `/2/users/{id}/public_keys`

**Get User Public Keys**

Returns a user's registered public keys for X Chat encryption.

Every key field is returned by default, so public\_key.fields can be left out. It takes public\_key, signing\_public\_key, identity\_public\_key\_signature, public\_key\_version and juicebox\_config.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.GetPublicKeyAsync("2244994945");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

Numeric user ID, not `me`. For your own keys, use the `id` from Get My User (`GET /2/users/me`).

**Optional parameters (UsersClient.GetPublicKeyOptions — 1)**

**options.PublicKeyFields** `List\<string\>`

A comma separated list of PublicKey fields to display.

**Returns:** `Task<GetUsersPublicKeyResponse>`

***

## `GetPublicKeysAsync`

GET `/2/users/public_keys`

**Get Public Keys for Multiple Users**

Returns the public keys that up to 100 users registered for X Chat encryption, looked up by numeric user ID. Each key carries the user\_id of the user it belongs to.

Every key field is returned by default, so public\_key.fields can be left out. It takes public\_key, signing\_public\_key, identity\_public\_key\_signature, public\_key\_version, juicebox\_config and user\_id.

```csharp theme={null}
using System;
using System.Collections.Generic;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.GetPublicKeysAsync(new List<string> { "2244994945" });
Console.WriteLine(response);
```

### Parameters

**ids** `List\<string\>` *required*

Comma-separated numeric user IDs (1-100), not @usernames.

**Optional parameters (UsersClient.GetPublicKeysOptions — 1)**

**options.PublicKeyFields** `List\<string\>`

A comma separated list of PublicKey fields to display.

**Returns:** `Task<GetUsersPublicKeysResponse>`

***

## `GetRepostsOfMeAsync`

GET `/2/users/reposts_of_me` Paginated

**Get Reposts of Me**

Retrieves a list of Posts that repost content from the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetRepostsOfMePages())
{
    Console.WriteLine(page);
}
```

### Parameters

**Optional parameters (UsersClient.GetRepostsOfMeOptions — 8)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersRepostsOfMeResponse>` (use `GetRepostsOfMePages(...)` for `IAsyncEnumerable` page iteration)

***

## `GetTimelineAsync`

GET `/2/users/{id}/timelines/reverse_chronological` Paginated

**Get Timeline**

Retrieves a reverse chronological list of Posts in the authenticated user's Timeline.

When both are provided, `start_time` must be earlier than `end_time`. When both are provided, `since_id` must be less than `until_id`.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

await foreach (var page in client.Users.GetTimelinePages("2244994945"))
{
    Console.WriteLine(page);
}
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Optional parameters (UsersClient.GetTimelineOptions — 13)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.PaginationToken** `string`

A base32hex-encoded pagination token.

**options.StartTime** `string`

Must be on or after 2010-11-06.

**options.EndTime** `string`

Must be on or after 2010-11-06.

**options.SinceId** `string`

`since_id` (query parameter).

**options.UntilId** `string`

`until_id` (query parameter).

**options.Exclude** `List\<string\>`

`exclude` (query parameter).

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.MediaFields** `List\<string\>`

A comma separated list of Media fields to display.

**options.PollFields** `List\<string\>`

A comma separated list of Poll fields to display.

**options.PlaceFields** `List\<string\>`

A comma separated list of Place fields to display.

**Returns:** `Task<GetUsersTimelineResponse>` (use `GetTimelinePages(...)` for `IAsyncEnumerable` page iteration)

***

## `IdBlockAsync`

POST `/2/users/{id}/blocking`

**Block User**

Causes the source User to block the target User. A block also removes any follow between the two Users, in both directions, and unblocking does not restore it. Each call blocks one account: block only accounts the authenticated User named or approved, because finding or reviewing accounts is not approval to block them.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.IdBlockAsync(
    "2244994945",
    new UsersIdBlockRequest { TargetUserId = "2244994945" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `UsersIdBlockRequest` *required*

Request payload.

**Returns:** `Task<UsersIdBlockResponse>`

***

## `IdUnblockAsync`

DELETE `/2/users/{source_user_id}/blocking/{target_user_id}`

**Unblock User**

Causes the source User to unblock the target User. Unblocking does not restore any follow the block removed, so blocking and then unblocking a follower removes them as a follower: do that only for followers the authenticated User approved removing.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.IdUnblockAsync("2244994945", "2244994945");
Console.WriteLine(response);
```

### Parameters

**sourceUserId** `string` *required*

`source_user_id` (path parameter).

**targetUserId** `string` *required*

`target_user_id` (path parameter).

**Returns:** `Task<UsersIdUnblockResponse>`

***

## `LikePostAsync`

POST `/2/users/{id}/likes`

**Like Post**

Causes the authenticated user to like a specific Post by its ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.LikePostAsync(
    "2244994945",
    new LikePostRequest { TweetId = "1895000000000000000" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `LikePostRequest` *required*

Request payload.

**Returns:** `Task<LikePostResponse>`

***

## `MuteUserAsync`

POST `/2/users/{id}/muting`

**Mute User**

Causes the authenticated user to mute a specific User by their ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.MuteUserAsync("2244994945", new MuteUserRequest { TargetUserId = "2244994945" });
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `MuteUserRequest` *required*

Request payload.

**Returns:** `Task<MuteUserResponse>`

***

## `PinListAsync`

POST `/2/users/{id}/pinned_lists`

**Pin List**

Causes the authenticated user to pin a specific List by its ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.PinListAsync("2244994945", new PinListRequest { ListId = "1450000000000000000" });
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `PinListRequest` *required*

Request payload.

**Returns:** `Task<PinListResponse>`

***

## `RepostPostAsync`

POST `/2/users/{id}/retweets`

**Repost Post**

Causes the authenticated user to repost a specific Post by its ID.

```csharp theme={null}
using System;
using Xdk;
using Xdk.Models;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.RepostPostAsync(
    "2244994945",
    new RepostPostRequest { TweetId = "1895000000000000000" }
);
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**body** `RepostPostRequest` *required*

Request payload.

**Returns:** `Task<RepostPostResponse>`

***

## `SearchAsync`

GET `/2/users/search` Paginated

**Search Users**

Retrieves a list of Users matching a search query.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"),
});

await foreach (var page in client.Users.SearchPages("from:XDevelopers"))
{
    Console.WriteLine(page);
}
```

### Parameters

**query** `string` *required*

A name or @username (1-50 chars): letters and digits in any language, spaces, and \_ ' . - @ & "

**Optional parameters (UsersClient.SearchOptions — 5)**

**options.MaxResults** `int`

`max_results` (query parameter).

**options.NextToken** `string`

`next_token` (query parameter).

**options.UserFields** `List\<string\>`

A comma separated list of User fields to display.

**options.Expansions** `List\<string\>`

A comma separated list of fields to expand.

**options.PostFields** `List\<string\>`

A comma separated list of Post fields to display.

**Returns:** `Task<SearchUsersResponse>` (use `SearchPages(...)` for `IAsyncEnumerable` page iteration)

***

## `UnblockDmsAsync`

POST `/2/users/{id}/dm/unblock`

**Unblock DMs**

Unblocks direct messages to or from a specific User by their ID for the authenticated user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnblockDmsAsync("2244994945");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**Returns:** `Task<UnblockUsersDmsResponse>`

***

## `UnfollowListAsync`

DELETE `/2/users/{id}/followed_lists/{list_id}`

**Unfollow List**

Causes the authenticated user to unfollow a List by its ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnfollowListAsync("2244994945", "1450000000000000000");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**listId** `string` *required*

`list_id` (path parameter).

**Returns:** `Task<UnfollowListResponse>`

***

## `UnfollowUserAsync`

DELETE `/2/users/{source_user_id}/following/{target_user_id}`

**Unfollow User**

Causes the authenticated user to unfollow a specific user by their ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnfollowUserAsync("2244994945", "2244994945");
Console.WriteLine(response);
```

### Parameters

**sourceUserId** `string` *required*

`source_user_id` (path parameter).

**targetUserId** `string` *required*

`target_user_id` (path parameter).

**Returns:** `Task<UnfollowUserResponse>`

***

## `UnlikePostAsync`

DELETE `/2/users/{id}/likes/{tweet_id}`

**Unlike Post**

Causes the authenticated user to unlike a specific Post by its ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnlikePostAsync("2244994945", "1895000000000000000");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**tweetId** `string` *required*

`tweet_id` (path parameter).

**Returns:** `Task<UnlikePostResponse>`

***

## `UnmuteUserAsync`

DELETE `/2/users/{source_user_id}/muting/{target_user_id}`

**Unmute User**

Causes the authenticated user to unmute the target user.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnmuteUserAsync("2244994945", "2244994945");
Console.WriteLine(response);
```

### Parameters

**sourceUserId** `string` *required*

`source_user_id` (path parameter).

**targetUserId** `string` *required*

`target_user_id` (path parameter).

**Returns:** `Task<UnmuteUserResponse>`

***

## `UnpinListAsync`

DELETE `/2/users/{id}/pinned_lists/{list_id}`

**Unpin List**

Causes the authenticated user to unpin a List by its ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnpinListAsync("2244994945", "1450000000000000000");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**listId** `string` *required*

`list_id` (path parameter).

**Returns:** `Task<UnpinListResponse>`

***

## `UnrepostPostAsync`

DELETE `/2/users/{id}/retweets/{source_tweet_id}`

**Unrepost Post**

Causes the authenticated user to unrepost a specific Post by its ID.

```csharp theme={null}
using System;
using Xdk;

using var client = new XClient(new XClientOptions
{
    AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"),
});

var response = await client.Users.UnrepostPostAsync("2244994945", "1895000000000000000");
Console.WriteLine(response);
```

### Parameters

**id** `string` *required*

`id` (path parameter).

**sourceTweetId** `string` *required*

`source_tweet_id` (path parameter).

**Returns:** `Task<UnrepostPostResponse>`

***
