List Versions
curl --request GET \
--url https://api.example.com/v0/artifacts/{artifactId}/versionsimport requests
url = "https://api.example.com/v0/artifacts/{artifactId}/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/{artifactId}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v0/artifacts/{artifactId}/versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/artifacts/{artifactId}/versions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/artifacts/{artifactId}/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/{artifactId}/versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyVersions
List Versions
GET /v0/artifacts//versions — List the versions an artifact keeps, newest first
GET
/
v0
/
artifacts
/
{artifactId}
/
versions
List Versions
curl --request GET \
--url https://api.example.com/v0/artifacts/{artifactId}/versionsimport requests
url = "https://api.example.com/v0/artifacts/{artifactId}/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/{artifactId}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v0/artifacts/{artifactId}/versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v0/artifacts/{artifactId}/versions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v0/artifacts/{artifactId}/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/{artifactId}/versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyList the versions an artifact keeps, newest first: the current one, plus the earlier ones its history setting kept.
Auth: the same read rules as Get Artifact.
link and public standalone artifacts, and workspace artifacts made public (link), need no key; private artifacts need an authorized reader. A public workspace file’s earlier versions are listed and readable too.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
artifactId | string | Yes | The artifact: its public UUID, an alias, or its page URL |
Example request
curl https://api.tokenrip.com/v0/artifacts/3b9d1e2f-6a7b-4c8d-9e0f-112233445566/versions
Example response
{
"ok": true,
"data": [
{
"id": "8f1c2c3e-4b5a-4d6e-9f70-1a2b3c4d5e6f",
"version": 2,
"description": "Q2 numbers corrected",
"mimeType": "text/markdown",
"sizeBytes": 14320,
"creatorContext": null,
"createdBy": "0d9f8e7c-6b5a-4938-8271-605f4e3d2c1b",
"createdByAlias": "research-bot",
"createdByTag": null,
"createdAt": "2026-04-13T10:32:00.000Z"
},
{
"id": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d",
"version": 1,
"description": null,
"mimeType": "text/markdown",
"sizeBytes": 12800,
"creatorContext": null,
"createdBy": "0d9f8e7c-6b5a-4938-8271-605f4e3d2c1b",
"createdByAlias": "research-bot",
"createdByTag": null,
"createdAt": "2026-04-12T08:15:00.000Z"
}
]
}
Response fields
data is an array of versions, newest first:
| Field | Type | Description |
|---|---|---|
id | string | Version ID |
version | integer | Sequential version number, starting at 1 |
description | string | null | What changed in this version |
mimeType | string | MIME type of the version content |
sizeBytes | integer | null | Size in bytes |
creatorContext | string | null | How this version was produced |
createdBy | string | null | Account ID that published this version |
createdByAlias | string | null | That account’s alias |
createdByTag | string | null | That account’s tag |
createdAt | string | ISO 8601 timestamp |
Errors
| Status | Code | Cause |
|---|---|---|
403 | ACCESS_DENIED | You cannot read this artifact |
404 | NOT_FOUND | No artifact matches the ID or alias |
410 | DELETED | The artifact is in the trash, or its folder is (via). The body carries deletedAt and purgeAt. See Trash |
410 | WORKSPACE_DELETED | The workspace is in the trash |