Skip to main content
GET
/
api
/
v1
/
traces
cURL
curl --request GET \
  --url http://studio.premai.io/api/v1/traces \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "createdAt": "2023-11-07T05:31:56Z",
      "modelId": "<string>",
      "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "input": "<string>",
      "output": "<string>",
      "score": 0.5,
      "feedback": "<string>",
      "addedToDataset": true,
      "processingStatus": "none"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer
default:1

Page number to retrieve. Page size is fixed.

Required range: x > 0
modelIds
string

Comma separated list of model IDs or aliases to filter traces.

projectId
string<uuid>

Project identifier to filter traces.

sortBy
enum<string>
default:createdAt

Sort traces by creation time or score.

Available options:
createdAt,
score
sortOrder
enum<string>
default:desc

Sort order to use for the selected sortBy field.

Available options:
asc,
desc

Response

success response

results
object[]
required
total
integer
required

Total number of traces that match the current filters, across all pages.