POST /2/lists/:id/members

Enables the authenticated user to add a member to a List they own.

Endpoint URL

https://api.twitter.com/2/lists/:id/members

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 2.0 Authorization Code with PKCE

Rate limit

User rate limit (OAuth 2.0 user Access Token): 300 requests per 15-minute window per each authenticated user

OAuth 2.0 scopes required by this endpoint

tweet.read

users.read

list.write

Learn more about OAuth 2.0 Authorization Code with PKCE

Path parameters

NameTypeDescription
id
 Required 
stringThe ID of the List you are adding a member to.


JSON body parameters

NameTypeDescription
user_id
 Required 
stringThe ID of the user you wish to add as a member of the List.


Example requests

      curl -X POST https://api.twitter.com/2/lists/1441162269824405510/members -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-type: application/json" -d '{"user_id": "2244994945"}'
    

Example responses

      {
  "data": {
    "is_member": true
  }
}
    

Response fields

NameTypeDescription
is_memberbooleanIndicates whether the member specified in the request has been added to the List.