AI Configs (beta)

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.

Headers

LD-API-Version'beta' required

Version of the endpoint.

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": 9,
  "items": [
    {
      "mode": "completion",
      "createdAt": 2,
      "_maintainer": {
        "kind": "kind"
      },
      "_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"
          }
        ]
      },
      "_links": {
        "parent": {
          "href": "href",
          "type": "type"
        },
        "self": {
          "href": "href",
          "type": "type"
        }
      },
      "variations": [
        {
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "version": 1,
          "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"
        },
        {
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "version": 1,
          "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",
      "description": "description",
      "version": 0,
      "key": "key",
      "tags": [
        "tags",
        "tags"
      ],
      "updatedAt": 7
    },
    {
      "mode": "completion",
      "createdAt": 2,
      "_maintainer": {
        "kind": "kind"
      },
      "_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"
          }
        ]
      },
      "_links": {
        "parent": {
          "href": "href",
          "type": "type"
        },
        "self": {
          "href": "href",
          "type": "type"
        }
      },
      "variations": [
        {
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "version": 1,
          "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"
        },
        {
          "instructions": "instructions",
          "color": "color",
          "_links": {
            "parent": {
              "href": "href",
              "type": "type"
            }
          },
          "description": "description",
          "modelConfigKey": "modelConfigKey",
          "version": 1,
          "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",
      "description": "description",
      "version": 0,
      "key": "key",
      "tags": [
        "tags",
        "tags"
      ],
      "updatedAt": 7
    }
  ]
}

Changes