Create organization webhook
/v2/organizations/{organization_id}/webhooksCreates a new webhook subscription for the organization. After creation, Hubstaff will send a POST request to your target_url with an empty body and an X-Hook-Secret header.
Your endpoint must respond with HTTP 200 and echo the same X-Hook-Secret header to verify ownership.
Store the secret value - you’ll need it to activate the webhook.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organization_idrequired | path | integer (int32) |
Request body
Create organization webhook
- eventsarray required
Array of event types to subscribe to. Use ["*"] for all events.
array<string>Array of event types to subscribe to. Use ["*"] for all events.
itemsstring - target_urlstring required
The URL that will receive webhook POST requests