Fathom TypeScript SDK

0.0.37 · active · verified Sun Apr 19

The `fathom-typescript` package is Fathom's official TypeScript SDK, providing programmatic access to the Fathom External API. It allows developers to interact with Fathom meetings, teams, and team members, including operations like listing meetings, retrieving recording summaries and transcripts, and managing webhooks. The current stable version is 0.0.37. As an official SDK, it is actively maintained and designed to stay in sync with the Fathom API, though semantic versioning might not be strictly followed before a 1.0 release. It offers both CommonJS and ES Modules support, making it versatile for various JavaScript environments. Key differentiators include its direct integration with the Fathom platform and type-safe access to API resources, reducing common development errors through its comprehensive TypeScript definitions.

Common errors

Warnings

Install

Imports

Quickstart

Initializes the Fathom SDK client with an API key and demonstrates how to list meetings, iterating through potentially paginated results securely.

import { Fathom } from "fathom-typescript";

const fathom = new Fathom({
  security: {
    apiKeyAuth: process.env.FATHOM_API_KEY ?? 'YOUR_API_KEY_HERE',
  },
});

async function run() {
  try {
    const result = await fathom.listMeetings({
      calendarInviteesDomains: [
        "acme.com",
        "client.com"
      ],
      meetingType: "all",
      recordedBy: [
        "ceo@acme.com",
        "pm@acme.com"
      ],
      teams: [
        "Sales",
        "Engineering"
      ]
    });

    if (result) {
      for await (const page of result) {
        console.log("Retrieved meetings for page:", page);
      }
    } else {
      console.log("No meetings found or an empty result was returned.");
    }
  } catch (error) {
    console.error("Error listing meetings:", error);
  }
}

run();

view raw JSON →