Create
- POST
- /workspaces
- /:workspace
- /webhooks
Creates a new webhook. Restricted to admins only.
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/webhooks" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"target_url": "https://example.com/webhook",
"secret_key": "my-secret-key",
"name": "CI Webhook",
"projects": [
"my-project",
"api-project"
],
"events": [
"PUSH",
"EXECUTION_STARTED",
"EXECUTION_SUCCESSFUL",
"EXECUTION_FAILED"
]
}'