EmailGuard
  • Pricing
Log inRegister
DocumentationAPI ReferenceKnowledge Base

API reference

Download spec

API reference

Guides and endpoint docs

  • SDK clients
  • TypeScript SDK
  • Go SDK
  • Python SDK
  • PHP SDK
  • Ruby SDK
  • MCP client
  • getGet team
  • patchUpdate team
  • getList team members
  • deleteRemove a team member
  • patchUpdate a team member role
  • deleteCancel a pending invite
  • postInvite a team member
  • getList pending team invites
  • getGet billing usage
  • postCreate notification channel
  • deleteDelete notification channel
  • getList notification channels
  • postTest notification channel
  • putUpdate notification channel
  • getList notification events
  • postCreate notification rule
  • deleteDelete notification rule
  • getList notification rules
  • putUpdate notification rule
  • getDetect email characteristics

SDK clients

Choose a published client, authenticate with your team API key, and call /api/v1 with envelope handling where the SDK supports it.

Loading article…

On this page

  • Prerequisites
  • Choose a client
  • Shared credentials
  • Response envelope
  • Operations overview
    • Billing
    • Channels
    • email
    • Events
    • Invites
    • Members
    • Rules
    • Teams
  • Rate limits and quotas
  • API reference
TypeScript SDK

Integrators should use a published client for /api/v1 instead of hand-rolling HTTP. Each client is generated from the same OpenAPI spec as this API reference and targets https://api.emailguard.co.

Current client version: 1.0.0 (all published packages share this semver). The public API exposes 20 operations — listed below and in the sidebar.

Prerequisites

  1. Create a team-scoped API key in Team → Settings → API keys with the scopes you need.

See API key scopes for scope names. Keys use Authorization: Bearer gsk_live_... or X-API-Key.

Choose a client

ClientGuide
TypeScript (npm)TypeScript SDK
Go moduleGo SDK
Python (PyPI)Python SDK
PHP (Composer)PHP SDK
Ruby (RubyGems)Ruby SDK
MCP (AI assistants)MCP integration

Language-specific guides include install commands, quickstart code pulled from the same generator as API reference tabs, and links to every route.

Shared credentials

Most clients accept the same runtime credentials:

VariableRequiredDescription
EMAILGUARD_API_KEYYesTeam-scoped live key (egsk_live_...)

API_KEY is accepted as an alias in most clients.

Response envelope

Successful JSON responses look like:

{
  "code": "SUCCESS",
  "data": { "..." : "..." },
  "message": "OK"
}

The TypeScript SDK and MCP server unwrap data for you. Go, Python, PHP, and Ruby generators return raw HTTP bodies — read data when code is SUCCESS. Each SDK guide explains the pattern for that language.

Operations overview

Endpoints grouped by OpenAPI tag (each links to interactive docs with SDK samples):

Billing

  • Get billing usage

Channels

  • Create notification channel
  • Delete notification channel
  • List notification channels
  • Test notification channel
  • Update notification channel

email

  • Detect email characteristics

Events

  • List notification events

Invites

  • Cancel a pending invite
  • Invite a team member
  • List pending team invites

Members

  • List team members
  • Remove a team member
  • Update a team member role

Rules

  • Create notification rule
  • Delete notification rule
  • List notification rules
  • Update notification rule

Teams

  • Get team
  • Update team

Custom tool routes (/api/v1/tools/*) appear when your deployment registers them in the public spec.

Rate limits and quotas

All clients share the same per-minute limits and monthly API quota. See API rate limiting for 429 handling, Retry-After, and quota headers.

API reference

Use the sidebar for every route, request body, and schema. On each endpoint page, switch language tabs (TypeScript, Python, Go, or Other for PHP/Ruby/cURL) for copy-paste samples generated from your deployment’s OpenAPI document.