Skip to content

Add V0 to V1 API Migration Guide#362

Draft
jpshackelford wants to merge 1 commit intomainfrom
add-v0-v1-migration-guide
Draft

Add V0 to V1 API Migration Guide#362
jpshackelford wants to merge 1 commit intomainfrom
add-v0-v1-migration-guide

Conversation

@jpshackelford
Copy link
Contributor

Summary

This PR adds a comprehensive migration guide to help users transition from OpenHands V0 APIs to V1 APIs, as requested in OpenHands/OpenHands#12578.

Changes

  • New file: openhands/usage/api/migration.mdx - Complete V0 to V1 migration guide
  • Updated: docs.json - Added migration guide to the Cloud API navigation group

Migration Guide Contents

The guide covers:

Architecture Overview

  • Key architectural change: Conversations and Sandboxes are now decoupled
  • Two levels of API: App Server API and Agent Server API

Benefits of V1 APIs

  • Reliability: 61% reduction in system failures
  • Performance: Lighter-weight runtime with co-located execution
  • Developer Experience: Modern API patterns with dedicated search, filtering, batch operations, webhooks

Endpoint Mapping Tables

Comprehensive tables mapping V0 endpoints to V1 equivalents for:

  • Health & Status
  • Conversation Lifecycle
  • Messaging & Events
  • File Operations
  • Sandbox Management (new in V1)
  • Development Tools
  • Trajectory & Skills

Migration Examples

Code examples showing V0 vs V1 for:

  • Creating conversations
  • Searching conversations
  • Managing sandbox lifecycle

Agent Server API

Documentation on accessing and using the per-sandbox Agent Server API, including:

  • How to obtain the Agent Server URL
  • Authentication with session API key
  • Available endpoints (file, git, conversation, bash, dev tools)

Known Gaps

Documented V0 capabilities without direct V1 equivalents and their workarounds.

Navigation

The migration guide is added to the Integrations > Cloud API group, appearing after the V1 API overview:

  • Cloud API
  • REST API (V1)
  • V0 to V1 Migration Guide ← new

Related Issues

Closes OpenHands/OpenHands#12578


The content is based on the detailed comments in the issue by @jpshackelford and @enyst.

- Create comprehensive migration guide at openhands/usage/api/migration.mdx
- Add migration guide to Cloud API navigation group in docs.json
- Document endpoint mapping from V0 to V1
- Include benefits of V1 APIs (reliability, performance, DX)
- Document new sandbox management endpoints
- Document Agent Server API access and endpoints
- Add migration examples with code snippets
- List known gaps and workarounds

Closes OpenHands/OpenHands#12578

Co-authored-by: openhands <openhands@all-hands.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

V0 to V1 Migration Guide

2 participants