Creates a new webhook configuration.
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
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
1 - 200curl --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
}