Create
- POST
- /workspaces
- /:domain
- /webhooks
Creates a new webhook. Restricted to admins only.
Example:
curl -X POST "https://api.buddy.works/workspaces/:domain/webhooks" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"target_url": "http://localhost",
"secret_key": "mysecretkey",
"projects": [
"company-website",
"beta-project"
],
"events": [
"EXECUTION_FAILED"
]
}'
EXAMPLE RESPONSE{ "url": "https://api.buddy.works/workspaces/buddy/webhooks/2", "html_url": "https://app.buddy.works/buddy/webhook/2", "id": 2, "target_url": "http://localhost", "secret_key": "mysecretkey", "projects": [ "company-website", "beta-project" ], "events": [ "EXECUTION_FAILED" ] }
STATUS201 Created
LIMITSX-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999