API Key Authentication

import { Fathom } from 'fathom-typescript';

const fathom = new Fathom({
  security: {
    apiKeyAuth: process.env.FATHOM_API_KEY_AUTH || ""
  }
});

Bearer Token Authentication

import { Fathom } from 'fathom-typescript';

const fathom = new Fathom({
  security: {
    bearerAuth: "YOUR_BEARER_TOKEN"
  }
});

Security Schemes

NameTypeEnvironment Variable
apiKeyAuthapiKeyFATHOM_API_KEY_AUTH
bearerAuthhttpFATHOM_BEARER_AUTH
tokenRequestStandalonehttpFATHOM_TOKEN_REQUEST_STANDALONE

Security Best Practices

  • Use environment variables for credentials
  • Use OAuth for multi-user integrations
  • Rotate API keys regularly
  • Monitor API usage