FERAL MODE LIVE

For a partner’s developers

Webhooks and the partner API

A partner is a venue, a producer or an organizer that runs its spot, events and groups in Feral Mode Live. Its tools can hear about changes as they happen (webhooks out) and keep the listing in step (the API in). This page is the reference for both.

Webhooks

Add an endpoint in Partner tools, or with the API: an https URL, a description (up to 80 characters), the events it takes, and what it needs from members (nothing, or handle, or handle and email). Up to 5 per partner. Each has its own signing secret, shown once when you add it and once more each time you rotate it. Send a test to get a ping right away.

Each event is one POST of JSON, under 64 KB, usually within seconds of the change.

Every webhook comes from 34.122.242.15, Send a test too. Allow that address if your server only takes known senders.

Headers

Feral-Event-Id
The event’s id. The same on every retry and resend: keep it, and skip one you’ve seen.
Feral-Event-Type
The type, from the catalog.
Feral-Delivery-Id
This delivery’s id, the same on each retry, as your request log lists it.
Feral-Timestamp
When this try was signed, in Unix seconds: the t in the signature.
Feral-Signature
t=<unix seconds>,v1=<hex>. For 24 hours after you rotate the secret, a second v1 under the old one.
Feral-Api-Version
The body’s shape, now 2026-11-02.
Content-Type
application/json
User-Agent
FeralModeLive-Webhooks/1

The body

id
The event’s id, the same as Feral-Event-Id and the same on every try.
type
Its type, from the catalog below.
api_version
The shape this body follows.
occurred_at
When it happened, in UTC (ISO 8601).
sequence
Goes up with each change to the same subject (an event, a spot, a group), so the larger is the later.
partner_id
Your partner’s id.
data
What this type carries: see the catalog.
links
Where the subject is in the app: event, spot, group or partner.

One delivery, as your server gets it (made-up ids)

{
  "id": "example-event-id",
  "type": "event.guest.joined",
  "api_version": "2026-11-02",
  "occurred_at": "2027-01-01T03:12:00.000Z",
  "sequence": 3,
  "partner_id": "example-partner-id",
  "data": {
    "event_id": "example-event",
    "external_id": "your-ticket-tool-123",
    "counts": {
      "in": 39,
      "asked": 2,
      "arrived": 0
    },
    "guest": {
      "id": "example-member",
      "handle": "example_handle"
    }
  },
  "links": {
    "event": "https://feralmode.live/events/example-event"
  }
}

Events

Every type is subject.verb. An endpoint takes the ones you pick, and only your own partner’s. spot.presence.changed comes at most once every 60 seconds per spot.

Test

  • pingSend a test, from the endpoint form.

Carries nothing in data.

Partner

  • partner.updatedYour name, about, logo, website or phone changed.

In data

{ "changed": string[] }
  • partner.admin.addedAn admin was added.
  • partner.admin.removedAn admin was removed.

In data

{ "admin": { "id": string, "handle": string } }
  • partner.endpoint.pausedOne of your endpoints paused after too many failures.

In data

{ "endpoint_id": string, "reason": string }
  • member.share.grantedA member chose to share their handle or email with you.

In data

{
  "member": { "id": string, "handle"?: string, "email"?: string },
  "shares": { "handle": boolean, "email": boolean }
}

handle and email are there only when that member chose to share them with you. Otherwise the id alone.

  • member.share.revokedA member stopped sharing: drop what you hold on them.

In data

{ "member": { "id": string } }

Spot

  • spot.updatedHours, phone, website, description or access notes changed.

In data

{ "spot_id": string, "name": string, "changed": string[] }
  • spot.closure.addedA one-off closure was added.
  • spot.closure.removedA closure was taken off.

In data

{
  "spot_id": string,
  "closure": { "id": string, "from": string, "to": string, "note": string | null }
}
  • spot.flag.raisedA member raised a flag at your spot, by kind.
  • spot.flag.clearedA flag ran out or was cleared.

In data

{
  "spot_id": string,
  "flag": { "id": string, "kind": string, "confirmations": integer }
}
  • spot.presence.changedHere now or on the way changed: counts, at most once a minute.
  • spot.activity.hourlyHere now, last 24 hours and on the way, once an hour.

In data

{
  "spot_id": string,
  "here_now": integer,
  "last_24h": integer,
  "on_the_way": integer
}

Events

  • event.createdAn event of yours was posted.
  • event.called_offAn event of yours was called off.
  • event.startedAn event of yours started.
  • event.endedAn event of yours ended.
  • event.fullAn event of yours filled up.

In data

