मुख्य सामग्री पर जाएं
POST
/
2
/
webhooks
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
}

प्राधिकरण

Authorization
string
header
आवश्यक

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

बॉडी

application/json
url
string
आवश्यक
Required string length: 1 - 200

प्रतिक्रिया

अनुरोध सफल रहा।

एक Webhook कॉन्फ़िगरेशन

created_at
string<date-time>
आवश्यक
id
string
आवश्यक

इस webhook कॉन्फ़िगरेशन का अद्वितीय पहचानकर्ता।

Pattern: ^[0-9]{1,19}$
उदाहरण:

"1146654567674912769"

url
string
आवश्यक

Webhook का callback URL।

valid
boolean
आवश्यक