# Create org-level webhook
curl -X POST "https://app.preclinical.dev/api/v1/webhooks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook",
"secret": "my-signing-secret",
"description": "Main notification webhook"
}'
# Create agent-specific webhook
curl -X POST "https://app.preclinical.dev/api/v1/webhooks" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/webhook/agent1",
"agent_id": "agent-uuid",
"secret": "agent-specific-secret"
}'