{
  "event": {
    "id": string,
    "external_id": string | null,
    "title": string,
    "starts_at": string,
    "ends_at": string,
    "entry": string,
    "room": integer | null,
    "place": string,
    "spot_id": string | null,
    "cancelled": boolean,
    "counts": { "in": integer, "asked": integer, "arrived": integer }
  }
}
  • event.updatedAn event of yours changed.

In data

{
  "event": {
    "id": string,
    "external_id": string | null,
    "title": string,
    "starts_at": string,
    "ends_at": string,
    "entry": string,
    "room": integer | null,
    "place": string,
    "spot_id": string | null,
    "cancelled": boolean,
    "counts": { "in": integer, "asked": integer, "arrived": integer }
  },
  "changed": string[]
}
  • event.guest.askedSomeone asked to come: answer with the API (accept, decline, or a message). "invited": true means an invited member took up the invite of an event that waits for your confirmation.
  • event.guest.joinedSomeone's in.
  • event.guest.leftSomeone left.
  • event.guest.declinedAn admin turned someone down.
  • event.guest.removedAn admin took someone off the list.
  • event.guest.arrivedSomeone tapped I'm here.

In data

{
  "event_id": string,
  "external_id": string | null,
  "counts": { "in": integer, "asked": integer, "arrived": integer },
  "guest": { "id": string, "handle"?: string, "email"?: string },
  "invited"?: true
}

handle and email are there only when that member chose to share them with you. Otherwise the id alone.

  • event.checkinSomeone was let in at the door with their ticket.
  • event.checkin_undoneA check-in at the door was undone.
  • event.checkin_rejectedA ticket was refused at the door: already admitted, or invalid.

In data

{
  "event_id": string,
  "external_id": string | null,
  "at": string,
  "reason": "already_admitted" | "other_event" | "forged" | "not_in" | null,
  "guest": { "id": string, "handle": string | null, "email": string | null } | null
}

handle and email are there only when that member chose to share them with you. Otherwise the id alone.

Groups

  • group.member.askedSomeone asked to join a group of yours.
  • group.member.joinedSomeone's in a group of yours.
  • group.member.leftSomeone left a group of yours.

In data

{
  "group_id": string,
  "name": string,
  "counts": { "in": integer, "asked": integer }
}

Checking a signature

Feral-Signature is t=<unix seconds>,v1=<hex>, where v1 is the HMAC-SHA256, under your endpoint’s secret, of the timestamp, a dot, and the raw body: <t>.<body>. Check it on the body exactly as it arrived, before parsing it, and refuse one whose timestamp is more than 5 minutes from now. After you rotate the secret, both secrets sign for 24 hours, so there are two v1 values; either one matching will do.

Node

import { createHmac, timingSafeEqual } from 'node:crypto'

// True when Feral-Signature signs this raw body under your secret, and it's fresh.
// rawBody is the body exactly as it arrived (a Buffer or a string), before any JSON parsing.
export function feralSignatureOk(secret, header, rawBody, toleranceS = 300) {
  const parts = String(header).split(',').map((p) => p.trim())
  const t = parts.find((p) => p.startsWith('t='))?.slice(2) ?? ''
  if (!/^\d+$/.test(t) || Math.abs(Date.now() / 1000 - Number(t)) > toleranceS) return false
  const want = Buffer.from(createHmac('sha256', secret).update(`${t}.`).update(rawBody).digest('hex'))
  // During a rotation there are two v1 values, one per secret: either one will do.
  return parts
    .filter((p) => p.startsWith('v1='))
    .some((p) => {
      const got = Buffer.from(p.slice(3))
      return got.length === want.length && timingSafeEqual(got, want)
    })
}
app.post('/feral', express.raw({ type: 'application/json' }), (req, res) => {
  const ok = feralSignatureOk(process.env.FERAL_SECRET, req.get('Feral-Signature') ?? '', req.body)
  if (!ok) return res.sendStatus(400)
  const delivery = JSON.parse(req.body)
  res.sendStatus(200) // answer first; skip a Feral-Event-Id you've already handled
  handle(delivery)
})

Python

import hashlib
import hmac
import time


