Our docs got a refresh! Check out the new content and improved navigation. For detailed API reference see our Python SDK docs and TypeScript SDK.
Description
API referenceAnnotations

List Annotation Criteria

Lists annotation criteria with optional project filtering and pagination support.

GET
/v1/annotation-criteria
/v1/annotation-criteria

The Authorization access token

Authorization

X-API-KEY<token>

In: header

Query Parameters

project_idProject Id

limitLimit

Default: 1000Minimum: 1Maximum: 1000

offsetOffset

Default: 0Minimum: 0
curl -X GET "https://api.patronus.ai/v1/annotation-criteria?project_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&limit=1000&offset=0" \
  -H "X-API-KEY: <token>"

Successful Response

{
  "annotation_criteria": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
      "name": "string",
      "description": "string",
      "annotation_type": "string",
      "categories": [
        {
          "label": "string",
          "score": 0
        }
      ],
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "resource_types": [
        "trace"
      ],
      "locked": false
    }
  ]
}