---
title: Download Artifact
description: "Downloads the saved bytes of an artifact the agent showed in this chat. Find artifact IDs on `show_artifact` agent-action message parts. The response `Content-Type` is the artifact’s file type, such as `text/html`, `text/markdown`, `application/json`, `text/csv`, or an image type."
docs_index: /docs/llms.txt
lastUpdated: 2026-11-23
badge: "GET"
---

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

Downloads the saved bytes of an artifact the agent showed in this chat. Find artifact IDs on `show_artifact` agent-action message parts. The response `Content-Type` is the artifact’s file type, such as `text/html`, `text/markdown`, `application/json`, `text/csv`, or an image type.

#### `GET /v2/chats/{chatId}/artifacts/{artifactId}`

## Usage

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

const result = await v0.chats.downloadArtifact({
  chatId: 'chat_abc123',
  artifactId: 'id_abc123',
})

console.log(result)
```

```bash
curl -X GET "https://api.v0.dev/v2/chats/chat_abc123/artifacts/chat_abc123"   -H "Authorization: Bearer $V0_API_KEY"   -H "Content-Type: application/json"
```

## API Signature

### Request

#### Path Parameters

- `chatId: string` The unique identifier of the chat.
  - **Minimum length:** 1
- `artifactId: string` The `artifactId` from a `show_artifact` message part.
  - **Minimum length:** 1
  - **Maximum length:** 64

---

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)