Inbound
Events a bridge sends to Hijinks.
Report a command, button press or typed message
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:
| Check | Status |
|---|---|
| Body is JSON and at most 64 KB | 400 / 413 |
| At most 500 requests per second from the sending IP address, signed or not | 429 |
| Workspace exists, is a custom-platform workspace and is connected | 404 |
Hijinks-Signature matches the raw body | 401 |
| Signed timestamp within 5 minutes of Hijinks' clock | 409 |
| At most 250 requests per second for this workspace | 429 |
Body matches InboundEvent (the field at fault is named) | 400 |
path Parameters
workspaceIdThe workspace id shown in the dashboard next to the inbound URL.
The Hijinks workspace, as shown in the dashboard.
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.
Report a command, button press or typed message › Request Body
Decision Table
| Variant | Matching 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 |
typeidYour 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.
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.
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.
textWhat 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