Private beta: this contract may change before launch. Join the waitlist
Hijinks
Hijinks Webhook API

Outbound events fetched by a bridge that cannot receive them.


Fetch outbound events (polling bridges)

GET
https://api.hijinks.team
/hooks/{workspaceId}/events

For a bridge with no public address. Connect the custom platform without a target URL and Hijinks holds each outbound event for 24 hours instead of POSTing it. Fetch them here, oldest first, and pass next back as after.

  • Without after, the answer is no events and the newest cursor: start from now.
  • When hasMore is true, poll again at once, otherwise every few seconds.
  • Sign the query string exactly as sent (the empty string when there is none) in place of a body, and verify Hijinks-Signature on the response over its exact bytes.
  • Handle each event as if it had been pushed, and dedupe on id.

Stale events and superseded updates are left out, so apply a page as it comes. Setup, downtime and what to do when your chat refuses a message: Polling.

Fetch outbound events (polling bridges) › path Parameters

workspaceId
​WorkspaceId · uuid · required

The workspace id shown in the dashboard next to the inbound URL.

The Hijinks workspace, as shown in the dashboard.

Fetch outbound events (polling bridges) › query Parameters

after
​Cursor · pattern: ^\d{1,18}$

The next cursor of the previous poll, stored as given. Use 0 for the oldest event held. Omitted, the answer has no events and the newest cursor (start from now).

A poll position. Opaque. Pass it back as after exactly as received.

limit
​integer · min: 1 · max: 100

Most events to answer.

Default: 100

Fetch outbound events (polling bridges) › Headers

Hijinks-Signature
​string · pattern: ^t=\d+(,v1=[0-9a-fA-… · required

t=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>. Several v1= entries are allowed. Any one matching is enough.

Fetch outbound events (polling bridges) › Responses

A page of held events, oldest first.

​OutboundEvent[] · maxItems: 100 · required

Oldest first, each exactly the envelope a push would have carried.

next
​Cursor · pattern: ^\d{1,18}$ · required

Pass as after on the next poll. The after you sent when no event was new. Without after, the newest cursor ("0" when the workspace has never held an event).

hasMore
​boolean · required

More events wait past this page. Poll again at once.

gap
​boolean · required

Events after your after expired (24 hours) before you fetched them: the bridge missed something. Tell the channel if you like ("Hijinks was unreachable and some messages were missed") and carry on from next. Always false without after.