latestOpenAPI 3.1.02026-08-13233474.8 KB

e920ac8ed225

Webhooks

Create Webhook Registration

Create a new webhook registration to receive webhook events. For more information and documentation, see https://api.hustle.com/docs/webhooks.

post/webhook_registrations

Request body

targetUrlstring uri required

The URL that will receive webhook events.

secretForHMACstring required

Secret key used for HMAC signature verification of webhook events.

Response

Returns the created webhook registration.

idstring required

The ID of the webhook registration.

type'webhook_registration' required

The type of object the attached ID corresponds to.

targetUrlstring uri required

The URL that will receive webhook events.

createdAtstring required

An ISO-8601 string representing the date the webhook registration was created.

secretForHMACboolean required

Whether a secret is currently active for HMAC signature verification of webhook events. We do not ever return the secret so if you have lost your copy, you will need to set a new one.