Get list of traces
curl --request GET \
--url https://analytics.toolzz.ai/api/trpc/traces.allimport requests
url = "https://analytics.toolzz.ai/api/trpc/traces.all"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://analytics.toolzz.ai/api/trpc/traces.all', 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://analytics.toolzz.ai/api/trpc/traces.all",
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://analytics.toolzz.ai/api/trpc/traces.all"
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://analytics.toolzz.ai/api/trpc/traces.all")
.asString();require 'uri'
require 'net/http'
url = URI("https://analytics.toolzz.ai/api/trpc/traces.all")
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_body{
"data": [
{
"id": "<string>",
"timestamp": "<string>",
"name": "<string>",
"input": null,
"output": null,
"sessionId": "<string>",
"release": "<string>",
"version": "<string>",
"userId": "<string>",
"metadata": null,
"tags": [
{}
],
"public": true,
"htmlPath": "<string>",
"latency": 123,
"totalCost": 123,
"observations": [
{
"observationId": "<string>"
}
],
"scores": [
{
"scoreId": "<string>"
}
]
}
],
"meta": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123
}
}Traces
Get list of traces
Endpoint to create a new dataset on toolzz analytics
GET
/
api
/
trpc
/
traces.all
Get list of traces
curl --request GET \
--url https://analytics.toolzz.ai/api/trpc/traces.allimport requests
url = "https://analytics.toolzz.ai/api/trpc/traces.all"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://analytics.toolzz.ai/api/trpc/traces.all', 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://analytics.toolzz.ai/api/trpc/traces.all",
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://analytics.toolzz.ai/api/trpc/traces.all"
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://analytics.toolzz.ai/api/trpc/traces.all")
.asString();require 'uri'
require 'net/http'
url = URI("https://analytics.toolzz.ai/api/trpc/traces.all")
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_body{
"data": [
{
"id": "<string>",
"timestamp": "<string>",
"name": "<string>",
"input": null,
"output": null,
"sessionId": "<string>",
"release": "<string>",
"version": "<string>",
"userId": "<string>",
"metadata": null,
"tags": [
{}
],
"public": true,
"htmlPath": "<string>",
"latency": 123,
"totalCost": 123,
"observations": [
{
"observationId": "<string>"
}
],
"scores": [
{
"scoreId": "<string>"
}
]
}
],
"meta": {
"page": 123,
"limit": 123,
"totalItems": 123,
"totalPages": 123
}
}Show Request
Show Request
integer
Page number, starts at 1 (optional).
integer
Limit of items per page (optional). If you encounter API issues due to too large page sizes, try to reduce the limit.
string
Optional filter for a specific user ID.
string
Optional filter for a specific name.
string
Optional filter for a specific session ID.
date-time
Optional filter to include traces with a timestamp on or after a certain datetime (ISO 8601).
date-time
Optional filter to include traces with a timestamp before a certain datetime (ISO 8601).
string
Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, etc. (optional).
array
Only traces that include all of these tags will be returned.
string
Optional filter to include traces with a certain version.
string
Optional filter to include traces with a certain release.
Response Description
Below you will see the description of the create dataset responsearray
required
List of trace records.
Show properties
Show properties
string
required
Unique identifier for the trace record.
Date
required
Timestamp indicating when the trace was recorded.
string
required
Name of the trace record.
null
Input data associated with the trace.
null
Output data associated with the trace.
string
required
Identifier for the session associated with the trace.
string
required
Release version associated with the trace.
string
required
Version of the trace.
string
required
Identifier for the user associated with the trace.
null
Metadata associated with the trace.
array
required
List of tags associated with the trace.
boolean
required
Indicates if the trace is public.
string
Path to the HTML representation of the trace (optional).
integer
required
Latency of the trace process in milliseconds.
integer
required
Total cost associated with the trace.
array
required
List of observation IDs associated with the trace.
Show items
Show items
string
required
Unique identifier for an observation.
object
required
Code Response
Exemples of Response CodeRequest Successful Response
Request Failure

