Skip to content

/docs/api

Public API.

All endpoints are unauthenticated GET requests that return JSON, with CORS open. The OpenAPI document is at /openapi.json. Records include dataMode.
<?php$page = ["auth" => none (read-only),"cors" => *,"spec" => /openapi.json,"stream" => /api/v1/stream,];

Stream example

const es = new EventSource("/api/v1/stream");
es.addEventListener("agent", (m) => {
  const e = JSON.parse(m.data); // AgentEvent
  console.log(e.dataMode, e.eventType, e.message);
});