curl https://agentgate.mynewapi.com/v1/webhooks/wh_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-15T10:30:00Z"
}
Webhooks
Get Webhook
Get webhook configuration details
GET
/
v1
/
webhooks
/
{id}
curl https://agentgate.mynewapi.com/v1/webhooks/wh_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-15T10:30:00Z"
}
string
required
Webhook ID (format:
wh_xxxxx).string
Webhook identifier.
string
Webhook URL.
array
Subscribed event types.
boolean
Whether webhook is active.
string
Webhook description.
string
Creation timestamp.
The webhook secret is not included in the response.
curl https://agentgate.mynewapi.com/v1/webhooks/wh_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-15T10:30:00Z"
}