Integrations

Docs API reference

Integrations

Send results to your systems and let your attendees join without signing up again. WEBHOOKS: a delivery is a BATCH { batch_id, sent_at, events: [...] } (at most 500 events, flushed 2 to 5 s after the first), its body the RFC 8785 canonical JSON. Two signatures: X-Wunderframe-Signature: t=<unix>,v1=<hex> (HMAC-SHA256 over <t>.<batch_id>.<sha256 hex of the raw body>), and X-Wunderframe-JWS, an ES256 JWT by the workspace key (GET /webhooks/keys) with iss = workspace id, aud = endpoint id, jti = batch id, exp = 5 min and body_sha256 = sha256 hex of the canonical body. Refuse a t more than 300 s off; remember each EVENT id for 24 h (a batch may come again or out of order). An aggregate event is a full snapshot with a per-aggregate seq: keep the highest. QUESTIONS: question.* carry the question’s text only while it is visible (approved, featured or answered, not withdrawn; visible: true), also to endpoints without person events (sub: null); question.updated when what you hold changed (shown after pre-moderation, upvotes, edited), question.removed (reason: hidden, rejected, withdrawn, erased, expired = deleted by the retention sweep, deleted = its engagement was deleted; text: null) when it left view or is about to be deleted: drop your copy. Failed batches are retried after 1, 2, 4, 8 and 15 minutes, then hourly for 24 hours; then the endpoint pauses. PERSON EVENTS (person_events: true, off by default): the activity of attendees who joined with your token, each event naming them by sub. IDENTITY JOIN: register your site’s origin and an EC P-256 public key; your site mints a 5-minute ES256 token per attendee (sub = the engine user key, ev = the event ref; optional ses = a session ref and room = a room key bind it to that session or room) and links to /e/<key>#t=<token>. A token is refused (400, code) at another event (token_event), another session or a room that session is not in (token_session), another room (token_room); a refused place does not use the token up.

List webhook endpoints

GET /webhooks integrations

Never returns a secret: only the last four characters of each, to tell them apart.

Responses

  • 200 The endpoints.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • items object[]
    16 fields in items
    • id string
    • url string
    • description string
    • events string[]
    • person_events boolean
    • active boolean
    • paused boolean
    • paused_at string (date-time) or null
    • pause_reason string or null

      One of deliveries_failing, receiver_gone, null

    • failures integer

      Failed attempts in a row.

    • last_success_at string (date-time) or null
    • last_failure_at string (date-time) or null
    • last_error string or null
    • secrets object[]
      4 fields in secrets
      • role string

        One of current, previous

      • created_at string (date-time)
      • expires_at string (date-time) or null
      • hint string

        The last four characters.

    • created_at string (date-time)
    • updated_at string (date-time)
curl "https://www.wunderframe.com/api/v1/webhooks" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "items": [
    {
      "id": "whe_0123456789abcdef01234567",
      "url": "https://studio.example.com/hooks/wunderframe",
      "description": "Studio results",
      "events": [
        "*"
      ],
      "person_events": false,
      "active": true,
      "paused": false,
      "paused_at": null,
      "pause_reason": null,
      "failures": 0,
      "last_success_at": "2026-11-05T09:03:00.000Z",
      "last_failure_at": null,
      "last_error": null,
      "secrets": [
        {
          "role": "current",
          "created_at": "2026-11-01T08:00:00.000Z",
          "expires_at": null,
          "hint": "…x9Qa"
        }
      ],
      "created_at": "2026-11-01T08:00:00.000Z",
      "updated_at": "2026-11-01T08:00:00.000Z"
    }
  ]
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Add a webhook endpoint

POST /webhooks integrations

An https address on the public internet (private, loopback and link-local addresses are refused). events: ["*"] (default) or a list of event types. person_events (default false): also send the individual activity of bridged attendees (session.joined, vote.cast, question.upvoted, quiz.answered, quiz.result, feedback.submitted) and their sub on question.asked and room.checkin. The answer carries secret this ONCE: keep it to verify signatures.

