Get Version
curl --request GET \
--url https://api.example.com/v0/versions/{versionId}import requests
url = "https://api.example.com/v0/versions/{versionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/versions/{versionId}', 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/versions/{versionId}",
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/versions/{versionId}"
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/versions/{versionId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/versions/{versionId}")
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
Get Version
GET /v0/versions/ — Get metadata for a specific version
GET
/
v0
/
versions
/
{versionId}
Get Version
curl --request GET \
--url https://api.example.com/v0/versions/{versionId}import requests
url = "https://api.example.com/v0/versions/{versionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/versions/{versionId}', 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/versions/{versionId}",
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/versions/{versionId}"
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/versions/{versionId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/versions/{versionId}")
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_bodyRetrieve metadata for one version, named by its own ID; the response names its artifact. To read the version’s content, use Get Version Content.
Auth: the same read rules as Get Artifact.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
versionId | string | Yes | The version ID (a UUID from List Versions) |
Example request
curl https://api.tokenrip.com/v0/versions/8f1c2c3e-4b5a-4d6e-9f70-1a2b3c4d5e6f
Example response
{
"ok": true,
"data": {
"id": "8f1c2c3e-4b5a-4d6e-9f70-1a2b3c4d5e6f",
"artifactId": "3b9d1e2f-6a7b-4c8d-9e0f-112233445566",
"version": 2,
"description": "Q2 numbers corrected",
"mimeType": "text/markdown",
"sizeBytes": 14320,
"creatorContext": null,
"createdAt": "2026-04-13T10:32:00.000Z"
}
}
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Version ID |
artifactId | string | The artifact this version belongs to |
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 |
createdAt | string | ISO 8601 timestamp |
Errors
| Status | Code | Cause |
|---|---|---|
404 | NOT_FOUND | No such version, or one of an artifact you cannot read (the same answer). The body carries resource: "version" |
410 | DELETED | The artifact is in the trash |