POST
/
2
/
webhooks
curl --request POST \
  --url https://api.twitter.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

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

Body

application/json

Response

200
application/json

The request has succeeded.

A Webhook Configuration