Patronus AI APIAnnotations
Search Annotation
POST
/
v1
/annotations
/search
Authorization
X-API-KEY
<token>
In: header
Request Body
application/json
Requiredfilters
Filters
limit
Limit
Default:
1000
Maximum: 10000
curl -X POST "https://api.patronus.ai/v1/annotations/search" \
-H "X-API-KEY: <token>" \
-H "Content-Type: application/json" \
-d '{
"filters": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{}
]
}
]
}
],
"and_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{
"field": "string",
"operation": "starts_with",
"value": {},
"or_": [
{}
],
"and_": [
{}
]
}
],
"and_": [
{}
]
}
]
}
],
"limit": 1000
}'
Successful Response
{
"annotations": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"annotation_criteria": "e3b6bb3c-5051-4c5b-be17-cc69f6fc2ef6",
"type": "trace",
"reference": "string",
"value_pass": true,
"value_score": 0,
"value_text": "string",
"explanation": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
"app": "string",
"experiment_id": 0
}
]
}