Skip to main content
POST
Create List

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

FlowAuthorization Code
Authorization URL
https://api.x.com/2/oauth2/authorize
Token URL
https://api.x.com/2/oauth2/token
Scopes4
list.read
View Lists, members, and followers of Lists you created or are a member of, including private Lists.
list.write
Create and manage Lists on your behalf.
tweet.read
View all Posts you can see, including those from protected accounts.
users.read
View any account you can see, including protected accounts.

Body

application/json
name
string
required
Required string length: 1 - 25
description
string
Maximum string length: 100
private
boolean
default:false

Response

The request has succeeded.

data
object

A X List is a curated group of accounts.

errors
object[]
Minimum array length: 1

An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).