Join an existing conversation using conversation ID and API key authentication. Allows real-time participation in ongoing conversations with streaming responses. The user prompt becomes the next message sent to the AI.
Important for streaming: Use the --no-buffer flag with cURL to enable real-time streaming output.
Enter your API token in the format: Bearer <your_token_here>
ID of the existing conversation to join
"conv_abc123def456"
Message to send when joining the conversation
"Please review the code we discussed earlier"
Research mode to use in the conversation. Must be one of: chat, deep_research, follow_up
chat, deep_research, follow_up "deep_research"
ID of the latest event to resume from
123
Device ID to use for the conversation
"123"
Successfully joined conversation with streaming response
Server-Sent Events stream with real-time conversation updates. Events are serialized using event_to_dict() and sent as SSE format.
{
"type": "oh_event",
"data": {
"id": 1,
"timestamp": "2024-01-15T10:45:00.123Z",
"source": "user",
"message": "Please review this code",
"action": "message",
"args": {
"content": "Please review this code",
"wait_for_response": false
}
}
}{
"type": "oh_event",
"data": {
"id": 2,
"timestamp": "2024-01-15T10:45:30.456Z",
"source": "agent",
"message": "I'll analyze the code for you...",
"action": "message",
"args": {
"content": "I'll analyze the code for you. Let me start by examining the structure...",
"wait_for_response": false
}
}
}{
"type": "oh_event",
"data": {
"id": 3,
"timestamp": "2024-01-15T10:45:35.789Z",
"source": "agent",
"observation": "agent_state_changed",
"content": "",
"extras": {
"agent_state": "RUNNING",
"reason": "Starting code analysis"
},
"success": true
}
}