List Versions
curl --request GET \
--url https://api.example.com/v0/artifacts/{publicId}/versionsimport requests
url = "https://api.example.com/v0/artifacts/{publicId}/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/{publicId}/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/{publicId}/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/{publicId}/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/{publicId}/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/{publicId}/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 all versions of an artifact, newest first
GET
/
v0
/
artifacts
/
{publicId}
/
versions
List Versions
curl --request GET \
--url https://api.example.com/v0/artifacts/{publicId}/versionsimport requests
url = "https://api.example.com/v0/artifacts/{publicId}/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/{publicId}/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/{publicId}/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/{publicId}/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/{publicId}/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/{publicId}/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 all versions of an artifact in reverse chronological order (newest first). This endpoint is publicly accessible — no authentication required.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
publicId | string | Yes | The public ID of the artifact |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Maximum number of versions to return. Default 50, max 200 |
Example Request
curl https://api.tokenrip.com/v0/artifacts/ast_abc123/versions
curl "https://api.tokenrip.com/v0/artifacts/ast_abc123/versions?limit=10"
Example Response
{
"ok": true,
"data": {
"versions": [
{
"vid": "vid_9kLmN3pQ",
"versionNumber": 3,
"title": "Q2 Report — Final",
"size": 14320,
"createdAt": "2026-04-13T10:32:00.000Z"
},
{
"vid": "vid_5hGjK1wR",
"versionNumber": 2,
"title": "Q2 Report v2",
"size": 12800,
"createdAt": "2026-04-12T08:15:00.000Z"
},
{
"vid": "vid_2aXpM7yT",
"versionNumber": 1,
"title": "Q2 Report",
"size": 9540,
"createdAt": "2026-04-10T14:00:00.000Z"
}
]
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
versions | array | List of version objects, newest first |
versions[].vid | string | Unique version ID |
versions[].versionNumber | integer | Sequential version number, starting at 1 |
versions[].title | string | Title of this version |
versions[].size | integer | Size of the version content in bytes |
versions[].createdAt | string | ISO 8601 timestamp of when this version was created |
Error Codes
| Error | Description |
|---|---|
ARTIFACT_NOT_FOUND | No artifact exists with the given publicId |
⌘I