List artifacts
import requests
url = "https://app.strandai.com/api/v1/artifacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://app.strandai.com/api/v1/artifacts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.strandai.com/api/v1/artifacts', 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://app.strandai.com/api/v1/artifacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.strandai.com/api/v1/artifacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.strandai.com/api/v1/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.strandai.com/api/v1/artifacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 1,
"artifacts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"sample_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"author_type": "user",
"author_id": "<string>",
"entry_html_path": "index.html",
"size_bytes": 16777216,
"sha256": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}Endpoints
List artifacts
List organization-private report metadata, filtered by linked samples or jobs.
GET
/
artifacts
List artifacts
import requests
url = "https://app.strandai.com/api/v1/artifacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://app.strandai.com/api/v1/artifacts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.strandai.com/api/v1/artifacts', 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://app.strandai.com/api/v1/artifacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://app.strandai.com/api/v1/artifacts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.strandai.com/api/v1/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.strandai.com/api/v1/artifacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"count": 1,
"artifacts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"sample_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"job_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"author_type": "user",
"author_id": "<string>",
"entry_html_path": "index.html",
"size_bytes": 16777216,
"sha256": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"url": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}{
"error": "<string>",
"message": "<string>",
"reason": "<string>",
"required": 123,
"retryAfterSeconds": 123
}Requires
MCP
samples:read and results:read. Credit-free. Optional sample_id
and job_id UUID filters combine with AND.
Pagination uses limit (1 to 100, default 50) and offset (0 to 100000, default 0).
The response is {count, artifacts}: count is the returned page length, not
the total number of matching artifacts. Responses are private and not cached.
page = client.artifacts.list(limit=10, offset=0)
for artifact in page["artifacts"]:
print(artifact["title"], artifact["description"], artifact["url"])
list_artifacts accepts the same filters and pagination arguments.
Each item has the same metadata shape as Get an artifact.Authorizations
ApiKeyOAuth2
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Required range:
1 <= x <= 100Required range:
0 <= x <= 100000Was this page helpful?