Zatomic API

Retrieve All Scoring Criteria

Returns the list of all scoring criteria in a given workspace, sorted alphabetically by criteria name. This endpoint also returns the default system criteria named Default, which will be the last criteria in the list.

Endpoint
GET https://api.zatomic.ai/v1/prompts/scoring/criteria

Endpoint Response

A successful call returns a response that contains a list of scoring criteria objects.

HTTP Status Codes
200 OK The list of scoring criteria was retrieved, or an empty list was returned.
500 Internal Server Error Something went wrong on Zatomic's end.
Response Body
[
   {
      "criteria_id": "sca_2rjp9HFpIsiYQrAiSbZlz85r3GC",
      "name": "Default",
      "use_case": "This is the use case for the default system criteria."
      "criterion_set": [
         {
            "criterion_id": "scn_2tVwnAnheHa6NKuYvKcXrqDB21z",
            "slug": "criterion_slug",
            "label": "The label of the criterion.",
            "description": "The criterion description.",
            "questions": "The question or questions the criterion is trying to answer.",
            "weight": 0
         }
      ]
   }
]