Skip to main content
POST
/
twitter
/
list
/
create
Create List
curl --request POST \
  --url https://api.twitterxapi.com/twitter/list/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7",
  "list_name": "<string>",
  "list_description": "<string>",
  "is_private": true
}'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "is_private": true,
    "member_count": 123,
    "subscriber_count": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The user's Twitter authentication cookie or Twitter auth_token, how-to-get-twitter-cookie

Example:

"ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"

list_name
string
required

The name of the list.

list_description
string
required

The description of the list.

is_private
boolean
required

Whether the list is private.

Response

A list object.

code
integer
required

The status code of the response.

msg
string
required

The message of the response.

data
object
required

The list object.