Skip to main content

Base URL

The sidecar binds to port 3001 by default. All endpoints are prefixed with /api.

Authentication

Most endpoints require a JWT bearer token:
Obtain a token via:
  • POST /api/auth/login (username/password)
  • POST /api/auth/local/session (desktop auto-login)
  • GitHub OAuth flow
Tokens expire after 7 days and use HS256 signing.

Auth Levels


Request Format

  • Content-Type: application/json
  • Method: GET, POST, PATCH, DELETE
  • Body: JSON for POST/PATCH requests

Response Format

Success

Lists return JSON arrays. Single items return JSON objects.

Errors


Desktop Client Header

Some endpoints are restricted to the desktop app. They check for:

Real-Time Events

The API provides a Server-Sent Events endpoint for live updates:
See Real-Time Events for details.