Migrate Tasks
Migrate tasks between versions within the same branch. Supports two modes: bulk migration by source version (from_version_id), or migration of specific tasks (task_ids). Target can be explicit (to_version_id) or latest active version (to_latest).
POST
Migrate Tasks Between Versions
Migrate tasks between versions within the same branch. Supports two modes:
- Bulk migration: Migrate all tasks from a source version (
from_version_id) - Specific tasks: Migrate specific tasks (
task_ids)
to_version_id) or the latest active version (to_latest).Body
application/json
Request model for migrating tasks between versions.
Previous
List MessagesList messages for a task in Vercel AI SDK UIMessage format.
This endpoint returns messages transformed from raw SDK events into
a normalized UIMessage format suitable for frontend consumption.
Features:
- Tool merging: tool_use and tool_result are combined into single tool parts
- Complete-units pagination: Never splits tool request/result pairs across pages
- Runtime transformation: Raw SDK messages are transformed on-demand
Args:
task_id: The task ID to filter messages by
limit: Maximum number of complete messages to return (default: 50)
cursor: Opaque cursor string for pagination
direction: Pagination direction - "older" (default) or "newer"
parent_tool_use_id: Filter messages by parent tool use ID (for subagent context)
Returns:
ListMessagesV2Response with UIMessages and pagination info
Next
Migrate Tasks Between Versions