---
title: Resolve Task (Async)
description: "Resolves a pending task and processes it in the background. Returns immediately with the assistant message ID. Poll GET /chats/:chatId/messages/:messageId and check `finishReason` to detect completion."
docs_index: /docs/llms.txt
lastUpdated: 2026-11-27
badge: "POST"
---

> For an index of all documentation, see [/docs/llms.txt](/docs/llms.txt).

Resolves a pending task and processes it in the background. Returns immediately with the assistant message ID. Poll GET /chats/:chatId/messages/:messageId and check `finishReason` to detect completion.

#### `POST /v2/chats/{chatId}/messages/resolve/async`

## Usage

```typescript
import { v0 } from 'v0'

const result = await v0.messages.resolveAsync({
  chatId: 'chat_abc123',
  task: {
    type: 'plan-exit-response',
    status: 'approved',
    content: 'Proceed with the implementation.',
  },
})

console.log(result)
```

```bash
curl -X POST "https://api.v0.dev/v2/chats/chat_abc123/messages/resolve/async"   -H "Authorization: Bearer $V0_API_KEY"   -H "Content-Type: application/json"   -d '{
    "task": {
      "type": "plan-exit-response",
      "status": "approved",
      "content": "Proceed with the implementation."
    }
  }'
```

## API Signature

### Request

#### Path Parameters

- `chatId: string` The unique identifier of the chat.
  - **Minimum length:** 1

#### Request Body

- `task: 'confirmed-steps' | 'plan-exit-response' | 'answered-questions' | 'confirmed-permissions' | 'vercel-connect-setup' | 'vercel-connect-authorization'` The task resolution data. Use this when the chat is waiting for user input on the matching task type.
  - **confirmed-steps** Resolves an integration installation task. The agent asked the user to install integrations, MCP presets, or set environment variables. Send this after provisioning the integration on Vercel.
    - `type: 'confirmed-steps'`
    - `connectedIntegrationNames?: string[]` Names of integrations that were successfully connected (e.g. "Neon"). Pass an empty array to skip.
      - **Maximum items:** 100
    - `connectedNpmRegistryIds?: string[]` **Deprecated.** Deprecated. npm registry connections are no longer supported; this field is accepted for compatibility and ignored.
      - **Maximum items:** 100
    - `connectedMcpPresetNames?: ('Linear' | 'Notion' | 'Context7' | 'Sentry' | 'Zapier' | 'Glean' | 'Hex' | 'Sanity' | 'Granola' | 'PostHog' | 'Contentful' | 'Mobbin' | 'Slack' | 'Nitrosend' | 'Datadog')[]` Names of MCP presets that were connected (e.g. "Linear", "Sentry"). Pass an empty array to skip.
    - `appliedScripts?: string[]` Names of scripts that were applied.
    - `addedEnvVars?: string[]` Names of environment variables that were added.
  - **plan-exit-response** Resolves a plan review task. The agent proposed an implementation plan and is waiting for approval.
    - `type: 'plan-exit-response'`
    - `status: 'approved' | 'rejected' | 'request-changes'` Whether the plan is approved, rejected, or needs changes.
    - `content: string` Feedback or instructions for the agent.
      - **Minimum length:** 1
  - **answered-questions** Resolves a question task. The agent asked the user one or more multiple-choice questions.
    - `type: 'answered-questions'`
    - `answers: object[]` Answers to the questions the agent asked.
      - **Minimum items:** 1
      - `item: object`
        - `questionId: string` The ID of the question being answered.
          - **Minimum length:** 1
        - `questionText: string` The text of the question being answered.
          - **Minimum length:** 1
        - `selectedLabels: string[]` The labels of the selected options. For single-select questions, pass one item.
        - `customText?: string` Free-form text input, used when the user selects "Other" or wants to add context.
          - **Minimum length:** 1
  - **confirmed-permissions** Resolves a permission request task. The agent wants to execute a tool (shell command, script, MCP call) and needs approval. Also used to resolve environment variable prompts.
    - `type: 'confirmed-permissions'`
    - `permissions: object[]` The permissions to grant. Pass the suggestedPermissions from the stopped task.
      - **Minimum items:** 1
      - `item: object`
        - `type: 'ALLOW_DYNAMIC_TOOL_STRICT'`
        - `toolName: string` The name of the tool being permitted.
          - **Minimum length:** 1
        - `input: unknown` The tool call input arguments. Pass the exact input from the stopped task.
        - `toolDisplayName?: string | null` The tool's original human-readable name from the stopped task. Display-only; pass back unchanged. Capped at 100 characters, matching the cap applied when the name is ingested from the server.
        - `taskNameActive?: string | null` Label shown while the tool is running (e.g. "Running migration").
        - `taskNameComplete?: string | null` Label shown after the tool completes (e.g. "Migration complete").
        - `userMessage?: string` Optional message from the user about this permission.
          - **Minimum length:** 1
    - `userMessage?: string` Optional message from the user about the permission grant.
      - **Minimum length:** 1
  - **vercel-connect-setup** Resolves a Vercel Connect setup task. The agent asked the user to complete connector setup in a browser (a `configure_vercel_connect` agent action with `status: "setup-required"`). Complete setup at the action’s `setupUrl`, poll GET /chats/\{chatId}/connect/status until it returns `ready`, then send this task. The server verifies the setup result and attaches the connector; no connector ID is needed. Returns 409 if setup is still pending or failed, or 404 if setup has not started or the request expired.
    - `type: 'vercel-connect-setup'`
  - **vercel-connect-authorization** Resolves a Vercel Connect authorization task (a `configure_vercel_connect` agent action with `status: "authorization-required"`). Sign in at the action's `authorizationUrl`, poll GET /chats/\{chatId}/connect/status until `ready`, then send this task. Returns 409 while authorization is pending or after it failed, 404 if it has not started or expired.
    - `type: 'vercel-connect-authorization'`
- `modelConfiguration?: object` Overrides for the model behavior.
  - `modelId?: 'v0-mini' | 'v0-pro' | 'v0-max' | 'v0-max-fast' | string` Model to use for the generation. Use a v0 model ID, or an [AI Gateway](https://vercel.com/ai-gateway/models) model ID in `creator/model` format. Gateway models must support tool calling and Zero Data Retention, and are subject to team model policy; unsupported IDs are rejected.
  - `imageGenerations?: boolean` Enables image generations to generate up to 5 images per version.

### Response

- `messageId: string` ID of the assistant message that will receive the response. Poll GET /chats/:chatId/messages/:messageId and check `finishReason` for completion.

---

For a semantic overview of all documentation, see [/docs/sitemap.md](/docs/sitemap.md)

For an index of all available documentation, see [/docs/llms.txt](/docs/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/docs/agents.md](/docs/agents.md)