def feral_signature_ok(secret: str, header: str, raw_body: bytes, tolerance_s: float = 300) -> bool:
    """True when Feral-Signature signs this raw body under your secret, and it's fresh."""
    parts = [p.strip() for p in header.split(",")]
    t = next((p[2:] for p in parts if p.startswith("t=")), "")
    if not (t.isascii() and t.isdigit()) or abs(time.time() - int(t)) > tolerance_s:
        return False
    want = hmac.new(secret.encode(), t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    # During a rotation there are two v1 values, one per secret: either one will do.
    return any(hmac.compare_digest(p[3:], want) for p in parts if p.startswith("v1="))
# Flask: request.get_data() is the raw body.
@app.post("/feral")
def feral():
    if not feral_signature_ok(os.environ["FERAL_SECRET"], request.headers.get("Feral-Signature", ""), request.get_data()):
        abort(400)
    delivery = request.get_json()
    return "", 200

Try yours

With this secret, this timestamp and this raw body (one line, as sent), your check should say yes, once you widen its time window, since this timestamp is fixed.

Secret
whsec_example_not_a_real_secret
Feral-Timestamp
1798773125
Feral-Signature
t=1798773125,v1=4809dbb4ced5774f73621609029f3886e03b64bf47de4b280b99a19c6d701e66
{"id":"example-event-id","type":"event.guest.joined","api_version":"2026-11-02","occurred_at":"2027-01-01T03:12:00.000Z","sequence":3,"partner_id":"example-partner-id","data":{"event_id":"example-event","external_id":"your-ticket-tool-123","counts":{"in":39,"asked":2,"arrived":0},"guest":{"id":"example-member","handle":"example_handle"}},"links":{"event":"https://feralmode.live/events/example-event"}}

Retries, order and success

  • Success is a 2xx answer within 10 seconds. Anything else fails: another code, no answer in time, a redirect (never followed), or an address that won’t resolve to a public one.
  • Retries. A failed delivery is tried again 8 times, after 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h, 24 h, each wait counted from the try before: about 3 days in all.
  • Paused. When the last retry fails, the endpoint pauses and your admins are told in the app. A 410 Gone pauses it at once. Turn it back on in Partner tools, or with the API.
  • In order. One delivery at a time per endpoint, oldest first. While one is failing, the ones behind it wait, so you always see a subject’s events in the order they happened.
  • At least once. A delivery can arrive twice, say when your server handled it but answered late. Keep Feral-Event-Id and skip one you’ve seen.
  • Answer first. Send the 2xx, then do the work, so a slow job never counts as a failure.
  • The request log. Every request we try to send your endpoints is kept 30 days in Partner tools › Integrations › Request log: each try and retry, test sends, and the ones refused before sending (an address that isn’t public https, one that won’t resolve, no answer in time). Each shows the headers and body as sent, the signature but never your secret, and your answer’s code, headers and first 4 KB. Filter by endpoint, outcome and event type; retry a failed one now, or resend any.

The partner API

Base URL
https://feralmode.live/v1
Auth
Authorization: Bearer prt_…, a key made in Partner tools or with the API. Up to 5 per partner; each is shown once and kept only as a hash.
Bodies
JSON, with Content-Type: application/json. Field names are snake_case, as in the webhooks.
Limits
600 calls a minute per key. A message to a guest: 5 an hour per guest. Send a test and rotate: 20 an hour per key, together.
Log
Every call is logged with its route and result for 30 days, listed beside the key in Partner tools.

Scopes

A key carries the scopes it was made with; a route needs one.

read
The partner, its spot, events, guests and groups.
events
Create, change and call off events by your own id.
spot
Hours, closures, phone, website, description and access notes.
integrations
Endpoints and keys.

Routes

  • GET /v1/partnerreadThe partner: name, kind, state, about, website, phone, its spot, and how many follow it.
  • GET /v1/partner/spotreadYour spot: details, hours, closures, open flags, and counts (here now, last 24 hours, on the way).
  • PATCH /v1/partner/spotspotChange hours, closures, phone, website, description or access notes. Applied at once.
  • GET /v1/partner/eventsreadYour events still to come or ended in the last 30 days, with counts.
  • GET /v1/partner/events/{external_id}readOne event by your own id, with the guests who shared themselves with you.
  • PUT /v1/partner/events/{external_id}eventsCreate or change an event by your own id: 201 when it is new, 200 when it changed. The same fields and limits as the form in the app, and the same checks on the words.
  • DELETE /v1/partner/events/{external_id}eventsCall the event off.
  • POST /v1/partner/events/{external_id}/guests/{user_id}/accepteventsLet in a guest who asked to come (their id is in event.guest.asked). On an invite-only event with confirmation, this is the confirmation, say once they have paid.
  • POST /v1/partner/events/{external_id}/guests/{user_id}/declineeventsTurn a guest down, quietly, as an admin’s no is. Someone already in is taken off the list and out of the chat at once.
  • POST /v1/partner/events/{external_id}/guests/{user_id}/messageeventsTell a guest what to do next: one line under your name, as a notification, with an optional https link they see with its domain before they tap it. Only to someone who asked, is in or was invited.
  • GET /v1/partner/groupsreadYour groups: members, asking, and whether each is closed.
  • GET /v1/partner/endpointsintegrationsYour webhook endpoints.
  • POST /v1/partner/endpointsintegrationsAdd an endpoint: an https URL, a description, the event types, and what it needs from members. The reply carries its signing secret, once.
  • PATCH /v1/partner/endpoints/{id}integrationsChange an endpoint, or pause it (on: false) and turn it back on.
  • DELETE /v1/partner/endpoints/{id}integrationsRemove an endpoint.
  • POST /v1/partner/endpoints/{id}/testintegrationsSend a ping now and see what your server answered.
  • POST /v1/partner/endpoints/{id}/rotateintegrationsA new signing secret, shown once. The old one keeps signing beside it for 24 hours.
  • GET /v1/partner/endpoints/{id}/deliveriesintegrationsIts deliveries for the last 30 days, with the body sent. Filter with type and failed.
  • POST /v1/partner/deliveries/{id}/retryintegrationsTry a failed delivery again now.
  • POST /v1/partner/deliveries/{id}/resendintegrationsSend any delivery again.
  • GET /v1/partner/keysintegrationsYour keys: name, prefix, scopes, when each was last used.
  • POST /v1/partner/keysintegrationsMake a key with its scopes. The reply carries the whole key, once.
  • DELETE /v1/partner/keys/{id}integrationsRevoke a key.

An event, from your own tool

Your own id is the key: PUT the same id again and the event changes; DELETE it and the event is called off. An id is letters, numbers, . : _ and -, up to 120. It is one per event among yours.

An event posted in the app gets one from its page: your admins see our event id there, with a copy button, and set, change or clear its External ID. From then on the API finds the event by the new id, and every webhook carries it; the change itself sends event.updated with "changed": ["external_id"].

entry is who gets in, as in the app: open (any vetted member joins), approve (each one asks, and you answer), invite (off the map; invited members join with a tap) or invite_confirm, invite only with confirmation: off the map too, but an invited member who takes up the invite asks instead, and you hear event.guest.asked with "invited": true. Send them what to do next with a message (with a link to pay, say), then accept once they have, or decline. Until you accept they get no address, chat or directions. meet: true gives the address through Meet, in person and away from your spot: each guest gets it as they set off, once Meet requests go out from the app.

A change works as it does in the app. Switching entry to open lets everyone asking in, oldest first, while there's room, and invite_confirm to invite lets in everyone waiting for you; each one you hear as event.guest.joined. room can't go below the guests who are in (a 409). Left out, chat and meet stay as they are. In person, an event whose chat is off needs its address somewhere else: an address, meet: true or your spot (a 400 otherwise; a room over 200 starts with its chat off). Once Meet is under way the place and address don't change (a 409). If one of your admins takes the event back as their own, or it's taken down for breaking the rules, you hear it: event.updated with "changed": ["partner"] for the first, which is our last word on that event, and event.called_off for the second (event.updated with "changed": ["reinstated"] if it comes back).

Node

const body = {
  "title": "Open sauna night",
  "starts_at": "2027-01-15T21:00:00-07:00",
  "ends_at": "2027-01-16T02:00:00-07:00",
  "entry": "open",
  "room": 120
}

const res = await fetch('https://feralmode.live/v1/partner/events/your-ticket-tool-123', {
  method: 'PUT',
  headers: { Authorization: `Bearer ${process.env.FERAL_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify(body),
})
if (!res.ok) throw new Error((await res.json()).error.message)
const event = await res.json() // 201 when it's new, 200 when it changed

Python

import json
import os
import urllib.request

body = {
    "title": "Open sauna night",
    "starts_at": "2027-01-15T21:00:00-07:00",
    "ends_at": "2027-01-16T02:00:00-07:00",
    "entry": "open",
    "room": 120
}

req = urllib.request.Request(
    "https://feralmode.live/v1/partner/events/your-ticket-tool-123",
    method="PUT",
    data=json.dumps(body).encode(),
    headers={"Authorization": f"Bearer {os.environ['FERAL_KEY']}", "Content-Type": "application/json"},
)
with urllib.request.urlopen(req) as res:  # 201 when it's new, 200 when it changed
    event = json.load(res)

curl

curl -X PUT https://feralmode.live/v1/partner/events/your-ticket-tool-123 \
  -H "Authorization: Bearer $FERAL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Open sauna night","starts_at":"2027-01-15T21:00:00-07:00","ends_at":"2027-01-16T02:00:00-07:00","entry":"open","room":120}'

PUT /v1/partner/events/{external_id} takes

{
  "title": string,
  "starts_at": string,
  "ends_at": string,
  "entry"?: "open" | "approve" | "invite" | "invite_confirm",
  "room"?: integer | null,
  "at_spot"?: boolean,
  "lat"?: number,
  "lng"?: number,
  "place"?: "in_person" | "virtual",
  "address"?: string,
  "rules"?: string,
  "description"?: string,
  "tags"?: string[],
  "chat"?: boolean,
  "meet"?: boolean
}

and answers with the event

{
  "id": string,
  "external_id": string | null,
  "title": string,
  "starts_at": string,
  "ends_at": string,
  "entry": "open" | "approve" | "invite" | "invite_confirm",
  "room": integer | null,
  "place": "in_person" | "virtual",
  "at_spot": boolean,
  "address": string | null,
  "rules": string | null,
  "description": string | null,
  "tags": string[],
  "chat": boolean,
  "meet": boolean,
  "cancelled": boolean,
  "ended": boolean,
  "counts": { "in": integer, "asked": integer, "arrived": integer },
  "guests"?: ({
    "id": string,
    "handle"?: string,
    "email"?: string,
    "state": "asked" | "in" | "invited" | "arrived",
    "at": string
  })[],
  "url": string
}

PATCH /v1/partner/spot takes

{
  "hours"?: string | null,
  "description"?: string | null,
  "access"?: string | null,
  "phone"?: string | null,
  "website"?: string | null,
  "closures"?: ({ "from": string, "to": string, "note"?: string | null })[]
}

and answers with the spot, as GET does

{
  "id": string,
  "name": string,
  "category": string,
  "hours": string | null,
  "description": string | null,
  "access": string | null,
  "phone": string | null,
  "website": string | null,
  "closures": ({ "id": string, "from": string, "to": string, "note": string | null })[],
  "counts": { "here_now": integer, "last_24h": integer, "on_the_way": integer },
  "flags": ({
    "id": string,
    "kind": string,
    "confirmations": integer,
    "expires_at": string | null
  })[]
}

POST …/guests/{user_id}/message takes (url: https, up to 500 characters, shown to the guest with its domain), and answers { "ok": true }

{ "text": string, "url"?: string }

POST /v1/partner/endpoints takes (PATCH takes any of these, and on)

{
  "url": string,
  "description": string,
  "types": string[],
  "needs"?: "none" | "handle" | "handle_email"
}

POST /v1/partner/keys takes

{
  "name": string,
  "scopes": string[],
  "needs"?: "none" | "handle" | "handle_email"
}

Errors

Every error has the same shape:

{ "error": { "code": "scope", "message": "This key has no events scope." } }
400
The body or a path id didn’t fit. message says what.
401
No key, or a key that isn’t live (revoked, or never was). code is key for one that isn’t live.
403
The key lacks the scope the route needs (code is scope), or the partner is paused.
404
Not yours, or not there: an event id, an endpoint, a guest who isn’t on the list.
409
Too late: the event was called off or has ended.
429
Too many calls. Wait the seconds in Retry-After (also retryAfter in the body).
503
Not answering for now. Try again later.

Never through the API: reading a member, messaging anyone beyond your own guests, posting to the Wall, inviting, or anything of another partner’s.

What never goes out

  • Where a member is: no location, distance, coordinates or address of anyone.
  • Photos, Proof, messages, or what a report said.
  • A member’s email, or their handle, unless that member chose to share it with you. Set what an endpoint or key needs (Nothing, Handle, Handle and email), and the app asks each member in one line the first time a feature needs it, for example “To join, your venue’s tools need your handle.” Saying no costs them nothing.
  • When a member stops sharing, member.share.revoked tells you: drop what you hold on them.
  • Who’s in your events goes out as counts, with a guest’s id, handle or email only as they shared them with you.

Every payload is built from a strict schema; a field the schema doesn’t list can’t leave.

Security

  • Endpoints are https only, with no user name or password in the URL.
  • A host that resolves to a private, local or otherwise internal address is refused, when you add it and again on every send. Redirects aren’t followed.
  • Check the signature and the timestamp on every request, and refuse one older than 5 minutes.
  • Keep secrets and keys out of your code and logs. Each is shown once; rotate a secret any time, and revoke a key you’ve lost.
  • Your endpoints take only your own partner’s events, and your keys reach only your own partner.

Become a partner

Webhooks and the API are for partners, approved one at a time. A partner’s admins add endpoints and keys in the app, under You › Account › Settings › Partner tools. Read what being a partner means and how set-up works.

Become a partner

Feral Mode Live is for adults 18+.