curl https://agentgate.mynewapi.com/v1/webhooks \
-H "Authorization: Bearer YOUR_API_KEY"
{
"webhooks": [
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-01T00:00:00Z"
}
]
}
List all configured webhooks
curl https://agentgate.mynewapi.com/v1/webhooks \
-H "Authorization: Bearer YOUR_API_KEY"
{
"webhooks": [
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-01T00:00:00Z"
}
]
}
curl https://agentgate.mynewapi.com/v1/webhooks \
-H "Authorization: Bearer YOUR_API_KEY"
{
"webhooks": [
{
"id": "wh_abc123",
"url": "https://your-app.com/webhooks/agentgate",
"events": ["run.completed", "run.failed"],
"enabled": true,
"description": "Production webhook",
"createdAt": "2024-01-01T00:00:00Z"
}
]
}