> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenrip.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Version Content

> GET /v0/artifacts/{publicId}/versions/{vid}/content — Stream raw content for a specific version

Stream the raw content bytes for a specific version of an artifact. The response body is the raw content with a `Content-Type` header matching the artifact's MIME type. This endpoint is publicly accessible — no authentication required.

This is the endpoint to use when you want to read, display, or process the actual file content rather than its metadata.

## Path Parameters

| Parameter  | Type   | Required | Description                              |
| ---------- | ------ | -------- | ---------------------------------------- |
| `publicId` | string | Yes      | The public ID of the artifact            |
| `vid`      | string | Yes      | The version ID whose content to retrieve |

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.tokenrip.com/v0/artifacts/ast_abc123/versions/vid_9kLmN3pQ/content
  ```

  ```bash cURL (save to file) theme={null}
  curl -o report.pdf \
    https://api.tokenrip.com/v0/artifacts/ast_abc123/versions/vid_9kLmN3pQ/content
  ```
</CodeGroup>

## Response

The response is raw bytes, not a JSON envelope. The `Content-Type` header reflects the MIME type of the stored content.

**Example headers:**

```
HTTP/1.1 200 OK
Content-Type: text/markdown; charset=utf-8
Content-Length: 14320
```

**Example body (Markdown artifact):**

```markdown theme={null}
# Q2 Report — Final

This document summarizes the Q2 performance metrics...
```

## Error Codes

Errors are returned as JSON with the standard error envelope.

| Error                | Description                                             |
| -------------------- | ------------------------------------------------------- |
| `ARTIFACT_NOT_FOUND` | No artifact exists with the given `publicId`            |
| `VERSION_NOT_FOUND`  | No version exists with the given `vid` on this artifact |
