List AI Models
Changed onReturns a paginated list of AI Models for the current organization. Each row includes a managed_by object derived from whether the model is linked to an AI Gateway model.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Query parameters
The maximum number of items to include per page. The last page of a collection may include fewer items.
Determines which page of the entities to retrieve.
Filter parameters for the AI Model list endpoint.
Filter using one of the following operators: eq, oeq, neq
Filter using one of the following operators: eq, oeq, neq, contains, ocontains
Filter using one of the following operators: eq, oeq, neq, contains, ocontains
Filters on the resource's labels field. Filters must use dot-notation to identify the label key that will be used to filter the results. For example:
- filter[labels.owner]
- filter[labels.owner][neq]=kong
- filter[labels.env]=dev
- filter[labels.env][ocontains]=dev,test
Filters on the given datetime (RFC-3339) field value.
Filters on the given datetime (RFC-3339) field value.
Filter AI Models returned in the response.
{
"created_at": {
"eq": "2022-03-30T07:20:50Z"
},
"updated_at": {
"eq": "2022-03-30T07:20:50Z"
}
}The asc suffix is optional as the default sort order is ascending. The desc suffix is used to specify a descending order. Multiple sort attributes may be provided via a comma separated list. JSONPath notation may be used to specify a sub-attribute (eg: 'foo.bar desc').
Sort AI Models by specified fields. Supported sort attributes are:
- display_name
- name
- created_at
- updated_at
Default sort is display_name in ascending order.
Response
A paginated list of AI Models
A paginated page of AI Models.
returns the pagination information
Example response
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "my-ai-model",
"display_name": "My AI Model",
"description": "Customer support triage model",
"labels": {
"env": "test"
},
"managed_by": {
"owner": "terraform"
},
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}
],
"meta": {
"page": {
"number": 1,
"size": 10,
"total": 100
}
}
}Changes
- breaking
the
data/items/managed_by/additionalPropertiesresponse property's maxLength was increased from63to127for the response status - info
the
data/items/managed_by/additionalPropertiesresponse's property pattern was changed from^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$to^[^\s\x00-\x1F\x7F-\x9F]+$for the status
- breaking
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status
2 more changes in this revision
- breaking