v1
latestSwagger 2.02026-07-175445133.1 KBclaude
Create Claude messages using CLI
Creates a completion using the claude CLI tool as a subprocess, supporting both streaming and non-streaming responses, with resume functionality
post/v1/claude/messages
Request body
Example request
{
"disable_tools": true,
"fork": true,
"max_turns": 10,
"model": "claude-3-5-sonnet-20241022",
"prompt": "Help me debug this error",
"resume": true,
"stream": true,
"suppress_events": true,
"system_prompt": "You are a helpful coding assistant",
"working_directory": "/workspace/my-project"
}Response
OK
Example response
{
"is_last": true,
"response": "I can help you debug that error..."
}