cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/webhooks/{botId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'import requests
url = "http://127.0.0.1:3333/v3/webhooks/{botId}"
payload = { "url": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('http://127.0.0.1:3333/v3/webhooks/{botId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Additional Endpoints
Create Webhooks
Create Webhooks with the Sendbot API v3.
POST
/
v3
/
webhooks
/
{botId}
cURL
curl --request POST \
--url http://127.0.0.1:3333/v3/webhooks/{botId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>"
}
'import requests
url = "http://127.0.0.1:3333/v3/webhooks/{botId}"
payload = { "url": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('http://127.0.0.1:3333/v3/webhooks/{botId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Body
application/json
Response
200
Default Response