webhooks
Create organization webhook
Creates 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.
post/v2/organizations/{organization_id}/webhooks
Request
- Base URLhttps://api.hubstaff.com
- AuthOAuth 2Authorization codehttps://account.hubstaff.com/authorizations/newToken URLhttps://account.hubstaff.com/access_tokensScopeshubstaff:read, hubstaff:write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
organization_idinteger required
Request body
Response
The created webhook
Changes
No recorded changes to this operation across all 1 revision of this API.