---
title: "List artifact metadata for a thread run"
---

> 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`

## Authentication

- `cookieAuth`, apiKey, in cookie

## Path parameters

- `threadId` (`listThreadArtifacts.path.threadId`; string, required) — Thread or run identifier

## Code samples

### cURL

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

### TypeScript

```typescript
const url = '<base-url>/api/v1/threads/<threadId>/artifacts';
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"

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

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

print(response.text)
```

## Responses

### 200

Success

#### Example

```json
{
  "ok": true,
  "threadId": "string",
  "artifacts": [
    {
      "index": 7,
      "path": "string",
      "mediaType": "string",
      "bytes": 9007199254740991,
      "sha256": "string",
      "artifactId": "string",
      "version": 9007199254740991,
      "sourceRunId": "string"
    }
  ]
}
```

- `ok` (`listThreadArtifacts.response.200.ok`; boolean, required)
- `threadId` (`listThreadArtifacts.response.200.threadId`; string, required)
- `artifacts` (`listThreadArtifacts.response.200.artifacts`; array<object>, required)
  - `index` (`listThreadArtifacts.response.200.artifacts.index`; integer, required)
    - min 0; max 7
  - `path` (`listThreadArtifacts.response.200.artifacts.path`; string, required)
    - minLength 1; maxLength 240
  - `mediaType` (`listThreadArtifacts.response.200.artifacts.mediaType`; string, required)
    - minLength 1; maxLength 200
  - `bytes` (`listThreadArtifacts.response.200.artifacts.bytes`; integer, required)
    - max 9007199254740991
  - `sha256` (`listThreadArtifacts.response.200.artifacts.sha256`; string, required)
    - pattern `^[a-f0-9]{64}$`
  - `artifactId` (`listThreadArtifacts.response.200.artifacts.artifactId`; string, optional)
    - maxLength 128
  - `version` (`listThreadArtifacts.response.200.artifacts.version`; integer, optional)
    - max 9007199254740991
  - `sourceRunId` (`listThreadArtifacts.response.200.artifacts.sourceRunId`; string, optional)
    - maxLength 200

### 401

Unauthorized

#### Example

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

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

### 404

Run not found

#### Example

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

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


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