---
title: "Download a verified artifact"
---

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

Path: Shiba public API › artifacts

`GET /threads/{threadId}/artifacts/{index}/content`

## Authentication

- `cookieAuth`, apiKey, in cookie

## Path parameters

- `threadId` (`getThreadArtifactContent.path.threadId`; string, required) — Thread or run identifier
- `index` (`getThreadArtifactContent.path.index`; integer, required) — Artifact index
  - min 0; max 7

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/threads/<threadId>/artifacts/<index>/content' \
  --cookie 'better-auth.session_token=<better-auth.session_token>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/threads/<threadId>/artifacts/<index>/content';
const options = {method: 'GET', headers: {cookie: 'better-auth.session_token=<better-auth.session_token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/threads/<threadId>/artifacts/<index>/content"

headers = {"cookie": "better-auth.session_token=<better-auth.session_token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Artifact bytes

#### Example

```text
string
```

### 400

Invalid artifact identity

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`getThreadArtifactContent.response.400.error`; string, required)
- `ok` (`getThreadArtifactContent.response.400.ok`; boolean, optional)
- `detail` (`getThreadArtifactContent.response.400.detail`; string, optional)
- `code` (`getThreadArtifactContent.response.400.code`; string, optional)

### 404

Artifact not found

#### Example

```json
{
  "ok": false,
  "error": "string",
  "detail": "string",
  "code": "string"
}
```

- `error` (`getThreadArtifactContent.response.404.error`; string, required)
- `ok` (`getThreadArtifactContent.response.404.ok`; boolean, optional)
- `detail` (`getThreadArtifactContent.response.404.detail`; string, optional)
- `code` (`getThreadArtifactContent.response.404.code`; string, optional)


Source: https://tryshiba.dev/reference/api/artifacts/getThreadArtifactContent/index.md
