---
title: "Download source acquired by this account"
method: GET
path: "/api/v1/capabilities/{ref}/artifact"
tags: ["Capabilities"]
---

# Download source acquired by this account

`GET /api/v1/capabilities/{ref}/artifact`

## Request

- Base URL: `https://api.daystruct.ai`
- URL: `https://api.daystruct.ai/api/v1/capabilities/{ref}/artifact`
- Auth: HTTP bearer

Requires read scope and this account's acquisition. JSON response: {data:{format,version,digest,artifact,instructions,licensing},meta}. data.artifact is itself a JSON string. Hash the decoded string's exact UTF-8 bytes (no BOM, normalization or reserialization) before JSON.parse; compare to data.digest AND the digest selected before acquisition. Do not hash the HTTP envelope or the parsed/reserialized artifact. Embedded artifact.priceCredits is immutable submitted metadata, not the current offer or actual charge. v1 files contain path/content and optional encoding (utf8 default or base64). If a release advertises another format or blob references, stop and follow its documented delivery contract rather than treating references as inline files. Downloading never installs or executes code. Private and no-store.

## Path parameters

- `ref` string, required

## Query parameters

- `version` string

## Response `200`

Version, digest and private artifact string

- object
  - `data` object, required
    - `format` 'daystruct-source-v1', required
    - `version` string, required
    - `digest` string, required
    - `artifact` string, required: Exact JSON string whose UTF-8 bytes are SHA-256 hashed; not an object
    - `instructions` string
    - `licensing` object
  - `meta` object, required

## Other responses

- `401`: Authentication required
- `404`: No acquisition for this account
- `503`: Artifact integrity failure

## Changes

- **2026-10-19** `8cd3c7f60e18`: 1 info
  - added the media type `application/json` for the response with the status `200`

[Operation history](https://skmtc.dev/daystruct/apis/daystruct-api/changes/api/v1/capabilities/:ref/artifact/get.md)

---

[API](https://skmtc.dev/daystruct/apis/daystruct-api.md) · [All operations](https://skmtc.dev/daystruct/apis/daystruct-api/llms.txt) · [OpenAPI document](https://skmtc.dev/daystruct/apis/daystruct-api/revisions/8cd3c7f60e18?raw)
