Skip to main content
POST
/
2
/
webhooks
Create webhook
curl --request POST \
  --url https://api.x.com/2/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": "1146654567674912769",
  "url": "<string>",
  "valid": true
}

Authorizations

Authorization
string
header
required

Body

application/json
url
string
required
Required string length: 1 - 200

Response

created_at
string<date-time>
required
id
string
required
Example:
url
string
required
valid
boolean
required