---
title: "Read one version's source"
method: GET
path: "/v1/artifacts/{id}/versions/{versionNo}/source"
tags: ["Artifacts"]
---

# Read one version's source

`GET /v1/artifacts/{id}/versions/{versionNo}/source`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/artifacts/{id}/versions/{versionNo}/source`
- Auth: HTTP bearer

The entrypoint text of one version, for a diff or a preview. `content` is capped at 512 KB (`truncated: true` past that). Viewer or above.

## Response `200`

Version source

- object
  - `version_no` integer
  - `entrypoint` string
  - `mime` string
  - `size_bytes` integer
  - `content` string
  - `truncated` boolean

## Other responses

- `403`: Access denied
- `404`: `VERSION_NOT_FOUND`, or `ASSET_NOT_FOUND` when its files are gone
- `415`: `NOT_TEXT` — the entrypoint is binary

## Changes

- **2026-10-16** `924c2aeaed12`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/artifacts/:id/versions/:versionNo/source/get.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
