POST /2/lists/:id/members
POST /2/lists/:id/members
Enables the authenticated user to add a member to a List they own.
Endpoint URL
https://api.x.com/2/lists/:id/members
Authentication and rate limits
Authentication methods supported by this endpoint | OAuth 2.0 Authorization Code with PKCE OAuth 1.0a is also available for this endpoint. |
---|---|
Rate limit | User rate limit (User context): 300 requests per 15-minute window per each authenticated user |
OAuth 2.0 scopes required by this endpoint
|
Learn more about OAuth 2.0 Authorization Code with PKCE |
Path parameters
Name | Type | Description |
---|---|---|
id Required | string | The ID of the List you are adding a member to. |
JSON body parameters
Name | Type | Description |
---|---|---|
user_id Required | string | The ID of the user you wish to add as a member of the List. |
Example code with offical SDKs
TypeScript
Java
Example responses
Successful response
Response fields
Name | Type | Description |
---|---|---|
is_member | boolean | Indicates whether the member specified in the request has been added to the List. |