Request body required

  • url string (uri)

    https only; no private, loopback or link-local address.

  • events string[]
  • description string

    Up to 200 characters

  • active boolean
  • person_events boolean

    Send the individual activity of bridged attendees, named by their sub. Default false.

Responses

  • 201 The endpoint and its secret.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (201)
  • endpoint object
    16 fields in endpoint
    • id string
    • url string
    • description string
    • events string[]
    • person_events boolean
    • active boolean
    • paused boolean
    • paused_at string (date-time) or null
    • pause_reason string or null

      One of deliveries_failing, receiver_gone, null

    • failures integer

      Failed attempts in a row.

    • last_success_at string (date-time) or null
    • last_failure_at string (date-time) or null
    • last_error string or null
    • secrets object[]
      4 fields in secrets
      • role string

        One of current, previous

      • created_at string (date-time)
      • expires_at string (date-time) or null
      • hint string

        The last four characters.

    • created_at string (date-time)
    • updated_at string (date-time)
  • secret string

    Shown this once.

curl -X POST "https://www.wunderframe.com/api/v1/webhooks" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://studio.example.com/hooks/wunderframe",
  "events": [
    "*"
  ],
  "description": "Studio results"
}'
Response 201
{
  "endpoint": {
    "id": "whe_0123456789abcdef01234567",
    "url": "https://studio.example.com/hooks/wunderframe",
    "description": "Studio results",
    "events": [
      "*"
    ],
    "person_events": false,
    "active": true,
    "paused": false,
    "paused_at": null,
    "pause_reason": null,
    "failures": 0,
    "last_success_at": "2026-11-05T09:03:00.000Z",
    "last_failure_at": null,
    "last_error": null,
    "secrets": [
      {
        "role": "current",
        "created_at": "2026-11-01T08:00:00.000Z",
        "expires_at": null,
        "hint": "…x9Qa"
      }
    ],
    "created_at": "2026-11-01T08:00:00.000Z",
    "updated_at": "2026-11-01T08:00:00.000Z"
  },
  "secret": "whsec_5Hq3m4R0yZ8sV2nK1pL7wX9cB6dF0gJ4tA8eU2iO3rQ"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Get a webhook endpoint

GET /webhooks/{id} integrations

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Responses

  • 200 The endpoint.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
Response fields (200)
  • id string
  • url string
  • description string
  • events string[]
  • person_events boolean
  • active boolean
  • paused boolean
  • paused_at string (date-time) or null
  • pause_reason string or null

    One of deliveries_failing, receiver_gone, null

  • failures integer

    Failed attempts in a row.

  • last_success_at string (date-time) or null
  • last_failure_at string (date-time) or null
  • last_error string or null
  • secrets object[]
    4 fields in secrets
    • role string

      One of current, previous

    • created_at string (date-time)
    • expires_at string (date-time) or null
    • hint string

      The last four characters.

  • created_at string (date-time)
  • updated_at string (date-time)
curl "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "id": "whe_0123456789abcdef01234567",
  "url": "https://studio.example.com/hooks/wunderframe",
  "description": "Studio results",
  "events": [
    "*"
  ],
  "person_events": false,
  "active": true,
  "paused": false,
  "paused_at": null,
  "pause_reason": null,
  "failures": 0,
  "last_success_at": "2026-11-05T09:03:00.000Z",
  "last_failure_at": null,
  "last_error": null,
  "secrets": [
    {
      "role": "current",
      "created_at": "2026-11-01T08:00:00.000Z",
      "expires_at": null,
      "hint": "…x9Qa"
    }
  ],
  "created_at": "2026-11-01T08:00:00.000Z",
  "updated_at": "2026-11-01T08:00:00.000Z"
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Change a webhook endpoint

PATCH /webhooks/{id} integrations

Only what you send changes: url, events, description, active, person_events.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Request body required

  • url string (uri)

    https only; no private, loopback or link-local address.

  • events string[]
  • description string

    Up to 200 characters

  • active boolean
  • person_events boolean

    Send the individual activity of bridged attendees, named by their sub. Default false.

Responses

  • 200 The endpoint as it is now.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (200)
  • id string
  • url string
  • description string
  • events string[]
  • person_events boolean
  • active boolean
  • paused boolean
  • paused_at string (date-time) or null
  • pause_reason string or null

    One of deliveries_failing, receiver_gone, null

  • failures integer

    Failed attempts in a row.

  • last_success_at string (date-time) or null
  • last_failure_at string (date-time) or null
  • last_error string or null
  • secrets object[]
    4 fields in secrets
    • role string

      One of current, previous

    • created_at string (date-time)
    • expires_at string (date-time) or null
    • hint string

      The last four characters.

  • created_at string (date-time)
  • updated_at string (date-time)
curl -X PATCH "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "events": [
    "poll.results",
    "quiz.finished",
    "room.checkin"
  ]
}'
Response 200
{
  "id": "whe_0123456789abcdef01234567",
  "url": "https://studio.example.com/hooks/wunderframe",
  "description": "Studio results",
  "events": [
    "*"
  ],
  "person_events": false,
  "active": true,
  "paused": false,
  "paused_at": null,
  "pause_reason": null,
  "failures": 0,
  "last_success_at": "2026-11-05T09:03:00.000Z",
  "last_failure_at": null,
  "last_error": null,
  "secrets": [
    {
      "role": "current",
      "created_at": "2026-11-01T08:00:00.000Z",
      "expires_at": null,
      "hint": "…x9Qa"
    }
  ],
  "created_at": "2026-11-01T08:00:00.000Z",
  "updated_at": "2026-11-01T08:00:00.000Z"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Delete a webhook endpoint

DELETE /webhooks/{id} integrations

Events still queued for it are cancelled.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Responses

  • 200 Deleted.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
Response fields (200)
  • deleted boolean
curl -X DELETE "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "deleted": false
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Rotate the signing secret

POST /webhooks/{id}/rotate integrations

A new secret, returned this once. For 24 hours every delivery carries two v1= signatures (new and old), so you can switch your receiver without missing one.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Responses

  • 200 The endpoint and its new secret.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (200)
  • endpoint object
    16 fields in endpoint
    • id string
    • url string
    • description string
    • events string[]
    • person_events boolean
    • active boolean
    • paused boolean
    • paused_at string (date-time) or null
    • pause_reason string or null

      One of deliveries_failing, receiver_gone, null

    • failures integer

      Failed attempts in a row.

    • last_success_at string (date-time) or null
    • last_failure_at string (date-time) or null
    • last_error string or null
    • secrets object[]
      4 fields in secrets
      • role string

        One of current, previous

      • created_at string (date-time)
      • expires_at string (date-time) or null
      • hint string

        The last four characters.

    • created_at string (date-time)
    • updated_at string (date-time)
  • secret string

    Shown this once.

curl -X POST "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567/rotate" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "endpoint": {
    "id": "whe_0123456789abcdef01234567",
    "url": "https://studio.example.com/hooks/wunderframe",
    "description": "Studio results",
    "events": [
      "*"
    ],
    "person_events": false,
    "active": true,
    "paused": false,
    "paused_at": null,
    "pause_reason": null,
    "failures": 0,
    "last_success_at": "2026-11-05T09:03:00.000Z",
    "last_failure_at": null,
    "last_error": null,
    "secrets": [
      {
        "role": "current",
        "created_at": "2026-11-01T08:00:00.000Z",
        "expires_at": null,
        "hint": "…x9Qa"
      }
    ],
    "created_at": "2026-11-01T08:00:00.000Z",
    "updated_at": "2026-11-01T08:00:00.000Z"
  },
  "secret": "whsec_5Hq3m4R0yZ8sV2nK1pL7wX9cB6dF0gJ4tA8eU2iO3rQ"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Send a test delivery

POST /webhooks/{id}/test integrations

A webhook.test event, batched, signed and retried like any other.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Responses

  • 202 Queued.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (202)
  • event_id string or null
curl -X POST "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567/test" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 202
{
  "event_id": "string"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Resume a paused endpoint

POST /webhooks/{id}/resume integrations

A batch is delivered only when the receiver answers { "received": "<batch_id>" } (in the body or its result; spec 78 §4.4): a 2xx alone is retried. After 24 hours of a failing batch (or a 410 / gone: true answer) an endpoint pauses, its queue is cancelled and it gets no new events. Resume takes it back; resend what it missed from the log.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

Responses

  • 200 The endpoint as it is now.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (200)
  • id string
  • url string
  • description string
  • events string[]
  • person_events boolean
  • active boolean
  • paused boolean
  • paused_at string (date-time) or null
  • pause_reason string or null

    One of deliveries_failing, receiver_gone, null

  • failures integer

    Failed attempts in a row.

  • last_success_at string (date-time) or null
  • last_failure_at string (date-time) or null
  • last_error string or null
  • secrets object[]
    4 fields in secrets
    • role string

      One of current, previous

    • created_at string (date-time)
    • expires_at string (date-time) or null
    • hint string

      The last four characters.

  • created_at string (date-time)
  • updated_at string (date-time)
curl -X POST "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567/resume" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "id": "whe_0123456789abcdef01234567",
  "url": "https://studio.example.com/hooks/wunderframe",
  "description": "Studio results",
  "events": [
    "*"
  ],
  "person_events": false,
  "active": true,
  "paused": false,
  "paused_at": null,
  "pause_reason": null,
  "failures": 0,
  "last_success_at": "2026-11-05T09:03:00.000Z",
  "last_failure_at": null,
  "last_error": null,
  "secrets": [
    {
      "role": "current",
      "created_at": "2026-11-01T08:00:00.000Z",
      "expires_at": null,
      "hint": "…x9Qa"
    }
  ],
  "created_at": "2026-11-01T08:00:00.000Z",
  "updated_at": "2026-11-01T08:00:00.000Z"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

List deliveries

GET /webhooks/{id}/deliveries integrations

The endpoint’s batches, newest first, kept 7 days.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

  • limit integer query

    Page size, 1–200.

    1–200. Default 50

  • cursor string query

    The next_cursor of the previous page.

Responses

  • 200 A page of deliveries.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
Response fields (200)
  • items object[] required
    15 fields in items
    • id string

      The batch id (whb_…).

    • count integer
    • types string[]
    • event_ids string[]

      The first 20.

    • status string

      One of pending, delivered, failed, cancelled

    • attempts integer
    • next_at string (date-time) or null
    • last_status integer or null

      The HTTP status of the last attempt; null when none came back.

    • last_error string or null
    • last_attempt_at string (date-time) or null
    • delivered_at string (date-time) or null
    • created_at string (date-time)
    • resend_of string or null
    • redacted boolean

      An erased attendee’s events were taken out of the stored body.

    • body_preview string

      The first 500 characters of the body.

  • next_cursor string or null required

    Pass as cursor for the next page; null on the last page.

curl "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567/deliveries?limit=50" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "items": [
    {
      "id": "whb_0123456789abcdef01234567",
      "count": 3,
      "types": [
        "poll.results",
        "vote.cast"
      ],
      "event_ids": [
        "evt_0123456789abcdef0123456789abcdef"
      ],
      "status": "delivered",
      "attempts": 1,
      "next_at": null,
      "last_status": 200,
      "last_error": null,
      "last_attempt_at": "2026-11-05T09:10:02.000Z",
      "delivered_at": "2026-11-05T09:10:02.000Z",
      "created_at": "2026-11-05T09:10:02.000Z",
      "resend_of": null,
      "redacted": false,
      "body_preview": "{\"batch_id\":\"whb_0123456789abcdef01234567\",\"events\":[…"
    }
  ],
  "next_cursor": null
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Resend a delivery

POST /webhooks/{id}/deliveries/{delivery_id}/resend integrations

The same events with the same event ids, as a new batch (new batch_id), signed afresh. A receiver that took them already drops them by id.

Parameters

  • id string required path

    The webhook endpoint id (whe_…, from GET /webhooks).

  • delivery_id string required path

    The batch id (whb_…, from GET /webhooks/{id}/deliveries).

Responses

  • 202 Queued.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
  • 404 Not found in this workspace.
  • 409 Conflicts with the current state.
Response fields (202)
  • delivery_id string
curl -X POST "https://www.wunderframe.com/api/v1/webhooks/whe_0123456789abcdef01234567/deliveries/string/resend" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 202
{
  "delivery_id": "string"
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Get the JWS public keys

GET /webhooks/keys integrations

The workspace’s public keys for X-Wunderframe-JWS: a JWK set, newest first, a coming key included (active_from in the future). Refetch it when a JWS names an unknown kid, and at least daily. Also in the Studio connect answer (webhook_keys).

Responses

  • 200 The JWK set.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • keys object[]
    9 fields in keys
    • kty "EC"
    • crv "P-256"
    • x string
    • y string
    • kid string
    • alg "ES256"
    • use "sig"
    • active_from string (date-time)
    • expires_at string (date-time) or null
  • jwks_path string or null

    /api/v1/webhooks/jwks/<jwks_id>: the same set without credentials (absent on the public route itself).

curl "https://www.wunderframe.com/api/v1/webhooks/keys" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0",
      "kid": "wf-0123456789abcdef",
      "alg": "ES256",
      "use": "sig",
      "active_from": "2026-11-01T08:00:00.000Z",
      "expires_at": null
    }
  ]
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Get the JWS public keys without a key

GET /webhooks/jwks/{jwks_id} none

The same JWK set as GET /webhooks/keys, WITHOUT credentials, for a verifier that can only fetch a JWKS URL (a RaisinDB engine function’s verifyJwt). jwks_id is random (wfk_ + 32 hex): take the path from jwks_path in GET /webhooks/keys or the Studio connect answer, and join it with the base address you connected to. Public keys only; cached 5 minutes.

Parameters

  • jwks_id string required path

    The key set’s public id, wfk_ + 32 hex.

Responses

  • 200 The JWK set.
  • 404 Not found in this workspace.
Response fields (200)
  • keys object[]
    9 fields in keys
    • kty "EC"
    • crv "P-256"
    • x string
    • y string
    • kid string
    • alg "ES256"
    • use "sig"
    • active_from string (date-time)
    • expires_at string (date-time) or null
  • jwks_path string or null

    /api/v1/webhooks/jwks/<jwks_id>: the same set without credentials (absent on the public route itself).

curl "https://www.wunderframe.com/api/v1/webhooks/jwks/jwks_id" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0",
      "kid": "wf-0123456789abcdef",
      "alg": "ES256",
      "use": "sig",
      "active_from": "2026-11-01T08:00:00.000Z",
      "expires_at": null
    }
  ]
}
Error example
Response 404
{
  "error": {
    "code": "not_found",
    "message": "Not found in this workspace."
  }
}

