Welcome to the Heglaf Mail API documentation. This API allows you to integrate with Heglaf Mail services.
curl -X POST https://mail.heglaf.org/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "user@heglaf.com", "password": "your-password"}'
const response = await fetch('https://mail.heglaf.org/api/auth/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: 'user@heglaf.com', password: 'your-password' })
});
const { token } = await response.json();
https://mail.heglaf.org/api
Most endpoints require JWT authentication:
Authorization: Bearer <your-jwt-token>