Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 971 Bytes

File metadata and controls

53 lines (41 loc) · 971 Bytes

API

NeoMail exposes two main HTTP surfaces:

  • Browser/session routes under /api/*
  • Programmatic REST routes under /api/v1/*

Authentication

Programmatic routes support:

  • Authorization: Bearer <token>
  • X-API-Key: <token>

API keys are:

  • created per user
  • displayed once
  • stored hashed
  • revocable
  • scope-limited
  • audited with last-used tracking

Current scopes

  • mail:read
  • mail:write
  • drafts:write
  • send:write
  • settings:read
  • settings:write
  • ai:use
  • mcp:access
  • privacy:read
  • privacy:write

Core resource groups

  • /api/v1/auth/me
  • /api/v1/mail/accounts
  • /api/v1/mail/threads
  • /api/v1/mail/search
  • /api/v1/mail/drafts
  • /api/v1/mail/send/draft/:draftId
  • /api/v1/mail/ai/*
  • /api/v1/settings
  • /api/v1/privacy/profiles
  • /api/v1/privacy/exposures
  • /api/v1/privacy/scan
  • /api/v1/privacy/scans/:scanId
  • /api/v1/privacy/exposures/:exposureId/remove
  • /api/v1/privacy/removals