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
요청이 성공했습니다.
웹훅 구성
이 웹훅 구성의 고유 식별자입니다.
^[0-9]{1,19}$
"1146654567674912769"
이 웹훅의 콜백 URL입니다.