Our Python SDK got smarter. We developed a Typscript SDK too. We are updating our SDK code blocks. Python SDKhere.Typscript SDKhere.
Description
Patronus AI APITrace insights

Get Trace Insight Error Aggregations

POST
/v1/trace-insight/errors
/v1/trace-insight/errors

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Request Body

application/jsonRequired

appApp

project_idProject Id

experiment_idExperiment Id

start_timeStart Time

end_timeEnd Time

error_typesError Types

curl -X POST "https://api.patronus.ai/v1/trace-insight/errors" \
  -H "X-API-KEY: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "app": "string",
    "project_id": "string",
    "experiment_id": 0,
    "start_time": "2019-08-24T14:15:22Z",
    "end_time": "2019-08-24T14:15:22Z",
    "error_types": [
      "string"
    ]
  }'

Successful Response

{
  "errors": [
    {
      "error_type": "string",
      "number_of_errors": 0,
      "percentage_of_failures": 0,
      "number_of_high_failures": 0,
      "number_of_medium_failures": 0,
      "number_of_low_failures": 0
    }
  ]
}