Traces

Retrieves a list of traces for the authenticated user

GET
/api/v1/context/traces

Returns paginated traces for the authenticated user within their organization.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

page?integer

Page number for pagination

Default1
limit?integer

Number of traces per page

Default10

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/context/traces"
{  "traces": [    {      "_id": "trace_123",      "userId": "user_123",      "organizationId": "org_123",      "type": "context.search",      "data": {        "query": "What did the customer ask about pricing for the Scale plan?",        "source": "support-inbox",        "fileName": "support_thread_TCK-1234.txt"      },      "createdAt": "2025-01-10T12:35:10.000Z",      "updatedAt": "2025-01-10T12:35:10.000Z"    }  ],  "pagination": {    "page": 1,    "limit": 10,    "total": 1,    "totalPages": 1,    "hasNextPage": false,    "hasPrevPage": false  }}