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

Events Hijinks sends to your bridge (webhooks). Each is a signed POST to the one bridge URL you set in the dashboard. type in the body says which event it is.

  • Answer any 2xx within 5 seconds. Otherwise the event is sent again after 1 and 4 seconds with the same id, then dropped — so dedupe on id. A ping is sent once.
  • Events for one message.id arrive one at a time, in order. An update that a newer one has overtaken is not sent, and neither are the updates of a create Hijinks gave up on.
  • An event is not sent once it is no longer worth showing: when it is 60 seconds old for message.ephemeral and ping, or 10 minutes old for a live game's messages and the answers to commands. Prompts and results that stay valid for hours (self-paced rounds, word games, icebreakers, digests) never go stale.

Post a message to a channel

POST
<your bridge URL>
 (type: message.create)

Post message in channel and remember which of your chat's messages message.id became: later message.updates name it.

Post a message to a channel › 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.

Hijinks-Event-Id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

The envelope's id. Unchanged across retries. Dedupe on it.

Unique per event and unchanged across its retries. Dedupe on it.

Hijinks-Workspace
​WorkspaceId · uuid · required

The envelope's workspace, for routing before the body is parsed.

The Hijinks workspace, as shown in the dashboard.

Post a message to a channel › Request Body

id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

Unique per event and unchanged across its retries. Dedupe on it.

type
​const · required
Const value: message.create
workspace
​WorkspaceId · uuid · required

The Hijinks workspace, as shown in the dashboard.

createdAt
​CreatedAt · date-time · required

When Hijinks created the event (ISO 8601, UTC).

channel
​OutboundChannel · minLength: 1 · required

A channel id your bridge sent in an inbound event — or dm:<user id> on a message.update of a message first sent by dm.create.

​Message · required

Post a message to a channel › Responses

Delivered. Any other answer, or none within 5 seconds, is a failure.

No data returned

Replace a message Hijinks created

POST
<your bridge URL>
 (type: message.update)

Replace the text, buttons and image of the message you posted for message.id. An update for a message.id you never posted: ignore it.

A live game keeps one message: its start card is created, then every question, answer count, reveal and the final board arrives as an update of it. So handle kind: question here, not only on create.

Replace a message Hijinks created › 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.

Hijinks-Event-Id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

The envelope's id. Unchanged across retries. Dedupe on it.

Unique per event and unchanged across its retries. Dedupe on it.

Hijinks-Workspace
​WorkspaceId · uuid · required

The envelope's workspace, for routing before the body is parsed.

The Hijinks workspace, as shown in the dashboard.

Replace a message Hijinks created › Request Body

id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

Unique per event and unchanged across its retries. Dedupe on it.

type
​const · required
Const value: message.update
workspace
​WorkspaceId · uuid · required

The Hijinks workspace, as shown in the dashboard.

createdAt
​CreatedAt · date-time · required

When Hijinks created the event (ISO 8601, UTC).

channel
​OutboundChannel · minLength: 1 · required

A channel id your bridge sent in an inbound event — or dm:<user id> on a message.update of a message first sent by dm.create.

​Message · required

Replace a message Hijinks created › Responses

Delivered.

No data returned

Reply that only one member should see

POST
<your bridge URL>
 (type: message.ephemeral)

Show message to user alone in channel if your chat can, otherwise DM it, or post it. It answers a command or a button press, or tells one member something no request asked for (their recap when a game ends). Never updated.

Reply that only one member should see › 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.

Hijinks-Event-Id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

The envelope's id. Unchanged across retries. Dedupe on it.

Unique per event and unchanged across its retries. Dedupe on it.

Hijinks-Workspace
​WorkspaceId · uuid · required

The envelope's workspace, for routing before the body is parsed.

The Hijinks workspace, as shown in the dashboard.

Reply that only one member should see › Request Body

id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

Unique per event and unchanged across its retries. Dedupe on it.

type
​const · required
Const value: message.ephemeral
workspace
​WorkspaceId · uuid · required

The Hijinks workspace, as shown in the dashboard.

createdAt
​CreatedAt · date-time · required

When Hijinks created the event (ISO 8601, UTC).

channel
​OutboundChannel · minLength: 1 · required

A channel id your bridge sent in an inbound event — or dm:<user id> on a message.update of a message first sent by dm.create.

user
​MemberId · minLength: 1 · required

A member's user.id, as your bridge sent it.

​Message · required

Reply that only one member should see › Responses

Delivered.

No data returned

Send a member a private message

POST
<your bridge URL>
 (type: dm.create)

Open (or reuse) a direct conversation with user and post message there: async rounds, Know Your Team prompts, reminders. Map message.id as for message.create.

Send button presses and typed messages from that DM back with channel: {"id": "dm:<user id>"}, so replies return to the DM.

Send a member a private message › 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.

Hijinks-Event-Id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

The envelope's id. Unchanged across retries. Dedupe on it.

Unique per event and unchanged across its retries. Dedupe on it.

Hijinks-Workspace
​WorkspaceId · uuid · required

The envelope's workspace, for routing before the body is parsed.

The Hijinks workspace, as shown in the dashboard.

Send a member a private message › Request Body

id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

Unique per event and unchanged across its retries. Dedupe on it.

type
​const · required
Const value: dm.create
workspace
​WorkspaceId · uuid · required

The Hijinks workspace, as shown in the dashboard.

createdAt
​CreatedAt · date-time · required

When Hijinks created the event (ISO 8601, UTC).

user
​MemberId · minLength: 1 · required

A member's user.id, as your bridge sent it.

​Message · required

Send a member a private message › Responses

Delivered.

No data returned

Test event

POST
<your bridge URL>
 (type: ping)

Sent when someone presses "Send test event" in the dashboard. Answer 2xx. The dashboard shows the status code and latency.

Test event › 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.

Hijinks-Event-Id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

The envelope's id. Unchanged across retries. Dedupe on it.

Unique per event and unchanged across its retries. Dedupe on it.

Hijinks-Workspace
​WorkspaceId · uuid · required

The envelope's workspace, for routing before the body is parsed.

The Hijinks workspace, as shown in the dashboard.

Test event › Request Body

id
​EventId · pattern: ^evt_[0-9A-HJKMNP-TV… · required

Unique per event and unchanged across its retries. Dedupe on it.

type
​const · required
Const value: ping
workspace
​WorkspaceId · uuid · required

The Hijinks workspace, as shown in the dashboard.

createdAt
​CreatedAt · date-time · required

When Hijinks created the event (ISO 8601, UTC).

Test event › Responses

Reachable.

No data returned