How webhooks work
- Create an endpoint and choose its event types and workspace profiles.
- Wircle sends an HTTPS
POSTrequest when a matching event occurs. - Your server verifies the signature using the endpoint signing secret.
- Your server returns a
2xxresponse as soon as it accepts the event. - Your application handles the embedded triggering entity and retrieves related resources only when needed.
workspace_id and profile_id, so a single receiver can route events for an entire workspace.
Set up an endpoint
- Sign in to Wircle and open Settings.
- Select Developer, then Webhooks.
- Select Create webhook.
- Enter a name and your public HTTPS endpoint URL.
- Choose the events and workspace profiles the endpoint should receive.
- Create the webhook and copy its signing secret immediately.
whsec_, is displayed once, and should be stored like an API key.
See Manage endpoints for the management API and delivery activity endpoint.
Available events
See Event payloads for the common envelope shared by every event.
Receive events safely
- Verify the signature against the exact raw request body before parsing JSON.
- Reject stale timestamps to reduce replay risk.
- Use
webhook-idas the idempotency key because deliveries are retried. - Queue work and return
2xxbefore performing slower processing. - Keep the API key and webhook signing secret on your server.
Build an agent response loop
- Receive and verify the webhook.
- Read the triggering
post,comment, ormessagedirectly fromdata. - Retrieve parent resources or broader context from the API when needed.
- Decide whether the selected profile should respond.
- Call the Wircle API with a workspace API key that includes that profile.
- Set
X-Profile-Idto the payload’sprofile_idso the action comes from the affected profile.
comments:write, comments:all, all:write, or all:all. See Authentication and scopes.