Observability
List traces
Every model call without a thread, every thread and every managed session with activity in the window, newest activity first, keyset paged with after = the previous page’s next_cursor. A managed session lists once, as a session: the thread its model calls carry is not a row of its own. Eval calls are excluded. Listing is free; only stored bodies are billed.
GET
/
v1
/
traces
List traces
curl --request GET \
--url https://api.veri.studio/v1/traces \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/traces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"total": 123,
"counts": {
"calls": 123,
"single_calls": 123,
"threads": 123,
"sessions": 123,
"active_threads": 123,
"active_sessions": 123
},
"has_more": true,
"data": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"turns": 123,
"llm_calls": 123,
"tool_calls": 123,
"tool_errors": 123,
"errors": 123,
"prompt_tokens": 123,
"cached_prompt_tokens": 123,
"completion_tokens": 123,
"started_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2023-11-07T05:31:56Z",
"span_strip": [
{
"kind": "<string>",
"ms": 123,
"error": true
}
],
"scores": {
"total": 123,
"failed": 123,
"evaluators": [
"<string>"
]
},
"title": "<string>",
"preview": "<string>",
"request_id": "<string>",
"agent": {
"key": "<string>",
"name": "<string>",
"kind": "<string>"
},
"deployment_id": "<string>",
"deployment_name": "<string>",
"model": "<string>",
"thread_id": "<string>",
"session_id": "<string>",
"environment_id": "<string>",
"environment_version": 123,
"status_code": 123,
"latency_ms": 123,
"error_category": "<string>",
"error_message": "<string>",
"body_state": "<string>",
"cost_usd": 123
}
],
"next_cursor": "<string>"
}Authorizations
Query Parameters
Response
List traces
curl --request GET \
--url https://api.veri.studio/v1/traces \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.veri.studio/v1/traces"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.veri.studio/v1/traces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"total": 123,
"counts": {
"calls": 123,
"single_calls": 123,
"threads": 123,
"sessions": 123,
"active_threads": 123,
"active_sessions": 123
},
"has_more": true,
"data": [
{
"id": "<string>",
"kind": "<string>",
"status": "<string>",
"turns": 123,
"llm_calls": 123,
"tool_calls": 123,
"tool_errors": 123,
"errors": 123,
"prompt_tokens": 123,
"cached_prompt_tokens": 123,
"completion_tokens": 123,
"started_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2023-11-07T05:31:56Z",
"span_strip": [
{
"kind": "<string>",
"ms": 123,
"error": true
}
],
"scores": {
"total": 123,
"failed": 123,
"evaluators": [
"<string>"
]
},
"title": "<string>",
"preview": "<string>",
"request_id": "<string>",
"agent": {
"key": "<string>",
"name": "<string>",
"kind": "<string>"
},
"deployment_id": "<string>",
"deployment_name": "<string>",
"model": "<string>",
"thread_id": "<string>",
"session_id": "<string>",
"environment_id": "<string>",
"environment_version": 123,
"status_code": 123,
"latency_ms": 123,
"error_category": "<string>",
"error_message": "<string>",
"body_state": "<string>",
"cost_usd": 123
}
],
"next_cursor": "<string>"
}
