DocsHTTP APIAPI overview

API overview

Base paths, session requirements, and response behavior.

The public HTTP API is served directly at http://localhost:8080 in development. Production Nginx exposes the same routes below /api.

Authentication model

Application routes use an encrypted session cookie. Mutating routes additionally validate CSRF state. The gateway exchanges browser identity for signed service metadata on internal gRPC calls.

Content type

Send Content-Type: application/json for JSON request bodies. SSE log streams use text/event-stream, and raw log exports use typed application/x-ndjson.

Internal administration

The OpenAPI reference describes public HTTP requests and responses. Cleanup attempts, completion receipts and administrative redrive are separate internal gRPC contracts. Their repair reason and audited principal are not public job fields or HTTP request parameters.

Safe retries

The following commands require Idempotency-Key:

  • POST /auth/register
  • POST /workflows
  • PUT /workflows/{workflow_id}
  • POST /workflows/{workflow_id}/jobs/schedule

Reuse a key only when retrying the same logical command.

Reference

The endpoint reference is generated from the repository's OpenAPI document. It covers paths, parameters, request bodies, and response status codes.