POST /2/lists
POST /2/lists
Enables the authenticated user to create a List.
Endpoint URL
https://api.x.com/2/lists
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 |
JSON body parameters
Name | Type | Description |
---|---|---|
name Required | string | The name of the List you wish to create. |
description Optional | string | Description of the List. |
private Optional | boolean | Determine whether the List should be private. |
Example code with offical SDKs
TypeScript
Java
Example responses
Successful response
Response fields
Name | Type | Description |
---|---|---|
id | number | The id of the newly created List. |
name | string | The name of the newly created List. |