页面简介
Configure event-driven webhooks with granular event subscriptions using Webhooks V2
正文摘录
Overview Webhooks V2 provides an improved webhook system with granular event subscriptions and enhanced security. You can subscribe to specific meeting lifecycle events and receive real-time notifications at your configured endpoint. Webhooks V2 replaces the legacy webhook system. Webhooks V1 is deprecated and its Developer settings field is read-only, so all new webhooks - including team-wide Super Admin webhooks - are created here. Events Supported Webhooks V2 supports the following events: Event NameDescriptionmeeting.transcribedTriggers when a meeting has been transcribed and the transcript is readymeeting.summarizedTriggers when a meeting summary has been generatedmeeting.bot_joinedTriggers when the Fred bot joins a meeting You can subscribe to one or more events per webhook. Only events you subscribe to will be delivered. The Event Subscriptions list on the setup page is the source of truth for which events are currently available. Setting Up Webhooks V2 1Visit the Webhooks V2 configuration page2Enter a valid HTTPS URL that accepts POST requests in the Webhook URL field3Optionally, enter a Signing Secret for payload signature verification4Under Event Subscriptions, select the events you want to subscribe to5Optionally, turn on Resend when a meeting’s notes change to receive meeting.transcribed and meeting.summarized again when a meeting’s transcript or summary changes - see Resends After a Meeting Changes6Save your configuration7Click Send Test Event to confirm your endpoint is reachable and validating payloads correctly Webhooks are delivered for meetings you own. If you are a Super Admin on an Enterprise team, events for all meetings owned by your team are also escalated to your webhook - see Super Admin. Webhook Payload Each webhook notification is sent as a POST request with a JSON payload containing the following fields: eventStringrequiredThe event type that triggered the webhook (e.g., meeting.transcribed, meeting.summarized, meeting.bot_joined) timestampNumberrequiredUnix timestamp in milliseconds of when this delivery was sent. Each retry carries a new value, so use reprocessed_at rather than timestamp to order changes to a meeting. meeting_idStringrequiredIdentifier for the meeting that the event relates to. This is the same as the transcript ID used throughout the Fireflies API. client_reference_idStringCustom identifier set by you during upload. Use this to correlate webhook events with your uploads. reprocessed_atNumberOnly present when the event is resent because the meeting’s transcript or summary changed. Unix timestamp in milliseconds of that change. It stays the same across retries of the resend, and every later change to the meeting has a later value. Omitted on the first delivery of an event. Example Payloads Meeting Transcribed { "event": "meeting.transcribed", "timestamp": 1710876543210, "meeting_id": "ASxwZxCstx", "client_reference_id": "be582c46-4ac9-4565-9ba6-6ab4264496a8" } Meeting Summarized { "event": "meeting.summarized", "timestamp": 1710876789456, "meeting_id": "ASxwZxCstx" } Meeting Bot Joined { "event": "meeting.bot_joined", "timestamp": 1781258655914, "meeting_id": "01KTXMH9V8RPY1B4DTYKB27WYR" } Meeting Summarized (resend) reprocessed_at is only sent on a resend, when the Resend when a meeting’s notes change setting is on and an already-delivered meeting’s summary changes. First deliveries never include it. See Resends After a Meeting Changes. { "event": "meeting.summarized", "timestamp": 1791465988113, "meeting_id": "01M48P0J698KJ3J0P0Q3686J31", "reprocessed_at": 1791465987256 } Resends After a Meeting Changes By default, each event is sent once per meeting. A meeting’s transcript or summary can change after it was delivered, for example when the meeting is reprocessed, its language is changed, its notes are regenerated or a refined summary is applied. To keep your copy up to date, turn on Resend when a meeting’s notes change on the Webhooks V2 setup page. With the setting on, Fireflies sends meeting.transcribed again when an already-delivered meeting gets a new transcript, and meeting.summarized again when it gets a new summary, for the events you subscribe to. Resends carry reprocessed_at; first deliveries do not. To handle resends: Store the reprocessed_at of the last version you processed for each meeting and event When a payload has a reprocessed_at newer than the stored value, fetch the meeting again and replace your copy Ignore a payload whose reprocessed_at equals or is older than the stored value: it is a retry or an out-of-order delivery of a change you already have Webhook Authentication Webhooks V2 uses HMAC-SHA256 signatures to verify that webhook payloads originate from Fireflies and have not been tampered with in transit. How It Works Each webhook request includes an X-Hub-Signature header containing a SHA-256 HMAC signature of the request body. The signature is computed using the signing secret you configured during setup. The signature format is: sha256=<hex-encoded-hmac-sha256-digest> Verifying the Signature 1Extract the X-Hub-Signature header from the incoming request2Compute the HMAC-SHA256 digest of the raw request body using your signing secret3Prefix the hex-encoded digest with sha256=4Compare the computed signature with the header value using a timing-safe comparison Verification Examples node.jspythonjavaconst crypto = require('crypto'); function verifyWebhookSignature(payload, signature, secret) { const expectedSignature = 'sha256=' + crypto.createHmac('sha256', secret).update(payload, 'utf8').digest('hex'); const sigBuffer = Buffer.from(signature); const expectedBuffer = Buffer.from(expectedSignature); if (sigBuffer.length !== expectedBuffer.length) { return false; } return crypto.timingSafeEqual(sigBuffer, expectedBuffer); } // Express.js example app.post('/webhook', express.raw({ type: 'application/json' }), (req, res) => { const signature = req.headers['x-hub-signature']; const payload = req.body.toString(); if (!verifyWebhookSignature(payload, signature, 'your_signing_secret')) { return res.status(401).send('Invalid signature'); } const event = JSON.parse(payload); console.log('Received event:', event.event, 'for meeting:', event.meeting_id); res.status(200).send('OK'); }); Request Headers Each webhook delivery includes the following headers: HeaderDescriptionContent-Typeapplication/jsonUser-AgentIdentifies the Fireflies webhook sender, e.g. Fireflies-Webhook/2.0X-Hub-SignatureHMAC-SHA256 signature (only if a signing secret is configured) Delivery Behavior Webhooks are sent as POST requests to your configured URL. The URL must use HTTPS and resolve to a public host; redirects are not followed Your endpoint must respond with a 2xx status code within 30 seconds of the request starting to be considered successful; the TCP connection itself must be established within 10 seconds Failed deliveries are retried up to 5 times with a growing backoff - 30 seconds, 2 minutes, 10 minutes, 30 minutes and 2 hours - so a transient outage of up to ~3 hours is recovered automatically Retries apply to transient failures: failures to connect (connect timeouts, DNS failures, refused or reset connections), unclassified network errors, 429 responses and 5xx responses. Other 4xx responses, TLS/certificate errors and invalid URLs are treated as permanent failures and are not retried If the connection succeeds but your server does not respond within 30 seconds, the delivery is marked failed and not retried: your server most likely received the request, so a retry would duplicate it Migrating from Webhooks V1 If you are using the legacy webhooks system, here is a summary of the key differences: FeatureWebhooks V1Webhooks V2ConfigurationDeveloper Settings page (read-only, no new webhooks)Dedicated setup pageEventsSingle event (Transcription completed)Multiple events (meeting.transcribed, meeting.summarized, meeting.bot_joined)Event selectionAll eventsGranular event subscriptionsPayload formatmeetingId, eventTypemeeting_id, event, timestampSignature headerX-Hub-SignatureX-Hub-SignatureSignature formatsha256=<hex>sha256=<hex> Migration Steps 1Go to the Webhooks V2 setup page2Enter your existing webhook URL3If you used a signing secret, enter it in the Signing Secret field4Select the events you want to subscribe to (choose meeting.transcribed for equivalent V1 behavior)5Save and update your webhook consumer to handle the new payload format and signature header FAQ What is the difference between meeting.transcribed and meeting.summarized?meeting.transcribed fires when the raw transcript is ready and available for viewing. meeting.summarized fires after the AI-generated summary (including action items, notes, and other insights) has been processed. What is meeting.bot_joined used for?meeting.bot_joined fires when the Fred bot successfully joins a meeting. This is useful for triggering real-time workflows as soon as the bot is in the call. Will I receive the same event more than once for a meeting?Only if you turn on Resend when a meeting’s notes change. Fireflies then sends meeting.transcribed and meeting.summarized again when a meeting’s transcript or summary changes, with a reprocessed_at field. See Resends After a Meeting Changes. A failed delivery can also be retried; see Delivery Behavior. Can I subscribe to multiple events?Yes. You can select one or more events during setup. Only events you subscribe to will trigger webhook deliveries. Why am I not receiving webhook notifications?Webhooks are only fired for meetings you own (i.e., you are the organizer_email).Ensure your endpoint accepts POST requests and responds with a 2xx status code within 30 seconds.Verify that you have subscribed to the correct events.If using signature verification, ensure your signing secret matches what is configured.Team-wide webhooks are only supported for the Enterprise tier with the Super Admin role. This allows you to setup one webhook for all meetings owned by your team. Details here