cURL
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 }
एक नया वेबहुक कॉन्फ़िगरेशन बनाता है।
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1 - 200
अनुरोध सफल रहा।
एक Webhook कॉन्फ़िगरेशन
इस webhook कॉन्फ़िगरेशन का अद्वितीय पहचानकर्ता।
^[0-9]{1,19}$
"1146654567674912769"
Webhook का callback URL।