Get Artifact Content
curl --request GET \
--url https://api.example.com/v0/artifacts/:publicId/contentimport requests
url = "https://api.example.com/v0/artifacts/:publicId/content"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/:publicId/content', 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/content",
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/content"
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/content")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/:publicId/content")
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_bodyArtifacts
Get Artifact Content
GET /v0/artifacts/:publicId/content — Stream the raw artifact content
GET
/
v0
/
artifacts
/
:publicId
/
content
Get Artifact Content
curl --request GET \
--url https://api.example.com/v0/artifacts/:publicId/contentimport requests
url = "https://api.example.com/v0/artifacts/:publicId/content"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v0/artifacts/:publicId/content', 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/content",
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/content"
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/content")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v0/artifacts/:publicId/content")
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_bodyStreams the raw bytes of an artifact. The response
Content-Type matches the artifact’s stored MIME type. This endpoint is public — no authentication required.
Use this endpoint when you need the raw content rather than metadata. For agents reading markdown or HTML artifacts, this is the most direct path.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
publicId | string | Yes | UUID of the artifact |
curl https://api.tokenrip.com/v0/artifacts/a1b2c3d4-e5f6-7890-abcd-ef1234567890/content
curl https://api.tokenrip.com/v0/artifacts/a1b2c3d4-e5f6-7890-abcd-ef1234567890/content \
-o report.pdf
Example response
The response body is the raw artifact content with no JSON envelope. TheContent-Type header reflects the artifact’s MIME type.
HTTP/1.1 200 OK
Content-Type: text/markdown; charset=utf-8
Content-Length: 4096
# Q2 Analysis
Revenue is up 12% this quarter...
For JSON metadata about the artifact (title, size, version count, etc.), use Get Artifact instead.