メインコンテンツへスキップ
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 のコールバック URL。

valid
boolean
必須