v51

OpenAPI 3.1.0raw.githubusercontent.com2026-08-018486293.2 KB
messages

Create Message

Anthropic Messages API-compatible endpoint.

Supports MCP tool-use loops, sandboxed code execution, and SearXNG web_search in both standalone mode and hybrid mode. Hybrid-mode requests resolve credentials via the platform service and get multi-attempt fallback across the resolved route, tool-loop requests included (fallback applies up to the pre-lock-in point, same as chat).

post/v1/messages

Request body

cache_controlobject nullable
max_tokensinteger required
max_tool_iterationsinteger nullable
mcp_server_idsstring[] nullable
messagesobject[] required
metadataobject nullable
modelstring required
output_formatobject nullable
session_labelstring nullable

Optional caller-supplied label for cost attribution (per run, experiment, or conversation). In hybrid mode it is forwarded onto the platform usage report so spend can be sliced by session without standing up OpenTelemetry. Stripped before the request is forwarded upstream to the provider. Has no effect in standalone mode, where there is no platform to report it to.

stop_sequencesstring[] nullable
streamboolean
temperaturenumber nullable
thinkingobject nullable
tool_choiceobject nullable
toolsobject[] nullable
tools_headerstring nullable
top_kinteger nullable
top_pnumber nullable

Response

Successful Response

{"stackTrail":"paths:/v1/messages:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}