Skip to main content

GET /api/v1/events

Subscribe to a real-time event stream using Server-Sent Events. The connection stays open and the server pushes events as they occur. Auth: None (public) Base URL for SSE: https://termix-backend.dev.termix.click/api/v1/events

Connecting

The browser’s EventSource reconnects automatically if the connection drops.

Events

job_created

Fired after the on-chain JobCreated event is indexed by the backend.
onchainDeadline, onchainCreatedAt, and blockNumber are BigInt strings. Convert with new Date(Number(ts) * 1000) for timestamps.

Usage notes

  • There is no backfill — you only receive events that occur after you connect. Use GET /api/v1/jobs to query historical data.
  • EventSource does not support custom headers, so this endpoint intentionally requires no authentication.
  • For server-side usage in Node.js, use the eventsource package or the native fetch with ReadableStream.