Webhooks
Receive an event when something in your book of business needs attention, instead of polling for it.
Kick pushes events to an HTTPS endpoint you own. Delivery runs on Svix, which signs every request, retries failures on a fixed schedule, and hosts the portal where you register endpoints and inspect deliveries.
Endpoints belong to the organization rather than to a workspace, so a single endpoint covers every workspace in your book of business.
Register an endpoint
Once the Platform API is enabled for your organization, an organization owner or admin can register an endpoint from the page that holds the platform token.
In your firm's sidebar, expand Firm and click API.
Under Webhooks, click Open portal.
Add an endpoint and paste the HTTPS URL that will receive the events.
Subscribe the endpoint to the event types you want. Leaving the selection empty subscribes it to all of them.
Copy the endpoint's signing secret. It starts with
whsec_and is the key you verify deliveries with.
The portal is also where you inspect delivery logs, retry a single message, and replay failed events.
Event types
Each event has its own page holding the payload it carries and the conditions it fires under:
A Plaid connection of one of your business entities stopped syncing and has to be reconnected by the business owner
The lock date of one of your business entities was set, moved, or cleared, from Kick or through the API
A financial account became available on one of your entities: it was created there, or an unassigned account was assigned to it
The name, type, sync setting, or bookkeeping dates of one of your financial accounts changed, from Kick or through the API
One of your financial accounts moved to another entity of the same workspace
One of your financial accounts was deleted, on its own, by merging it into another account, or with its entity or connection
Tasks were created in one of your workspaces, by a user or by Kick
The title, priority, due date, assignee, group, or entities of tasks changed
The status of tasks changed, by a user or by Kick
A message was posted on a task, by a user, by Kick, or through the API
Tasks were deleted
The event envelope
Every event arrives in the same envelope, with the fields specific to it under payload:
event
string
The event type. Switch on it to route the delivery, rather than inferring the type from the endpoint it arrived on
version
integer
Version of the envelope and the payloads it carries, shared by every event type. It is raised when the shape changes in a way that could break a handler, so pin your parsing to the version you built against
occurredAt
integer
Unix time in seconds, not the ISO 8601 timestamp the REST endpoints return
payload
object
The event's own data, documented on the event's page
Because the body names its own event type, one endpoint subscribed to everything can serve your whole integration. Ids inside payload are the same uuids the REST API uses, so a workspaceId, entityId, or resource id can be passed straight to the endpoints in the reference.
Verify the signature
Every delivery carries three headers:
svix-id
Message id, the same value across every retry of one message
svix-timestamp
Unix time in seconds at which the attempt was signed
svix-signature
Space delimited list of base64 signatures, one per active secret
The signature is a base64 HMAC-SHA256 of {svix-id}.{svix-timestamp}.{body}, keyed on the base64 decoded part of the signing secret after the whsec_ prefix. Check it against the raw request body: parsing the JSON and serializing it again changes the bytes and breaks verification.
The Svix libraries do all of that, including rejecting a delivery whose timestamp is more than five minutes out, which is what stops a captured request from being replayed at you:
Delivery and retries
Answer with any 2xx within 15 seconds. Everything else, including a 3xx redirect and a timeout, counts as a failure and is retried immediately, then after 5 seconds, 5 minutes, 30 minutes, 2 hours, 5 hours, 10 hours, and 10 hours again. After the last attempt the message is marked failed, and you recover it from the portal.
An endpoint that keeps failing for five days is disabled, so check the delivery logs if events stop arriving.
Retries reuse the same svix-id, which makes it the idempotency key for your handler. Acknowledge the delivery first and do the work afterwards when processing can outrun the 15 second window.
Next steps
Last updated
Was this helpful?
