curl -X POST https://agentgate.mynewapi.com/v1/webhooks \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://your-app.com/webhooks/agentgate", "events": ["run.completed", "run.failed"], "description": "Production webhook" }'
{ "webhook": { "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" }, "secret": "whsec_xxxxxxxxxxxxxxxxxxxxxxxx" }
Create a new webhook endpoint