Skip to content

API endpoints

HTML endpoints

EndpointMethodDescription
/GETRedirect to /inbox
/inboxGETInbox view
/inbox?folder=FOLDERGETSpecific folder
/thread/<id>GETThread view
/searchGET/POSTSearch interface
/chatGET/POSTAI chat
/settingsGET/POSTUser settings

JSON API

EndpointMethodDescription
/api/emailsGETList emails (JSON)
/api/email/<uid>GETEmail details (JSON)
/api/searchPOSTSearch emails (JSON)
/api/foldersGETList folders (JSON)

HTMX partials

EndpointMethodDescription
/partials/email-listGETEmail list fragment
/partials/email-row/<uid>GETSingle email row
/partials/thread/<id>GETThread fragment

CSRF and request expectations

  • All forms include CSRF tokens.
  • API endpoints require either:
    • a session cookie, or
    • X-Requested-With: XMLHttpRequest header.

Released under the MIT License.