Reference

Authentication

POST /api/v1/auth/login → JWT bearer token. Send as Authorization: Bearer <token> on every request.

April 1, 2026 4 min read

Every API call requires either an Authorization: Bearer header or — when the cross-app cookie is in play — the omnimark_token cookie. Tokens last 7 days; refresh by re-logging in.

Example: POST /api/v1/auth/login with form-encoded body username=email@org.com&password=••• returns {"access_token": "eyJ...", "token_type": "bearer"}.