Rotate the JWS key

POST /webhooks/keys/rotate integrations

A new key, published now and signing in 24 hours; the old one signs until then and stays published 24 hours after. immediate: true (a leaked key): the new key signs now and the old one is dropped at once.

Request body required

  • immediate boolean

Responses

  • 200 The JWK set as it is now.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • keys object[]
    9 fields in keys
    • kty "EC"
    • crv "P-256"
    • x string
    • y string
    • kid string
    • alg "ES256"
    • use "sig"
    • active_from string (date-time)
    • expires_at string (date-time) or null
  • jwks_path string or null

    /api/v1/webhooks/jwks/<jwks_id>: the same set without credentials (absent on the public route itself).

curl -X POST "https://www.wunderframe.com/api/v1/webhooks/keys/rotate" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "immediate": false
}'
Response 200
{
  "keys": [
    {
      "kty": "EC",
      "crv": "P-256",
      "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
      "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0",
      "kid": "wf-0123456789abcdef",
      "alg": "ES256",
      "use": "sig",
      "active_from": "2026-11-01T08:00:00.000Z",
      "expires_at": null
    }
  ]
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Get the join-token issuer

GET /identity/issuer integrations

Responses

  • 200 The issuer, or null.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • issuer object or any or null
curl "https://www.wunderframe.com/api/v1/identity/issuer" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "issuer": {
    "iss": "https://events.example.com",
    "keys": [
      {
        "kid": "site-key-1",
        "jwk": {
          "kty": "EC",
          "crv": "P-256",
          "x": "f83O…",
          "y": "x_FE…"
        },
        "added_at": "2026-11-01T08:00:00.000Z",
        "expires_at": null
      }
    ],
    "updated_at": "2026-11-01T08:00:00.000Z"
  }
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Register or rotate the join-token issuer

PUT /identity/issuer integrations

iss: your site’s origin, exactly as your tokens’ iss claim says it. jwk: an EC P-256 PUBLIC key (never send d). Sending a new key for the same origin is a rotation: the previous key keeps verifying for 24 hours. Another origin replaces the issuer.

Request body required

  • iss string required

    Your site’s origin: https://host[:port], nothing after it.

  • jwk object required
    5 fields in jwk
    • kty "EC" required
    • crv "P-256" required
    • x string required
    • y string required
    • kid string

      Default: the key’s RFC 7638 thumbprint. Put it in your tokens’ header.

Responses

  • 200 The issuer as it is now.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • issuer object
    3 fields in issuer
    • iss string
    • keys object[]
      4 fields in keys
      • kid string
      • jwk object
      • added_at string (date-time)
      • expires_at string (date-time) or null

        A rotated-out key verifies until then.

    • updated_at string (date-time)
curl -X PUT "https://www.wunderframe.com/api/v1/identity/issuer" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "iss": "https://events.example.com",
  "jwk": {
    "kty": "EC",
    "crv": "P-256",
    "x": "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU",
    "y": "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0",
    "kid": "site-key-1"
  }
}'
Response 200
{
  "issuer": {
    "iss": "https://events.example.com",
    "keys": [
      {
        "kid": "site-key-1",
        "jwk": {
          "kty": "EC",
          "crv": "P-256",
          "x": "f83O…",
          "y": "x_FE…"
        },
        "added_at": "2026-11-01T08:00:00.000Z",
        "expires_at": null
      }
    ],
    "updated_at": "2026-11-01T08:00:00.000Z"
  }
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Remove the join-token issuer

DELETE /identity/issuer integrations

Join tokens are refused from now on; guests still join anonymously.

Responses

  • 200 Removed.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • deleted boolean
curl -X DELETE "https://www.wunderframe.com/api/v1/identity/issuer" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "deleted": false
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Erase a bridged attendee

DELETE /participants/{sub} integrations

Everything this workspace holds under the attendee who joined with your token’s sub (the engine user key u_…): their posts with their photos and videos, votes, survey answers, their name on quiz boards, webhook events still queued that name them, the sub in stored batch bodies, the text of their questions wherever it was queued or sent (a question.removed with reason: erased tells your endpoints to drop their copy), and the link to your sub. Idempotent.

Parameters

  • sub string required path

    The sub your join tokens carry for this attendee: u_ + 22 letters and digits.

Responses

  • 200 What was erased.
  • 400 The request is invalid — details.field names the field when there is one.
  • 401 Missing or invalid API key.
  • 403 The key lacks the scope, or the role is read-only.
Response fields (200)
  • participant_id string

    sha256 hex of "<workspace id>:<sub>".

  • known boolean

    Whether this attendee had joined with a token.

  • posts integer
  • votes integer
  • survey_responses integer
  • quiz_players integer
  • webhook_events integer

    Queued events taken out or blanked (their sub, their questions’ text).

  • webhook_batches integer

    Stored batch bodies redacted (their events, their questions’ text).

curl -X DELETE "https://www.wunderframe.com/api/v1/participants/sub" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "participant_id": "3f1c…",
  "known": true,
  "posts": 2,
  "votes": 5,
  "survey_responses": 1,
  "quiz_players": 1
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}