Send a test event
curl --request POST \
--url https://api.hooper.gg/v1/webhook_endpoints/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hooper.gg/v1/webhook_endpoints/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hooper.gg/v1/webhook_endpoints/{id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_test",
"endpoint": "we_2",
"delivered": true,
"response_status": 123,
"error": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}Webhooks
Send a test event
Synchronously POSTs a synthetic session.processed event (id: "evt_test") to the endpoint and reports the response, so you can verify signature handling before the first real job.
POST
/
v1
/
webhook_endpoints
/
{id}
/
test
Send a test event
curl --request POST \
--url https://api.hooper.gg/v1/webhook_endpoints/{id}/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hooper.gg/v1/webhook_endpoints/{id}/test"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hooper.gg/v1/webhook_endpoints/{id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "webhook_test",
"endpoint": "we_2",
"delivered": true,
"response_status": 123,
"error": "<string>"
}{
"error": {
"type": "invalid_request_error",
"code": "parameter_invalid",
"message": "<string>",
"param": "source.url"
}
}Authorizations
API key issued by Hooper for your organization. Keys are environment-tagged: hk_prod_ keys work against production, hk_stg_ keys against staging.
Path Parameters
Example:
"we_2"