API Reference

Interface Purpose
Backend API Thread/run endpoints, server-sent events, actual state/history snapshots
Workflow API Compile and reuse the graph with correctly scoped persistence resources
Session Manager MCP connections and tool distribution
Memory and Recovery APIs Verified memory, recovery decisions, PSO runtime hooks, and policy registries

The combined launcher uses http://localhost:8005 for the backend and http://localhost:8000 for the web UI. Run setup first, then use the request examples in the backend reference.

The backend has no built-in per-user authentication; the Chainlit UI has its own login. Configure deployment access appropriately. Use your configured UI credentials rather than a default password.

Run responses and checkpoint snapshots have endpoint-specific structures. Stream responses contain SSE frames; accepting LangGraph-shaped request fields does not implement every LangGraph server feature. Refer to the actual endpoint contract before integrating a client.

Durable checkpoints require explicit configuration. Keep thread IDs: thread metadata/list entries remain process-local even when state/history persist. Recovery memory and policy interfaces are Python APIs, not additional HTTP routes.


Table of contents


PolyAI Team
Copyright © 2009-2026 Changchun Institute of Applied Chemistry, Chinese Academy of Sciences
Address: No. 5625, Renmin Street, Changchun, Jilin, China. Postal Code: 130022