Skip to content
AshenKeep edited this page May 6, 2026 · 1 revision

Magni API Wiki

Welcome to the Magni server API documentation. This wiki covers everything needed to build clients against the Magni backend — including the mobile app.

Contents

Base URL

All endpoints are prefixed with /api. The server always runs HTTPS.

https://YOUR_SERVER_IP:8443/api

Authentication

All endpoints except /api/auth/setup, /api/auth/login, and /api/auth/setup-required require a JWT bearer token:

Authorization: Bearer <token>

Tokens do not expire by default. Store them securely on the client (iOS Keychain, Android Keystore).

Response format

All responses are JSON. Errors follow:

{ "detail": "Error message here" }

HTTP status codes are standard — 200/201 success, 400 bad request, 401 unauthorized, 403 forbidden, 404 not found, 422 validation error.

Clone this wiki locally