curl --request POST \
--url https://api.zo.computer/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"model_name": "<string>",
"context_paths": [
"<string>"
],
"command_paths": [
"<string>"
],
"context_parts": [
{}
],
"conversation_id": "<string>",
"open_file_path": "<string>",
"open_file_page": 123,
"expanded_paths": [
"<string>"
],
"workspace_overview": "<string>",
"terminal_contents": "<string>",
"restart_point": 123,
"zo_site_config": {},
"mode": "chat"
}
'{
"index": 123,
"part": {
"content": "<string>",
"part_kind": "text"
},
"event_kind": "part_start"
}Send a message and receive a Server-Sent Events stream response. Events include: PartStartEvent, PartDeltaEvent, FunctionToolCallEvent, FunctionToolResultEvent, FinalResultEvent, and model messages.
curl --request POST \
--url https://api.zo.computer/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"model_name": "<string>",
"context_paths": [
"<string>"
],
"command_paths": [
"<string>"
],
"context_parts": [
{}
],
"conversation_id": "<string>",
"open_file_path": "<string>",
"open_file_page": 123,
"expanded_paths": [
"<string>"
],
"workspace_overview": "<string>",
"terminal_contents": "<string>",
"restart_point": 123,
"zo_site_config": {},
"mode": "chat"
}
'{
"index": 123,
"part": {
"content": "<string>",
"part_kind": "text"
},
"event_kind": "part_start"
}Zo API key (zo_sk_...)
User's message/question
Model override
File paths to include as context
Command file paths
Pre-formatted context parts
Continue existing conversation
Currently open file path
Current page in open file
Expanded directory paths
Workspace tree overview
Terminal output to include
Message index to restart from
Site configuration
Agent mode: 'chat' or 'schedule' etc
chat, schedule, sms, email SSE stream of agent events
SSE event indicating the start of a new message part.