cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/artifacts?page_size=20' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'from gumloop import Gumloop
client = Gumloop(access_token="YOUR_ACCESS_TOKEN")
response = client.artifacts.list(agent_id="AGENT_ID")
for artifact in response.artifacts:
print(artifact.id, artifact.filename)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumloop.com/api/v1/agents/{agent_id}/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{
"artifacts": [
{
"id": "art_aBcDeF123",
"version_id": "ver_xYz9012",
"major_version": 2,
"agent_id": "abc123DEFghiJKL",
"session_id": "ses_8h2k4m1n",
"filename": "q4_sales_report.pdf",
"created_at": "2026-05-15T14:32:00Z",
"metadata": {
"media_type": "application/pdf",
"size": 12345
},
"url": "https://storage.googleapis.com/gumloop-artifacts/art_aBcDeF123?X-Goog-Signature=...",
"creator": {
"id": "user_19a3bc",
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada@example.com",
"profile_picture": "https://example.com/avatars/ada.png"
}
},
{
"id": "art_gHiJkL456",
"version_id": "ver_aBc4567",
"major_version": 1,
"agent_id": "abc123DEFghiJKL",
"session_id": "ses_8h2k4m1n",
"filename": "summary.txt",
"created_at": "2026-05-15T14:30:11Z",
"metadata": {},
"url": "https://storage.googleapis.com/gumloop-artifacts/art_gHiJkL456?X-Goog-Signature=...",
"creator": {
"id": "user_19a3bc",
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada@example.com",
"profile_picture": null
}
}
],
"next_cursor": "eyJjcmVhdGVkX3RzIjoiMjAyNi0wNS0xNVQxNDozMDoxMVoifQ=="
}List artifacts
List artifacts (files) produced by an agent. Optionally scope to a specific session, search by filename, sort, and paginate.
GET
/
agents
/
{agent_id}
/
artifacts
cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/artifacts?page_size=20' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'from gumloop import Gumloop
client = Gumloop(access_token="YOUR_ACCESS_TOKEN")
response = client.artifacts.list(agent_id="AGENT_ID")
for artifact in response.artifacts:
print(artifact.id, artifact.filename)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/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://api.gumloop.com/api/v1/agents/{agent_id}/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gumloop.com/api/v1/agents/{agent_id}/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{
"artifacts": [
{
"id": "art_aBcDeF123",
"version_id": "ver_xYz9012",
"major_version": 2,
"agent_id": "abc123DEFghiJKL",
"session_id": "ses_8h2k4m1n",
"filename": "q4_sales_report.pdf",
"created_at": "2026-05-15T14:32:00Z",
"metadata": {
"media_type": "application/pdf",
"size": 12345
},
"url": "https://storage.googleapis.com/gumloop-artifacts/art_aBcDeF123?X-Goog-Signature=...",
"creator": {
"id": "user_19a3bc",
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada@example.com",
"profile_picture": "https://example.com/avatars/ada.png"
}
},
{
"id": "art_gHiJkL456",
"version_id": "ver_aBc4567",
"major_version": 1,
"agent_id": "abc123DEFghiJKL",
"session_id": "ses_8h2k4m1n",
"filename": "summary.txt",
"created_at": "2026-05-15T14:30:11Z",
"metadata": {},
"url": "https://storage.googleapis.com/gumloop-artifacts/art_gHiJkL456?X-Goog-Signature=...",
"creator": {
"id": "user_19a3bc",
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada@example.com",
"profile_picture": null
}
}
],
"next_cursor": "eyJjcmVhdGVkX3RzIjoiMjAyNi0wNS0xNVQxNDozMDoxMVoifQ=="
}Authorizations
Path Parameters
ID of the agent whose artifacts to list.
Query Parameters
Filter to artifacts produced within a specific session.
Case-insensitive substring match against the artifact filename.
Sort order for results. Defaults to newest.
Number of artifacts to return per page. Clamped to 1–100.
Required range:
1 <= x <= 100Opaque pagination cursor returned by a prior call as next_cursor.
Was this page helpful?
⌘I
