Outbound
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
2xxwithin 5 seconds. Otherwise the event is sent again after 1 and 4 seconds with the sameid, then dropped — so dedupe onid. Apingis sent once. - Events for one
message.idarrive 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.ephemeralandping, 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 message in channel and remember which of your chat's messages
message.id became: later message.updates name it.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Hijinks-Event-Id^evt_[0-9A-HJKMNP-TV… · requiredThe envelope's id. Unchanged across retries. Dedupe on it.
Unique per event and unchanged across its retries. Dedupe on it.
Hijinks-WorkspaceThe 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^evt_[0-9A-HJKMNP-TV… · requiredUnique per event and unchanged across its retries. Dedupe on it.
typeworkspaceThe Hijinks workspace, as shown in the dashboard.
createdAtWhen Hijinks created the event (ISO 8601, UTC).
channelA 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.
Post a message to a channel › Responses
Delivered. Any other answer, or none within 5 seconds, is a failure.
Replace a message Hijinks created
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.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Hijinks-Event-Id^evt_[0-9A-HJKMNP-TV… · requiredThe envelope's id. Unchanged across retries. Dedupe on it.
Unique per event and unchanged across its retries. Dedupe on it.
Hijinks-WorkspaceThe 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^evt_[0-9A-HJKMNP-TV… · requiredUnique per event and unchanged across its retries. Dedupe on it.
typeworkspaceThe Hijinks workspace, as shown in the dashboard.
createdAtWhen Hijinks created the event (ISO 8601, UTC).
channelA 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.
Replace a message Hijinks created › Responses
Delivered.
Reply that only one member should see
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.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Hijinks-Event-Id^evt_[0-9A-HJKMNP-TV… · requiredThe envelope's id. Unchanged across retries. Dedupe on it.
Unique per event and unchanged across its retries. Dedupe on it.
Hijinks-WorkspaceThe 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^evt_[0-9A-HJKMNP-TV… · requiredUnique per event and unchanged across its retries. Dedupe on it.
typeworkspaceThe Hijinks workspace, as shown in the dashboard.
createdAtWhen Hijinks created the event (ISO 8601, UTC).
channelA 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.
userA member's user.id, as your bridge sent it.
Reply that only one member should see › Responses
Delivered.
Send a member a private message
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.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Hijinks-Event-Id^evt_[0-9A-HJKMNP-TV… · requiredThe envelope's id. Unchanged across retries. Dedupe on it.
Unique per event and unchanged across its retries. Dedupe on it.
Hijinks-WorkspaceThe 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^evt_[0-9A-HJKMNP-TV… · requiredUnique per event and unchanged across its retries. Dedupe on it.
typeworkspaceThe Hijinks workspace, as shown in the dashboard.
createdAtWhen Hijinks created the event (ISO 8601, UTC).
userA member's user.id, as your bridge sent it.
Send a member a private message › Responses
Delivered.
Test event
Sent when someone presses "Send test event" in the dashboard. Answer 2xx. The dashboard shows the status code and latency.
Headers
Hijinks-Signature^t=\d+(,v1=[0-9a-fA-… · requiredt=<unix seconds>,v1=<hex HMAC-SHA256(secret, "<t>.<raw body>")>.
Several v1= entries are allowed. Any one matching is enough.
Hijinks-Event-Id^evt_[0-9A-HJKMNP-TV… · requiredThe envelope's id. Unchanged across retries. Dedupe on it.
Unique per event and unchanged across its retries. Dedupe on it.
Hijinks-WorkspaceThe envelope's workspace, for routing before the body is parsed.
The Hijinks workspace, as shown in the dashboard.
Test event › Request Body
id^evt_[0-9A-HJKMNP-TV… · requiredUnique per event and unchanged across its retries. Dedupe on it.
typeworkspaceThe Hijinks workspace, as shown in the dashboard.
createdAtWhen Hijinks created the event (ISO 8601, UTC).
Test event › Responses
Reachable.