HTTP endpoints (v1)¶
skeino exposes four route groups — health/info, assistants, threads,
and runs — plus configurable CORS. The application is generated by
create_app, and FastAPI serves interactive OpenAPI docs at
/docs and the raw schema at /openapi.json.
Conventions
- Successful responses return 200, except cancel and delete, which
return 204 with no body. Invalid request bodies return
422; unknown thread/assistant ids return 404; a busy thread under a
non-
enqueuestrategy returns 409. - Path ids (
thread_id,run_id) are UUIDs. - The request bodies and response models below are defined in the
Python API reference under
skeino.schemas.*.
Health & info¶
| Method | Path | Response | Notes |
|---|---|---|---|
GET |
/api/health |
HealthResponse |
Liveness check: {status, version}. |
GET |
/info |
ServerInfoModel |
Server identity and capabilities: {status, name, version} plus langgraph-api's langgraph_py_version, flags and host — LangGraph Studio reads flags to enable in-app tracing. |
GET |
/api/initial-message |
InitialMessageResponse |
Welcome message (welcome_message setting): {message, version}. |
Assistants¶
Prefix: /assistants
| Method | Path | Request | Response | Notes |
|---|---|---|---|---|
POST |
/assistants/search |
AssistantSearchRequest |
list[AssistantModel] |
List/search assistants (paginated, filterable). |
GET |
/assistants/{assistant_id} |
— | AssistantModel |
Assistant metadata. |
GET |
/assistants/{assistant_id}/schemas |
— | GraphSchemaModel |
Input/output/state/config/context JSON schemas. |
GET |
/assistants/{assistant_id}/graph |
— | dict |
Node/edge structure. Query: xray: bool = false. |
GET |
/assistants/{assistant_id}/subgraphs |
— | dict |
Subgraph schemas. Query: recurse: bool = false. |
See Assistants for how ids resolve to your graph.
Threads¶
Prefix: /threads
| Method | Path | Request | Response | Notes |
|---|---|---|---|---|
POST |
/threads |
ThreadCreateRequest |
ThreadModel |
Create a thread (optional id, metadata, if_exists, ttl, seed supersteps). |
POST |
/threads/search |
ThreadSearchRequest |
list[ThreadModel] |
Search by ids/metadata/values/status; paginated. |
GET |
/threads/{thread_id} |
— | ThreadModel |
Metadata plus latest values. |
PATCH |
/threads/{thread_id} |
ThreadPatchRequest |
ThreadModel |
Update thread metadata. |
DELETE |
/threads/{thread_id} |
— | 204 |
Delete the thread, its runs, and its checkpoints. |
POST |
/threads/{thread_id}/copy |
— | ThreadModel |
Fork into a new thread seeded with the source's latest state (shallow; metadata stamped forked_from). |
GET |
/threads/{thread_id}/state |
— | ThreadStateModel |
Latest checkpoint state. Query: subgraphs: bool = false. |
POST |
/threads/{thread_id}/state |
ThreadStateUpdateRequest |
CheckpointConfigModel |
Write/patch state (human-in-the-loop edit); returns the new checkpoint. |
GET |
/threads/{thread_id}/state/{checkpoint_id} |
— | ThreadStateModel |
State at a specific checkpoint (time travel). |
POST |
/threads/{thread_id}/state/checkpoint |
CheckpointConfigModel |
ThreadStateModel |
State at a checkpoint selected by a full config body. |
GET |
/threads/{thread_id}/history |
— | list[ThreadStateModel] |
Checkpoint history. Query: limit (1–1000, default 10), before. |
POST |
/threads/{thread_id}/history |
ThreadStateSearchRequest |
list[ThreadStateModel] |
History via POST (richer filters). |
See Threads & runs for the lifecycle and status values.
Runs¶
Prefix: /threads/{thread_id}
| Method | Path | Request | Response | Notes |
|---|---|---|---|---|
POST |
/threads/{thread_id}/runs |
RunCreateRequest |
RunModel |
Background create — returns immediately with a pending/running run. Header: Location. |
POST |
/threads/{thread_id}/runs/wait |
RunCreateRequest |
output values | Run to completion and return the final graph state values (plus __interrupt__ if it ended parked). Header: X-Tokens-Used. |
POST |
/threads/{thread_id}/runs/stream |
RunCreateRequest |
SSE stream | Stream events (text/event-stream). Header: Content-Location (the run's URL). 409 if an interrupt/rollback run supersedes it while it is still queued. See Streaming. |
GET |
/threads/{thread_id}/runs |
— | list[RunModel] |
List runs. Query: limit, offset, status. |
GET |
/threads/{thread_id}/runs/{run_id} |
— | RunModel |
Fetch a single run. |
GET |
/threads/{thread_id}/runs/{run_id}/join |
— | output values | Wait for a run to finish and return the final graph state values (plus __interrupt__ if it ended parked). |
GET |
/threads/{thread_id}/runs/{run_id}/stream |
— | SSE stream | Join a run's event stream (SDK runs.joinStream). Replays retained events after the Last-Event-ID header (-1 = from the start if still retained; needs stream_resumable: true), then tails live events. Query: stream_mode (single mode, JSON array, or repeated), cancel_on_disconnect (default false). Headers: Location (this stream's URL), Content-Location (the run's URL). 404 unknown thread/run, 409 run pending/running with no task or stream on this server, or cursor predates retained history or is ahead of the run's last event id, 422 malformed Last-Event-ID/stream_mode. See Streaming. |
POST |
/threads/{thread_id}/runs/{run_id}/cancel |
— | 204 |
Cancel an in-flight run. Query: action (interrupt|rollback), wait. |
DELETE |
/threads/{thread_id}/runs/{run_id} |
— | 204 |
Delete a terminal run row (409 if still active). |
Stateless runs¶
No prefix. One-shot invocations that keep nothing: each runs against a thread created and deleted inside the request, so no thread id is needed and none is returned.
| Method | Path | Request | Response | Notes |
|---|---|---|---|---|
POST |
/runs |
RunCreateRequest |
RunModel |
Execute to completion, return run metadata. Header: X-Tokens-Used. Runs synchronously and unlike the thread-scoped background form, since the thread is deleted before the response is returned — there would be nothing left to poll or join against. No Location header: the run's thread no longer exists. |
POST |
/runs/wait |
RunCreateRequest |
graph state | Execute to completion, return the graph's final state. |
POST |
/runs/stream |
RunCreateRequest |
SSE stream | Stream events (text/event-stream), same event sequence as the thread-scoped form. |
POST |
/runs/batch |
list[RunCreateRequest] |
list[graph state] |
Execute each payload on its own ephemeral thread, sequentially, and return the outputs in order. |
checkpoint is rejected with a 400 on these routes — a stateless run has no
history to resume from. Use the thread-scoped routes for anything that needs to
be resumed, inspected, or continued.
Key RunCreateRequest fields¶
A curated quick-reference for the most-used fields. Every request and response
model — including all remaining RunCreateRequest fields — carries a per-field
description in the Python API reference, which is the
authoritative, always-current source. Both request and response models also
render those descriptions in the API explorer and /docs:
although skeino parses request bodies by hand (to tolerate text/plain), their
models are injected into the generated OpenAPI schema so the bodies are fully
documented.
| Field | Type | Default | Meaning |
|---|---|---|---|
assistant_id |
str |
— | Which assistant/graph to run (required). |
input |
JsonValue |
null |
New state to merge in (messages is converted to LangChain messages). |
command |
CommandModel |
null |
Resume an interrupted graph (update/resume/goto). |
checkpoint |
CheckpointConfigModel |
null |
Resume from a specific checkpoint. |
stream_mode |
StreamMode \| list |
["values"] |
Streaming mode(s) — see Streaming. |
multitask_strategy |
enum | "enqueue" |
Behaviour when the thread is busy (enqueue/reject/rollback/interrupt). |
if_not_exists |
enum | "reject" |
"create" to auto-create a missing thread. |
config / context / metadata |
dict |
{} |
Passed through to the graph invocation. |
langsmith_tracer |
LangSmithTracerModel |
null |
{project_name, example_id} — also trace the run into that LangSmith project (Studio sets it). Ignored when tracing is off. |
Provide input or command; if both are sent, command takes precedence.
Some LangGraph Platform options (scheduled runs via after_seconds, webhook)
are accepted by the schema but rejected at runtime as out of scope for v1.
Status values¶
- Thread status:
idle,busy,interrupted,error. A thread isinterruptedwhile its graph waits on aninterrupt()— the pending request is ininterruptson the thread and on its state's tasks, rides the__interrupt__channel of the run's output (runs/wait,runs/join) and of itsvalues/updatesstream events, and the next run resumes it withcommand.resume. - Run status:
pending,running,success,error,timeout,interrupted.
For the exact fields of every request and response model, see the Python API reference.