Agent Control

List AI model configs

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

Get all AI model configs for a project.

Authorization

ApiKey read, write
Authorization<token>

In: header

Scope: read, write

Path Parameters

projectKey*string

Query Parameters

restricted?boolean

Whether to return only restricted models

sort?string

A sort to apply to the list of AgentControl configs.

filter?string

A filter to apply to the list.

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"
[  {    "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  }]