# v0 integration

> v0 by Vercel Platform API: create and iterate on AI-generated full-stack apps through chats and messages, read files and previews, deploy to Vercel, and manage MCP servers, webhooks and usage.

- Authentication: apiKey

## Tools (52)

- **Append Trusted Preview Hosts**: Appends host patterns without replacing existing hosts. Returns 422 if any normalized pattern already exists or the resulting list exceeds 100 hosts. The entire request succeeds or fails together.
- **Create Chat**: Creates a new chat from a prompt. The request blocks until the model response is complete and returns the chat.
- **Create Chat (Async)**: Creates a new chat with a user message and processes it in the background. Returns immediately with the chat ID and message ID. Poll for the assistant message by ID until `finishReason` is non-null.
- **Create Chat From Files**: Creates a new chat from inline UTF-8 or base64-encoded source files.
- **Create Chat From Repository**: Creates a new chat from a GitHub repository.
- **Create Chat From Vercel Project**: Creates a new chat from an existing Vercel project.
- **Create Chat From ZIP**: Creates a new chat from a zip archive.
- **Create Chat (Streaming)**: Creates a new chat with a user message and returns a Server-Sent Events stream. Events include initial chat state, title deltas, content chunk deltas, and final chat state. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to ChatStreamEvent. If the stream
- **Create MCP Server**: Creates a new MCP server configuration. Limited to 100 servers per user.
- **Create Vercel Project**: Creates a Vercel project and attaches it to the chat.
- **Create Webhook**: Creates a new webhook that listens for specific events. Supports optional association with a chat.
- **Delete Chat**: Deletes a chat and all its associated messages. The requester must have edit access to the chat.
- **Delete MCP Server**: Deletes an MCP server and cleans up associated OAuth tokens. This action is irreversible.
- **Delete Trusted Preview Hosts**: Deletes exact normalized host patterns. Returns 404 if any pattern is not configured. Wildcard coverage does not count as an exact match. The entire request succeeds or fails together.
- **Delete Webhook**: Deletes a webhook. This action is irreversible.
- **Deploy Chat**: Triggers a Vercel deployment for a chat. Creates a Vercel project if one does not exist.
- **Download Chat Files**: Downloads the source files for a chat as a ZIP archive.
- **Duplicate Chat**: Creates a new chat by duplicating an existing chat.
- **Find Rate Limit (v1)**: Retrieves rate limit information for a given scope. Useful for monitoring usage limits and avoiding throttling.
- **Get Billing (v1)**: Fetches billing usage and quota information for the authenticated user. Can be scoped to a specific context (e.g. project or namespace).
- **Get Chat**: Retrieves a chat by ID.
- **Get Chat Files**: Returns the source files for a chat.
- **Get Connect Setup Status**: Polls the status of a Vercel Connect connector setup started by a `configure_vercel_connect` agent action. Open the `setupUrl` from the agent action data in a browser, then poll this endpoint every few seconds while `pending`. When it returns `ready`, resolve the chat with a `vercel-connect-setup` t
- **Get MCP Server**: Retrieves a specific MCP server by ID.
- **Get Message**: Fetches a single message in a chat.
- **Get Plan (v1)**: Returns the current subscription plan for the authenticated user, including tier details and feature limits.
- **Get Preview URL**: Returns the preview URL for a chat. If the preview isn't ready, the response is null. Poll this endpoint until the response is non-null.
- **Get Trusted Preview Hosts**: Returns the hostname patterns trusted to embed previews for the current team.
- **Get Usage Activity**: Returns chat and project activity for the active billing scope. Team owners and billing members receive team-wide activity by default; other team members receive their own activity.
- **Get Usage Summary**: Returns credit usage for the active billing scope. Team owners and billing members receive team-wide usage by default; other team members receive their own usage.
- **Get User Scopes (v1)**: Retrieves all accessible scopes for the authenticated user, such as personal workspaces or shared teams.
- **Get User (v1)**: Retrieves information about the authenticated user, including their ID, name, email, and account metadata.
- **Get Webhook**: Retrieves the details of a specific webhook using its ID.
- **List Chats**: Lists chats accessible to the authenticated user. Use metadata[key]=value style query parameters to filter by metadata.
- **List MCP Servers**: Retrieves all MCP servers configured for the current user.
- **List Messages**: Lists all messages in a chat.
- **List Usage Events**: Lists individual credit usage events. Each event includes the credits charged and, when available, associated token counts.
- **List Webhooks**: Retrieves a list of all webhooks in your workspace.
- **Resolve Task**: Resolves a pending task in a chat. Blocks until the model response is complete and returns the resulting message.
- **Resolve Task (Async)**: 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.
- **Resolve Task (Streaming)**: Resolves a pending task in a chat and returns a Server-Sent Events stream. Events include the initial assistant-message snapshot, content chunk deltas, final usage, and a closing message snapshot. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to Messag
- **Restore Message**: Restores the files associated with an assistant message. The associated files must not already be the latest files in the chat.
- **Resume Chat Stream**: Resumes consumption of the active assistant generation as Server-Sent Events. If the latest message has already finished, returns a closing chat-state event. The response is `text/event-stream`; each event is `data: <JSON>\n\n` where the JSON conforms to ChatStreamEvent.
- **Send Message**: Sends a new message to an existing chat. Blocks until the model response is complete and returns the message response. Include designMode to apply element-scoped design edits; message may be omitted when edits are provided.
- **Send Message (Async)**: Sends a new message to an existing chat and processes it in the background. Include designMode to apply element-scoped design edits; message may be omitted when edits are provided. Returns immediately with the assistant message ID. Poll GET /chats/:chatId/messages/:messageId and check `finishReason`
- **Send Message (Streaming)**: Sends a new message to an existing chat and returns a Server-Sent Events stream. Include designMode to apply element-scoped design edits; message may be omitted when edits are provided. Events include the initial assistant-message snapshot, content chunk deltas, final usage, and a closing message sn
- **Set Trusted Preview Hosts**: Sets the host patterns trusted to embed previews for a team.
- **Stop Message**: Stops an in-flight assistant message generation. The agent aborts at the next safe point and the message is marked finished.
- **Update Chat**: Updates a chat's title, privacy, or metadata.
- **Update Chat Files**: Creates, updates, or deletes UTF-8 or base64-encoded files for a chat. Pass null to delete.
- **Update MCP Server**: Updates an existing MCP server configuration.
- **Update Webhook**: Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.

Connect v0 in General Input: https://www.generalinput.com/apps/v0