Test Webhook
curl --request POST \
--url https://api.agentline.cloud/v1/webhooks/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/webhooks/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.agentline.cloud/v1/webhooks/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Webhooks
Test Webhook
Fire a signed webhook.test event to the agent’s webhook.
Uses the exact same event bus (publish_event) that real telephony events use, so a successful delivery confirms the entire pipeline is wired correctly. Returns 404 if no webhook is configured for the agent.
POST
/
v1
/
webhooks
/
test
Test Webhook
curl --request POST \
--url https://api.agentline.cloud/v1/webhooks/test \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.agentline.cloud/v1/webhooks/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.agentline.cloud/v1/webhooks/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}