Heglaf Mail API Documentation

Welcome to the Heglaf Mail API documentation. This API allows you to integrate with Heglaf Mail services.

Quick Start

curl -X POST https://mail.heglaf.org/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "user@heglaf.com", "password": "your-password"}'

Base URL

https://mail.heglaf.org/api

Authentication

Most endpoints require JWT authentication:

Authorization: Bearer <your-jwt-token>

Authentication

Login, registration, and token management

Messages

Read, send, and manage emails

TOTP

Two-factor authentication setup

OAuth 2.0

Create applications and integrate with OAuth