docs: Update Cloud API documentation to use V1 endpoint#349
Conversation
- Add V1 API documentation as the primary/recommended approach - Document the new request format (initial_message with content array) - Document the new response format (start task with status progression) - Add migration guide from V0 to V1 API - Keep V0 API documentation with deprecation warnings - Note V0 API removal scheduled for April 1, 2026 The V1 API provides better conversation lifecycle management with status updates during startup (WORKING -> READY). Co-authored-by: openhands <openhands@all-hands.dev>
| ## Migrating from V0 to V1 API | ||
|
|
||
| <Warning> | ||
| The V0 API (`/api/conversations`) is deprecated and scheduled for removal on **April 1, 2026**. |
There was a problem hiding this comment.
Did we ever send any comms about about the April 1 date? I know there are references in the code to an April 1 removal date, but unless all our API users are keenly watching our codebase...
There was a problem hiding this comment.
I don't think we sent any comms, maybe we should. But at least this is better than in the codebase.
all-hands-bot
left a comment
There was a problem hiding this comment.
🟡 Acceptable - Good migration guide and clear examples, but needs formatting fixes and clarification on response fields.
jlav
left a comment
There was a problem hiding this comment.
The one comment about app_conversation_id is true and should be resolved, but otherwise LGTM.
|
@OpenHands check the review comments, fix them if they are worth fixing, and mark them resolved using the graphql api |
|
I'm on it! neubig can track my progress at all-hands.dev |
Address review comment by adding an example of the streaming response format for the /api/v1/app-conversations/stream-start endpoint. Co-authored-by: openhands <openhands@all-hands.dev>
Fix indentation issues with </Tab> closing tags (4 spaces -> 2 spaces), <Tab> opening tags (4 spaces -> 2 spaces), and code blocks (8 spaces -> 4 spaces) in both V1 and V0 API example sections. Co-authored-by: openhands <openhands@all-hands.dev>
Summary of Work CompletedI reviewed the PR comments on PR #349, fixed the actionable issues, pushed the changes, and resolved the review threads via the GitHub GraphQL API. Changes Made (2 commits pushed to
|
Summary
This PR updates the Cloud API documentation to recommend and document the V1 API endpoint (
/api/v1/app-conversations) instead of the deprecated V0 endpoint (/api/conversations).Changes
New V1 API Documentation
initial_message.contentarray/api/v1/app-conversations/stream-start)Migration Guide
V0 API Deprecation
Key Differences
POST /api/conversationsPOST /api/v1/app-conversationsinitial_user_msg(string)initial_message.content(array)repositoryselected_repositoryconversation_idstatusandapp_conversation_idTesting
The V1 API was tested using a real API key:
POST /api/v1/app-conversationsid,status, and eventuallyapp_conversation_idREADYstatus andexecution_status: finishedReferences
openhands/app_server/app_conversation/app_conversation_router.pyopenhands/server/routes/manage_conversations.py@neubig can click here to continue refining the PR