AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How Developers Use Fireflies.ai GraphQL API and Webhooks V2 for Downstream Workflows

최지향 · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Turnkey SaaS integrations for meeting assistants often fall short for engineering teams. Prebuilt connectors for HubSpot, Notion, or Salesforce flatten meeting records into basic markdown text or summary blobs. They strip out critical execution data: millisecond-level sentence timestamps, speaker UUIDs, algorithmic sentiment markers, and structured task tags. For teams building custom enterprise Retrieval-Augmented Generation (RAG) knowledge bases, real-time ticket automation, or centralized audit data lakes, relying on canned UI connectors is an architectural dead end.

Building a resilient, production-grade ingestion pipeline requires coupling Fireflies.ai Webhooks V2 for asynchronous event triggers with the Fireflies.ai GraphQL API for deterministic data extraction.

At 365Finds, our stance is direct: Never treat Fireflies.ai webhook handlers as synchronous data processors. Fireflies enforces an unyielding 30-second HTTP execution timeout with no automatic retries if a TCP connection succeeds but processing lags. The only production-viable architecture is a decoupled event-driven pattern: verify payload signatures, acknowledge the webhook immediately with 200 OK, and delegate all GraphQL extraction and LLM embeddings to an asynchronous message queue.


Architectural Blueprint: Event-Driven Meeting Processing

Connecting Fireflies.ai to private infrastructure involves two decoupled planes:

  1. Ingestion Plane (Push): Fireflies.ai sends an HTTP POST notification to your public HTTPS endpoint when a meeting lifecycle event completes.
  2. Extraction Plane (Pull): Your downstream worker validates the event, reads the meeting_id, and queries https://api.fireflies.ai/graphql with an authorized Bearer token to pull granular, sentence-level dialogue and structured AI outlines.
+------------------+         HTTP POST (Webhook V2)         +----------------------+
|   Fireflies.ai   | -------------------------------------> |   Ingestion Proxy    |
|   Processing     |   Headers: X-Hub-Signature: sha256=... |   (FastAPI/Express)  |
+------------------+                                        +----------------------+
                                                                       |
                                                              1. Verify HMAC
                                                              2. Enqueue Job
                                                              3. Return 200 OK (<50ms)
                                                                       v
+------------------+          GraphQL POST Query            +----------------------+
| Fireflies.ai     | <------------------------------------- |  Asynchronous Worker |
| GraphQL Endpoint |   Query: transcript(id: $id) { ... }   |  (Celery / BullMQ)   |
+------------------+ -------------------------------------> +----------------------+
                               Structured JSON Payload                 |
                                                                       v
                                                            +----------------------+
                                                            | Downstream Targets:  |
                                                            | - Vector DB (Pinecone)|
                                                            | - Data Warehouse     |
                                                            | - Linear / Jira API  |
                                                            +----------------------+

Step 1: Authentication and Rate Limit Quotas

Every query to the Fireflies.ai GraphQL API targets a single endpoint: https://api.fireflies.ai/graphql

Authentication relies on standard Bearer tokens generated within the Fireflies workspace:

  1. Navigate to Integrations > Fireflies API (https://app.fireflies.ai/integrations/custom/fireflies).
  2. Generate and securely copy your API key.
  3. Pass the key in all outbound HTTP requests inside the Authorization header: Authorization: Bearer <API_KEY>.

Rate Limit Topography

Rate limits are strictly enforced and vary significantly across plan tiers. Architecture must account for these boundaries:

Plan TierPer-Minute WindowDaily Limit (UTC Calendar Day)Concurrency / Pooling Model
Free30 requests/min500 requests/daySingle account; first 14 days unlock temporary Pro limits
Pro60 requests/min5,000 requests/daySingle account burst buffer
Business60 requests/min per paid seatNo daily capTeam pooled (up to 1,200 req/min); single user capped at 50% of pool
Enterprise60 requests/min per paid seatNo daily capTeam pooled (up to 2,400 req/min); single user capped at 50% of pool

Every API response exposes quota health via headers: X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset. If your ingestion bursts exceed limits, Fireflies returns an HTTP 429 Too Many Requests containing a Retry-After header (in seconds) and extensions.metadata.retryAfter (epoch timestamp in milliseconds). Downstream workers must implement exponential backoff honoring Retry-After rather than spinning immediately.


Step 2: Configuring Webhooks V2 and Cryptographic Verification

Fireflies Webhooks V1 (TRANSCRIPTION_COMPLETE) is deprecated and read-only. Webhooks V2 introduces granular event subscriptions, standardized payload payloads, and HMAC-SHA256 payload signing.

Event Selection Strategy

Configure endpoints at https://app.fireflies.ai/integrations/api/webhook:

365Finds Recommendation: For internal vector knowledge bases and search indexes, subscribe to meeting.transcribed. Do not delay knowledge ingestion waiting for AI summaries. If your downstream pipeline needs automated task tickets, subscribe to meeting.summarized or listen to both and merge updates idempotently.

Webhook V2 Payload Structure

{
  "event": "meeting.transcribed",
  "timestamp": 1710876543210,
  "meeting_id": "ASxwZxCstx",
  "client_reference_id": "cust-job-88412",
  "reprocessed_at": 1710877990123
}

Note on reprocessed_at: If you enable Resend when a meeting's notes change, Fireflies re-delivers events whenever notes or transcripts are regenerated. Resends always contain reprocessed_at (milliseconds timestamp). If reprocessed_at is less than or equal to the version stored in your database, drop the event to prevent redundant downstream compute.

Cryptographic Signature Verification (HMAC-SHA256)

When you configure a Signing Secret in the Webhooks dashboard, every request includes an X-Hub-Signature header formatted as sha256=<hex_digest>. You must calculate the HMAC-SHA256 digest over the raw byte body of the request and run a constant-time comparison.

Python (FastAPI) Verification and Enqueueing Example

import hmac
import hashlib
import os
from fastapi import FastAPI, Request, HTTPException, status, Header, Response

app = FastAPI()
WEBHOOK_SECRET = os.getenv("FIREFLIES_WEBHOOK_SECRET", "your_signing_secret")

def verify_signature(raw_body: bytes, signature_header: str, secret: str) -> bool:
    if not signature_header or not signature_header.startswith("sha256="):
        return False
    expected_sig = "sha256=" + hmac.new(
        secret.encode("utf-8"),
        raw_body,
        hashlib.sha256
    ).hexdigest()
    return hmac.compare_digest(expected_sig, signature_header)

@app.post("/api/v1/fireflies-webhook")
async def handle_fireflies_webhook(
    request: Request,
    x_hub_signature: str = Header(None)
):
    raw_body = await request.body()
    
    # 1. Constant-time security check
    if not verify_signature(raw_body, x_hub_signature, WEBHOOK_SECRET):
        raise HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
            detail="Invalid signature"
        )
    
    payload = await request.json()
    event_type = payload.get("event")
    meeting_id = payload.get("meeting_id")
    reprocessed_at = payload.get("reprocessed_at")

    # 2. Asynchronous dispatch (Never process GraphQL synchronously here!)
    # Example: redis_queue.enqueue(process_meeting_job, meeting_id, event_type, reprocessed_at)
    print(f"Enqueued meeting {meeting_id} for event {event_type}")

    # 3. Immediately acknowledge within 30-second window
    return Response(content='{"status":"accepted"}', media_type="application/json", status_code=200)

Node.js (Express) Signature Verification Example

const express = require('express');
const crypto = require('crypto');

const app = express();
const WEBHOOK_SECRET = process.env.FIREFLIES_WEBHOOK_SECRET || 'your_signing_secret';

// Use express.raw to preserve raw Buffer for HMAC validation
app.post('/api/v1/fireflies-webhook', express.raw({ type: 'application/json' }), (req, res) => {
  const signature = req.headers['x-hub-signature'];
  if (!signature) {
    return res.status(401).send('Missing X-Hub-Signature header');
  }

  const computedSig = 'sha256=' + crypto
    .createHmac('sha256', WEBHOOK_SECRET)
    .update(req.body)
    .digest('hex');

  const sigBuffer = Buffer.from(signature);
  const compBuffer = Buffer.from(computedSig);

  if (sigBuffer.length !== compBuffer.length || !crypto.timingSafeEqual(sigBuffer, compBuffer)) {
    return res.status(401).send('Tampered or invalid signature');
  }

  const payload = JSON.parse(req.body.toString('utf8'));
  
  // Push to BullMQ / SQS / Celery worker
  // queue.add('extract_meeting', { meetingId: payload.meeting_id, event: payload.event });

  return res.status(200).json({ received: true });
});

Step 3: Deep Extraction via GraphQL API

Once the worker receives the meeting_id, it executes a focused GraphQL query against https://api.fireflies.ai/graphql.

Unlike REST endpoints that force you to pull megabytes of unwanted media files, Fireflies GraphQL queries let developers selectively isolate millisecond timestamps, speaker identification, and AI classification tags.

Targeted Extraction Query

query GetDetailedMeetingTranscript($transcriptId: String!) {
  transcript(id: $transcriptId) {
    id
    title
    dateString
    duration
    transcript_url
    audio_url
    host_email
    organizer_email
    speakers {
      id
      name
    }
    summary {
      overview
      shorthand_bullet
      action_items
      keywords
      outline
      topics_discussed
    }
    sentences {
      index
      speaker_id
      speaker_name
      start_time
      end_time
      text
      raw_text
      ai_filters {
        task
        pricing
        metric
        question
        sentiment
      }
    }
  }
}

Python Extraction Worker Implementation

import requests
import json
import os

FIREFLIES_API_KEY = os.getenv("FIREFLIES_API_KEY")
GRAPHQL_URL = "https://api.fireflies.ai/graphql"

GRAPHQL_QUERY = """
query GetDetailedMeetingTranscript($transcriptId: String!) {
  transcript(id: $transcriptId) {
    id
    title
    dateString
    duration
    speakers {
      id
      name
    }
    summary {
      overview
      action_items
      keywords
    }
    sentences {
      index
      speaker_name
      start_time
      end_time
      text
      ai_filters {
        task
        question
        sentiment
      }
    }
  }
}
"""

def fetch_meeting_details(meeting_id: str) -> dict:
    headers = {
        "Content-Type": "application/json",
        "Authorization": f"Bearer {FIREFLIES_API_KEY}"
    }
    payload = {
        "query": GRAPHQL_QUERY,
        "variables": {"transcriptId": meeting_id}
    }

    response = requests.post(GRAPHQL_URL, json=payload, headers=headers, timeout=15)
    
    if response.status_code == 429:
        retry_seconds = int(response.headers.get("Retry-After", 60))
        raise RuntimeError(f"Rate limited. Back off for {retry_seconds}s")
        
    response.raise_for_status()
    result = response.json()
    
    if "errors" in result:
        raise ValueError(f"GraphQL errors: {result['errors']}")
        
    return result["data"]["transcript"]

# Demonstration execution
if __name__ == "__main__":
    transcript_data = fetch_meeting_details("ASxwZxCstx")
    print(f"Retrieved: {transcript_data['title']} with {len(transcript_data['sentences'])} sentences")

Downstream Pipeline Engineering: 3 Critical Implementation Traps

1. The 30-Second Webhook Guillotine

Fireflies checks connection and execution timeouts aggressively:

2. Multi-User Ingestion Requires Super Admin

A standard user API key and webhook only observe meetings where that user is the organizer (organizer_email). In corporate workspaces, engineering teams need a single ingest point for all engineering, product, and sprint calls across dozens of employees.

3. Sentence Chunking for Vector Databases (RAG)

Do not dump the full transcript text into an embedding model. Use the sentences block to construct semantically coherent chunks bounded by speaker transitions and timestamps:

def chunk_transcript_by_speaker(sentences: list, max_words: int = 250):
    chunks = []
    current_chunk = []
    current_speaker = None
    current_word_count = 0

    for s in sentences:
        speaker = s.get("speaker_name", "Unknown")
        text = s.get("text", "").strip()
        word_count = len(text.split())

        if (speaker != current_speaker or current_word_count + word_count > max_words) and current_chunk:
            chunks.append({
                "speaker": current_speaker,
                "start_time": current_chunk[0]["start_time"],
                "end_time": current_chunk[-1]["end_time"],
                "content": " ".join([item["text"] for item in current_chunk])
            })
            current_chunk = []
            current_word_count = 0

        current_speaker = speaker
        current_chunk.append(s)
        current_word_count += word_count

    if current_chunk:
        chunks.append({
            "speaker": current_speaker,
            "start_time": current_chunk[0]["start_time"],
            "end_time": current_chunk[-1]["end_time"],
            "content": " ".join([item["text"] for item in current_chunk])
        })

    return chunks

By embedding speaker-bounded chunks labeled with start_time and end_time, enterprise RAG applications can cite the exact audio playback timestamp when answering executive queries.


365Finds Evaluation Verdict

Fireflies.ai provides one of the cleanest developer ergonomics in the conversational intelligence market. Its pure GraphQL schema avoids the bloated payload overhead of legacy REST APIs, and Webhooks V2 solves the fragile single-event limitation of V1.

However, organizations evaluating Fireflies.ai for mission-critical automation must accept two non-negotiable architectural compromises:

  1. Centralized Ingestion Tax: If you need org-wide automated ingestion without forcing individual team members to register personal webhooks, you are priced into the Enterprise tier for Super Admin role escalation.
  2. Asynchronous Architecture Overhead: Because Fireflies will not retry deliveries that hang past 30 seconds on your receiver, you cannot write lightweight serverless functions that do synchronous inline transformations. You must maintain an intermediate message broker (SQS, RabbitMQ, or Redis).

When architected with decoupled event queues and fine-grained GraphQL sentence filters, Fireflies.ai serves as an exceptionally robust data ingestion backbone for proprietary corporate knowledge engines.


References