Agent Control

List AI model config versions

GET
/api/v2/projects/{projectKey}/ai-configs/model-configs/{modelConfigKey}/versions

Get a paginated list of all available versions of an AI model config, ordered from newest to oldest. Global model configs return their single current representation.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string
modelConfigKey*string

Query Parameters

limit?integer

The number of resources to return.

offset?integer

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.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/v2/projects/default/ai-configs/model-configs/default/versions"
{  "_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": 0,  "items": [    {      "costPerOutputToken": 1.4658129805029452,      "_maintainer": {        "kind": "kind"      },      "costPerInputToken": 6.027456183070403,      "customParams": "{}",      "icon": "icon",      "global": true,      "params": "{}",      "version": 0,      "tags": [        "tags",        "tags"      ],      "_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"          }        ]      },      "usedInCount": 5,      "provider": "provider",      "name": "name",      "id": "id",      "isRestricted": true,      "key": "key",      "costPerCachedInputToken": 5.962133916683182    },    {      "costPerOutputToken": 1.4658129805029452,      "_maintainer": {        "kind": "kind"      },      "costPerInputToken": 6.027456183070403,      "customParams": "{}",      "icon": "icon",      "global": true,      "params": "{}",      "version": 0,      "tags": [        "tags",        "tags"      ],      "_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"          }        ]      },      "usedInCount": 5,      "provider": "provider",      "name": "name",      "id": "id",      "isRestricted": true,      "key": "key",      "costPerCachedInputToken": 5.962133916683182    }  ]}