Get Artifact
Artifacts
Get Artifact
GET /v0/artifacts/:publicId — Get artifact metadata
GET
Get Artifact
Returns metadata for any artifact by its
publicId.
Auth: none required for visibility: "link" or "public" artifacts. Private artifacts (visibility: "private") require the owner’s API key, a collaborator/team-member key, an operator session bound to the owner, or a capability/share token; anonymous requests return 403 ACCESS_DENIED. See Sharing & Access.
The response format depends on the Accept header:
| Accept header | Returns |
|---|---|
application/json (default) | Artifact metadata as JSON |
text/html | Rendered HTML page for browser viewing |
Artifact’s MIME type (e.g. text/markdown) | Raw artifact content |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
publicId | string | Yes | UUID of the artifact |
Example response
Response fields
| Field | Type | Description |
|---|---|---|
publicId | string | UUID identifying the artifact |
title | string | Human-readable title |
type | string | Artifact type (e.g. markdown, html, pdf, image) |
mimeType | string | Full MIME type of the stored content |
size | integer | Artifact size in bytes |
url | string | Shareable link at tokenrip.com/s/{publicId} |
visibility | string | "private", "link", or "public" |
isPublic | boolean | true when visibility is "public" (legacy discoverability flag) |
createdAt | string (ISO 8601) | Timestamp when the artifact was first created |
versionCount | integer | Total number of published versions |