List
curl --request GET \
--url https://api.adside.ai/v1/workspaces/{workspaceId}/artifacts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.adside.ai/v1/workspaces/{workspaceId}/artifacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adside.ai/v1/workspaces/{workspaceId}/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": "<string>",
"title": "<string>",
"url": "<string>",
"chatThreadId": "<string>",
"originChatThreadId": "<string>",
"listed": true,
"threadStatus": "generating",
"currentVersion": {
"id": "<string>",
"number": 0,
"entryPath": "<string>",
"byteSize": 0,
"fileCount": 0,
"kitVersion": "<string>",
"thumbnailAssetId": "<string>",
"dataAsOf": "2023-12-25",
"summary": "<string>",
"publishedAt": "<string>",
"createdAt": "<string>",
"createdById": "<string>",
"createdByName": "<string>",
"changeType": "GENERATION",
"restoredFromNumber": 0
},
"publishedVersion": {
"id": "<string>",
"number": 0,
"entryPath": "<string>",
"byteSize": 0,
"fileCount": 0,
"kitVersion": "<string>",
"thumbnailAssetId": "<string>",
"dataAsOf": "2023-12-25",
"summary": "<string>",
"publishedAt": "<string>",
"createdAt": "<string>",
"createdById": "<string>",
"createdByName": "<string>",
"changeType": "GENERATION",
"restoredFromNumber": 0
},
"publishedBehindBy": 0,
"versionCount": 0,
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"hasMore": true
}Artifacts
List
List the workspace’s artifacts: the documents, one-pagers and dashboards the agent has written, most recently changed first. Leaves out unlisted ones, which open by their link
CLI: adside artifacts list
GET
/
v1
/
workspaces
/
{workspaceId}
/
artifacts
List
curl --request GET \
--url https://api.adside.ai/v1/workspaces/{workspaceId}/artifacts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.adside.ai/v1/workspaces/{workspaceId}/artifacts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/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.adside.ai/v1/workspaces/{workspaceId}/artifacts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.adside.ai/v1/workspaces/{workspaceId}/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": "<string>",
"title": "<string>",
"url": "<string>",
"chatThreadId": "<string>",
"originChatThreadId": "<string>",
"listed": true,
"threadStatus": "generating",
"currentVersion": {
"id": "<string>",
"number": 0,
"entryPath": "<string>",
"byteSize": 0,
"fileCount": 0,
"kitVersion": "<string>",
"thumbnailAssetId": "<string>",
"dataAsOf": "2023-12-25",
"summary": "<string>",
"publishedAt": "<string>",
"createdAt": "<string>",
"createdById": "<string>",
"createdByName": "<string>",
"changeType": "GENERATION",
"restoredFromNumber": 0
},
"publishedVersion": {
"id": "<string>",
"number": 0,
"entryPath": "<string>",
"byteSize": 0,
"fileCount": 0,
"kitVersion": "<string>",
"thumbnailAssetId": "<string>",
"dataAsOf": "2023-12-25",
"summary": "<string>",
"publishedAt": "<string>",
"createdAt": "<string>",
"createdById": "<string>",
"createdByName": "<string>",
"changeType": "GENERATION",
"restoredFromNumber": 0
},
"publishedBehindBy": 0,
"versionCount": 0,
"createdById": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"hasMore": true
}Authorizations
A personal API key (adside_pat_…) or a token from adside login. Either carries the permissions of the person it belongs to.
Path Parameters
Minimum string length:
1Query Parameters
Required range:
0 <= x <= 100000