v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
AI Configs

List AI Configs

Get a list of all AI Configs in the given project.

get/api/v2/projects/{projectKey}/ai-configs

Path parameters

projectKeystring required

Query parameters

sortstring

A sort to apply to the list of AI Configs.

limitinteger

The number of AI Configs to return.

offsetinteger

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query limit.

filterstring

A filter to apply to the list of AI Configs.

Response

Successful response

totalCountinteger required

Example response

{
  "_links": {
    "next": {
      "href": "href",
      "type": "type"
    },
    "last": {
      "href": "href",
      "type": "type"
    },
    "prev": {
      "href": "href",
      "type": "type"
    },
    "self": {
      "href": "href",
      "type": "type"
    },
    "first": {
      "href": "href",
      "type": "type"
    }
  },
  "totalCount": 2,
  "items": [
    {
      "_maintainer": {
        "kind": "kind"
      },
      "_links": {
        "parent": {
          "href": "href",
          "type": "type"
        },
        "self": {
          "href": "href",
          "type": "type"
        }
      },
      "description": "description",
      "evaluationMetricKey": "evaluationMetricKey",
      "version": 0,
      "tags": [
        "tags",
        "tags"
      ],
      "dependencies": [
        {
          "type": "agent-graph",
          "key": "key"
        },
        {
          "type": "agent-graph",
          "key": "key"
        }
      ],
      "mode": "completion",
      "createdAt": 9,
      "evaluationMetricKeys": [
        "evaluationMetricKeys",
        "evaluationMetricKeys"
      ],
      "_access": {
        "allowed": [
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          },
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          }
        ],
        "denied": [
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          },
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          }
        ]
      },
      "variations": [
        {
          "judgeConfiguration": {
            "judges": [
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              },
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              }
            ]
          },
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "judgingConfigKeys": [
            "judgingConfigKeys",
            "judgingConfigKeys"
          ],
          "version": 1,
          "tools": [
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            },
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            }
          ],
          "createdAt": 6,
          "_publishedAt": 5,
          "_archivedAt": 5,
          "name": "name",
          "messages": [
            {
              "role": "role",
              "content": "content"
            },
            {
              "role": "role",
              "content": "content"
            }
          ],
          "comment": "comment",
          "model": "{}",
          "_id": "_id",
          "state": "state",
          "key": "key"
        },
        {
          "judgeConfiguration": {
            "judges": [
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              },
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              }
            ]
          },
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "judgingConfigKeys": [
            "judgingConfigKeys",
            "judgingConfigKeys"
          ],
          "version": 1,
          "tools": [
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            },
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            }
          ],
          "createdAt": 6,
          "_publishedAt": 5,
          "_archivedAt": 5,
          "name": "name",
          "messages": [
            {
              "role": "role",
              "content": "content"
            },
            {
              "role": "role",
              "content": "content"
            }
          ],
          "comment": "comment",
          "model": "{}",
          "_id": "_id",
          "state": "state",
          "key": "key"
        }
      ],
      "name": "name",
      "key": "key",
      "isInverted": true,
      "updatedAt": 3
    },
    {
      "_maintainer": {
        "kind": "kind"
      },
      "_links": {
        "parent": {
          "href": "href",
          "type": "type"
        },
        "self": {
          "href": "href",
          "type": "type"
        }
      },
      "description": "description",
      "evaluationMetricKey": "evaluationMetricKey",
      "version": 0,
      "tags": [
        "tags",
        "tags"
      ],
      "dependencies": [
        {
          "type": "agent-graph",
          "key": "key"
        },
        {
          "type": "agent-graph",
          "key": "key"
        }
      ],
      "mode": "completion",
      "createdAt": 9,
      "evaluationMetricKeys": [
        "evaluationMetricKeys",
        "evaluationMetricKeys"
      ],
      "_access": {
        "allowed": [
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          },
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          }
        ],
        "denied": [
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          },
          {
            "reason": {
              "role_name": "role_name",
              "notActions": [
                null,
                null
              ],
              "notResources": [
                "notResources",
                "notResources"
              ],
              "effect": "allow",
              "resources": [
                "proj/*:env/*;qa_*:/flag/*"
              ],
              "actions": [
                "*"
              ]
            },
            "action": "action"
          }
        ]
      },
      "variations": [
        {
          "judgeConfiguration": {
            "judges": [
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              },
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              }
            ]
          },
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "judgingConfigKeys": [
            "judgingConfigKeys",
            "judgingConfigKeys"
          ],
          "version": 1,
          "tools": [
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            },
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            }
          ],
          "createdAt": 6,
          "_publishedAt": 5,
          "_archivedAt": 5,
          "name": "name",
          "messages": [
            {
              "role": "role",
              "content": "content"
            },
            {
              "role": "role",
              "content": "content"
            }
          ],
          "comment": "comment",
          "model": "{}",
          "_id": "_id",
          "state": "state",
          "key": "key"
        },
        {
          "judgeConfiguration": {
            "judges": [
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              },
              {
                "samplingRate": 0.7061401,
                "judgeConfigKey": "judgeConfigKey"
              }
            ]
          },
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "judgingConfigKeys": [
            "judgingConfigKeys",
            "judgingConfigKeys"
          ],
          "version": 1,
          "tools": [
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            },
            {
              "customParameters": {
                "key": ""
              },
              "version": 2,
              "key": "key"
            }
          ],
          "createdAt": 6,
          "_publishedAt": 5,
          "_archivedAt": 5,
          "name": "name",
          "messages": [
            {
              "role": "role",
              "content": "content"
            },
            {
              "role": "role",
              "content": "content"
            }
          ],
          "comment": "comment",
          "model": "{}",
          "_id": "_id",
          "state": "state",
          "key": "key"
        }
      ],
      "name": "name",
      "key": "key",
      "isInverted": true,
      "updatedAt": 3
    }
  ]
}