Skip to main content
GET
Get an artifact (with current version content)

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

artifactId
string
required
Maximum string length: 128

Query Parameters

version
string

Historical version number to read. Omit for the current version (unknown version returns 404 ARTIFACT_VERSION_NOT_FOUND).

versions
string

When present (e.g. 1), the response includes versions, the version history metadata (up to 200, newest first, no content).

Response

Artifact record + resolved version content.

Artifact record with the resolved current-version content.

id
string
title
string
artifact_type
string
mime_type
string
language
string
filename
string
current_version
integer
total_versions
integer
version
integer

Version whose content is returned.

content
string
versions
object[]

Only with ?versions=1.

conversation_id
string
agent_id
string
user_id
string
created_at
string<date-time>
updated_at
string<date-time>