Skip to main content
POST
Create subscription

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
users.read
View any account you can see, including protected accounts.
tweet.read
View all posts you can see, including those from protected accounts.
dm.read
Read all your Direct Messages.
dm.write
Send and manage your Direct Messages.

Path Parameters

webhook_id
string
required

Unique identifier of a WebhookConfig

Pattern: ^[0-9]{1,19}$

Body

application/json

The body is of type object.

Response

The request has succeeded.

data
object
errors
object[]