Environment
- API base:
https://api.v0.dev/v1 - Auth:
Authorization: Bearer <API_KEY> - SDK:
v0-sdk0.16.2(also reproduced with a directfetchmirroring the SDK’s streaming headers)
Endpoint
POST /v1/chats/{chatId}/messages/{messageId}/resume
Request Details
- Method:
POST - URL:
/v1/chats/{chatId}/messages/{messageId}/resume - Headers (aligned with streaming endpoints such as
sendMessage+experimental_stream):Authorization: Bearer ***Accept: text/event-streamCache-Control: no-cacheUser-Agent: v0-sdk/0.1.0(or our app user-agent)
No request body.
Expected Behavior
- If the assistant message is resumable (e.g. stream interrupted), the API should return
200with anSSEbody (same family asexperimental_streamonPOST …/messages). - If not resumable, the API should return a clear 4xx (e.g.
409/422) with a specific error code/message, not a generic500.
Actual Behavior
The API returns an HTTP 500 error with the following response body:
{
"success": false,
"error": {
"type": "internal_server_error",
"message": "An unexpected error occurred"
}
}
tags: [object Object], [object Object]