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

Events a bridge sends to Hijinks.


Report a command, button press or typed message

POST
https://api.hijinks.team
/hooks/{workspaceId}

Answered 202 {"ok": true} before the event is acted on. What it causes — a question, an updated message, a DM — arrives as outbound events, never in this response.

Every request carries your own id. One repeating an id seen in the last 24 hours is answered 202 and ignored, so retry a timeout, a 5xx or a 429 with the same body and id, re-signed with the current time. Do not retry any other 4xx: the request itself is wrong.

A request is checked in this order, and the first failure is the answer:

CheckStatus
Body is JSON and at most 64 KB400 / 413
At most 500 requests per second from the sending IP address, signed or not429
Workspace exists, is a custom-platform workspace and is connected404
Hijinks-Signature matches the raw body401
Signed timestamp within 5 minutes of Hijinks' clock409
At most 250 requests per second for this workspace429
Body matches InboundEvent (the field at fault is named)400

Report a command, button press or typed message › 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.

Report a command, button press or typed 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.

Report a command, button press or typed message › Request Body

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · type="command" · requires: id, channel, user +1 more
type = object · type="action" · requires: id, channel, user +2 more
type = object · type="message" · requires: id, channel, user +1 more
Properties for Variant 1:
A member ran `/hijinks <text>` (or however your chat spells the command).
type
​const · required
Const value: command
id
​RequestId · minLength: 1 · maxLength: 128 · required

Your id for this request, unique per request. Send the same one when you retry it. A request repeating an id seen in the last 24 hours is answered 202 and ignored.

​Channel · required

Where the event happened. id is your chat's id for the channel, opaque to Hijinks. Outbound events address the channel by it. name is its display name, when you have one.

Ids starting with dm: are reserved for the acting member's DM with Hijinks: dm: followed by the event's own user.id, exactly. Only action and message events may come from a DM. A dm: id on a command, or one naming another member, is refused with 400 (field channel.id). These rules span two fields, so this schema alone cannot express them.

​User · required

The member who acted. id is your chat's id for them, opaque to Hijinks and stable — scores and DMs follow it. name is shown in results and leaderboards. Send it whenever you have it.

text
​string · maxLength: 2000 · required

What followed the command, e.g. start, start science, leaderboard. Empty is help.

Report a command, button press or typed message › Responses

Accepted. Effects arrive as outbound events.

ok
​const · required
Const value: