AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Programmatically Fetch Fireflies.ai Transcripts, Summaries, and Action Items with GraphQL and Webhooks

矢嶋雄基 · 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

Automating the pipeline between voice conversations and internal systems—such as knowledge bases, CRM platforms, custom data warehouses, and issue trackers—often begins with meeting recording tools. For software engineering and technical operations teams integrating Fireflies.ai, the default impulse is frequently to poll REST-style endpoints or periodically crawl export files. That approach quickly runs into rate limit exhaustion, unpredictable sync lag, and bloated payloads.

Fireflies.ai provides a developer stack centered on a dedicated GraphQL API (https://api.fireflies.ai/graphql) combined with Webhooks V2. At 365Finds, our direct recommendation is clear: build an asynchronous, event-driven pipeline anchored on Webhooks V2 event subscriptions, and execute surgical, field-level GraphQL queries only after processing has fully concluded. Never poll the API for completed meetings, and subscribe to meeting.summarized rather than meeting.transcribed if your target data includes AI summaries or action items.

This guide details the architectural design, security handshakes, schema structures, and concrete implementations required to deploy a production-grade integration.


Architecture: The Event-Driven Ingestion Pipeline

Relying on scheduled cron jobs to poll meeting records is inefficient because audio transcription and AI summarization are asynchronous, multi-stage background processes. A meeting might take anywhere from thirty seconds to several minutes to process depending on duration and platform load.

The optimal data ingestion pipeline follows four decoupled phases:

[Fireflies Audio Processing]
            │
            ▼
[AI Summarization Engine]
            │
            ▼
[Webhooks V2: meeting.summarized] ──(HTTP POST + HMAC SHA-256)──► [Ingestion Webhook Receiver]
                                                                        │
                                                                   (200 OK ACK)
                                                                        │
                                                                        ▼
                                                                [Async Task Queue]
                                                                        │
                                                                        ▼
[Fireflies GraphQL Endpoint] ◄──(POST query Transcript($id))──── [Worker Service]
            │
    (Surgical Payload:
     sentences, summary, action_items)
            │
            ▼
[Internal Knowledge Base / Jira / Data Warehouse]

Critical Architectural Decisions

  1. Event Selection (meeting.summarized vs. meeting.transcribed):
    Fireflies.ai fires meeting.transcribed as soon as speech-to-text finishes. At that exact moment, the AI summary engine is often still computing. If your worker fetches meeting data upon receiving meeting.transcribed, the summary block—including action_items, overview, and shorthand_bullet—will frequently return null or empty. If your target requires AI recaps or action items, subscribe to meeting.summarized.
  2. Immediate Webhook Acknowledgment:
    The Fireflies webhook dispatcher enforces a strict 30-second timeout window. If your endpoint performs the subsequent GraphQL fetch, heavy parsing, or downstream database updates synchronously within the HTTP handler, network latency can easily cause the request to time out. When a timeout occurs on an established connection, Fireflies marks the delivery as failed and does not retry it. Always validate the HMAC signature, acknowledge the request with HTTP 200 OK immediately, and push the payload to a background worker or queue (such as Redis, SQS, or RabbitMQ).
  3. Workspace Permissions (The Super Admin Factor):
    By default, Fireflies API keys and Webhook subscriptions only deliver events for meetings owned by the authenticated user (organizer_email). If you are designing an engineering-wide or enterprise ingestion pipeline to capture calls across the entire team, the API key must belong to a Super Admin on an Enterprise plan.

Step 1: Authentication and Webhook Setup

Obtaining API Credentials

  1. Navigate to the Fireflies dashboard at app.fireflies.ai.
  2. Go to Integrations > Fireflies API.
  3. Generate and copy your API Key.
  4. Keep this key secure in your secret management system. Every request to https://api.fireflies.ai/graphql requires the HTTP header:
    Authorization: Bearer <YOUR_API_KEY>
    Content-Type: application/json
    

Configuring Webhooks V2

Fireflies has deprecated Webhooks V1 (which sent a singular legacy payload without granular controls). All new integrations must use Webhooks V2:

  1. Open the Webhooks V2 configuration page.
  2. Enter your publicly accessible HTTPS endpoint (e.g., https://api.yourdomain.com/webhooks/fireflies). Fireflies does not follow HTTP redirects and requires valid TLS certificates.
  3. Configure a Signing Secret. This generates an HMAC-SHA256 signature in every incoming request header (X-Hub-Signature).
  4. Under Event Subscriptions, select meeting.summarized (and meeting.transcribed only if your system specifically requires raw text prior to summary generation).
  5. Toggle Resend when a meeting's notes change if you want your system to receive updates when a meeting transcript is edited, re-transcribed in another language, or re-summarized.

Step 2: Implementing the Webhook Receiver

Fireflies sends webhook payloads as HTTP POST requests with a JSON body. The payload includes:

Node.js (Express) Implementation

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

const app = express();
const SIGNING_SECRET = process.env.FIREFLIES_WEBHOOK_SECRET;

// Use express.raw to preserve the exact raw body for signature verification
app.post(
  '/webhooks/fireflies',
  express.raw({ type: 'application/json' }),
  (req, res) => {
    const rawPayload = req.body.toString('utf8');
    const signatureHeader = req.headers['x-hub-signature'];

    // 1. Verify HMAC-SHA256 signature
    if (!signatureHeader || !SIGNING_SECRET) {
      return res.status(401).send('Missing signature or signing secret configuration.');
    }

    const expectedSignature =
      'sha256=' +
      crypto
        .createHmac('sha256', SIGNING_SECRET)
        .update(rawPayload, 'utf8')
        .digest('hex');

    const expectedBuffer = Buffer.from(expectedSignature);
    const receivedBuffer = Buffer.from(signatureHeader);

    if (
      expectedBuffer.length !== receivedBuffer.length ||
      !crypto.timingSafeEqual(expectedBuffer, receivedBuffer)
    ) {
      return res.status(401).send('Invalid signature.');
    }

    // 2. Parse payload
    const eventData = JSON.parse(rawPayload);
    const { event, meeting_id, reprocessed_at } = eventData;

    // 3. Immediately acknowledge to avoid 30s timeout
    res.status(200).json({ received: true });

    // 4. Dispatch processing asynchronously
    if (event === 'meeting.summarized') {
      enqueueMeetingFetchTask({
        meetingId: meeting_id,
        reprocessedAt: reprocessed_at || null,
      });
    }
  }
);

function enqueueMeetingFetchTask(task) {
  // Push task to a queue (e.g. BullMQ, Celery, or in-memory runner)
  console.log(`Enqueued fetch task for meeting: ${task.meetingId}`);
}

app.listen(3000, () => console.log('Webhook server running on port 3000'));

Python (FastAPI / Starlette) Implementation

import hmac
import hashlib
import json
from fastapi import FastAPI, Request, HTTPException, BackgroundTasks
from fastapi.responses import JSONResponse

app = FastAPI()
SIGNING_SECRET = "your_webhook_signing_secret"

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

async def process_meeting_summary(meeting_id: str, reprocessed_at: int | None):
    # Asynchronous worker function to trigger GraphQL query
    print(f"Triggering GraphQL fetch for meeting ID: {meeting_id}")

@app.post("/webhooks/fireflies")
async def handle_fireflies_webhook(request: Request, background_tasks: BackgroundTasks):
    raw_body = await request.body()
    signature = request.headers.get("X-Hub-Signature", "")

    if not verify_signature(raw_body, signature):
        raise HTTPException(status_code=401, detail="Invalid signature")

    payload = json.loads(raw_body.decode("utf-8"))
    event_type = payload.get("event")
    meeting_id = payload.get("meeting_id")
    reprocessed_at = payload.get("reprocessed_at")

    if event_type == "meeting.summarized" and meeting_id:
        background_tasks.add_task(process_meeting_summary, meeting_id, reprocessed_at)

    return JSONResponse(status_code=200, content={"status": "accepted"})

Handling Resends and Deduplication

When "Resend when a meeting's notes change" is enabled, Fireflies dispatches a new meeting.summarized webhook whenever a summary is regenerated.


Step 3: Fetching Data via the Fireflies GraphQL API

Once the webhook triggers your worker service, make a POST request to https://api.fireflies.ai/graphql. The GraphQL schema allows you to retrieve exactly the fields your downstream systems require, avoiding excess payload transfer.

1. Fetching a Single Meeting's Transcript and Summary

To pull full speaker-diarized transcripts along with AI summaries and action items, query the transcript field using the meeting_id as the id argument:

query GetMeetingDetails($transcriptId: String!) {
  transcript(id: $transcriptId) {
    id
    title
    dateString
    duration
    organizer_email
    participants
    
    # AI Summary and Structured Insights
    summary {
      overview
      action_items
      shorthand_bullet
      gist
      bullet_gist
      keywords
      topics_discussed
    }

    # Speaker Directory
    speakers {
      id
      name
    }

    # Speaker-Diarized Transcript Sentences
    sentences {
      index
      speaker_name
      speaker_id
      start_time
      end_time
      text
      raw_text
    }
  }
}

Variables:

{
  "transcriptId": "ASxwZxCstx"
}

2. Understanding Core Schema Fields

Field PathData TypeEngineering Purpose & Characteristics
summary.action_itemsStringAI-extracted tasks and next steps. Rendered as formatted text/markdown containing assignees and tasks.
summary.overviewStringHigh-level comprehensive summary of the discussion.
summary.gistStringUltra-concise single-sentence summary of the meeting.
summary.bullet_gistStringQuick bulleted breakdown prefixed with thematic context.
sentences.textStringCleaned and finalized transcription text for the specific sentence.
sentences.speaker_nameStringDiarized speaker name identified by voice print or calendar match.
sentences.start_timeStringMillisecond offset from start of call (e.g., "1240").
sentences.end_timeStringMillisecond offset marking sentence completion.
audio_urlStringSecure pre-signed URL to download audio. Expires after 24 hours (requires Pro+).

[!TIP] Payload Size Optimization: Do not request sentences if you only need action items for an issue tracker. For an hour-long meeting, the sentences array can contain thousands of records, swelling the response from 5 KB to over 500 KB. Only select the sentences field when indexing text for full-text search or vector embeddings.


Step 4: Batch Fetching and Historical Backfilling

When building historical syncs or recovering from webhook delivery interruptions, use the transcripts query. The API allows filtering by date ranges, user, or keywords.

query FetchMeetingBatch(
  $limit: Int
  $skip: Int
  $fromDate: DateTime
  $toDate: DateTime
) {
  transcripts(
    limit: $limit
    skip: $skip
    fromDate: $fromDate
    toDate: $toDate
  ) {
    id
    title
    dateString
    duration
    summary {
      action_items
      overview
    }
  }
}

Variables:

{
  "limit": 50,
  "skip": 0,
  "fromDate": "2026-10-01T00:00:00.000Z",
  "toDate": "2026-10-27T00:00:00.000Z"
}

Pagination Rules


Step 5: Downstream Processing and Workflows

Once the GraphQL query returns the meeting data, downstream tasks typically split into two paths:

1. Parsing Action Items into Work Tracking Systems

The summary.action_items field returns a markdown or newline-delimited list of tasks generated by Fireflies AI. A common transformation pipeline:

2. Structuring Diarized Sentences for RAG and Vector Search

If feeding an enterprise Retrieval-Augmented Generation (RAG) system:


Rate Limits, Errors, and Operational Guardrails

Understanding platform constraints prevents service degradation and dropped records.

Rate Limits by Subscription Plan

Subscription PlanRate Limit (Per Minute)Daily Request CapArchitecture Recommendation
Free30 req/min500 req/daySuitable only for local prototyping. Daily cap exhausts quickly during backfills.
Pro60 req/min5,000 req/dayHandles moderate personal or small team automation.
Business60 req/min pooled per paid seat (max 1,200)No daily capProduction-ready for departmental workflows.
Enterprise60 req/min pooled per paid seat (max 2,400)No daily capEnterprise standard. Required if using Super Admin team-wide webhooks.

Monitoring Rate Limit Headers

Every response from https://api.fireflies.ai/graphql includes informative rate limit headers:

[!CAUTION] If a client receives a 429 status code and continues firing requests during the cooldown window, those requests still count against the next window, extending the lock indefinitely. Always pause execution for the duration specified in Retry-After.

Webhook Retry Mechanics

Fireflies handles transient delivery failures (such as DNS errors, dropped TCP connections, 429s, and 5xx responses) with automatic exponential backoff:


365Finds Implementation Checklist

Before moving your Fireflies.ai integration to production, audit your system against this operational checklist:


References