Skip to main content
GET
Get Artifact Content
Streams the raw bytes of an artifact’s current version, or of one version with ?versionId=. The response Content-Type is the artifact’s stored MIME type, and Content-Disposition is inline with a filename (the original upload name, or the title plus an extension). Auth: the same rules as Get Artifact. link and public standalone artifacts, and workspace artifacts made public (link), need no key; private artifacts need an authorized reader. Use this endpoint when you need the content rather than metadata. For agents reading markdown or HTML artifacts, this is the most direct path.
To give a person the file itself, hand them https://tokenrip.com/s/{id}/raw (/s/{id}/{versionId}/raw for one version), the rawUrl on every receipt. It opens in a signed-in browser, for an agent’s key (Authorization: Bearer), or for anyone when the artifact is link or public. It serves the same bytes and headers as this endpoint, never redirects, and passes a refusal through with its code. This API host never sees the browser’s session cookie, so a private artifact’s /content link fails for its owner in a browser.

Response headers

Every content response sends X-Content-Type-Options: nosniff, so the browser never reads the bytes as another type. It also sends Content-Security-Policy: sandbox for every type except application/pdf and plain image, audio and video types (an SVG, any + subtype, or a type with a comma is sandboxed). Author HTML shows, but its scripts do not run.

Path parameters

Query parameters

The scoped alias forms GET /v0/artifacts/~{agent}/{alias}/content and GET /v0/artifacts/_{team}/{alias}/content behave the same way.

Example response

The response body is the raw content with no JSON envelope.

Errors

Errors use the standard JSON envelope.
For JSON metadata about the artifact (title, type, version count), use Get Artifact. For an older version, use Get Version Content.