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 1.0a User context

Rate limit

User rate limit: 300 requests per 15-minute window

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: OAuth $OAUTH_SIGNATURE" -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.