AI Gateway Agents

List AI Gateway Agents

Changed on

Returns a list of all agents registered in the AI Gateway.

get/v1/ai-gateways/{gatewayId}/agents

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

gatewayId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

The unique ID of the AI Gateway.

Query parameters

page[size], integer
Example:10

The maximum number of items to include per page. The last page of a collection may include fewer items.

page[after], string
Example:ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ

Request the next page of data, starting with the item after this parameter.

Response

A paginated list of AI Agents.

object required
data, AIGatewayAgent[] required
meta, CursorMeta required

Pagination metadata.

Example response

{
  "data": [
    {
      "display_name": "Kong Air Flight Booking Agent",
      "name": "kongair-flight-booking-agent",
      "enabled": true,
      "type": "a2a",
      "access": {
        "acls": {
          "allow": [
            "consumer-group-1"
          ]
        },
        "identity_providers": [
          "okta-ai-se"
        ],
        "auth_strategies": [
          "okta-ai-se"
        ]
      },
      "config": {
        "url": "https://booking-agent.internal.kongair.com",
        "upstream": {
          "auth": {
            "type": "aws",
            "region": "us-east-1",
            "access_key_id": "AKIAIOSFODNN7EXAMPLE"
          }
        },
        "route": {
          "headers": {
            "version": [
              "v1",
              "v2"
            ]
          },
          "hosts": [
            "foo.example.com"
          ]
        },
        "logging": {
          "max_payload_size": 524288
        },
        "certificates": [
          "my-certificate"
        ],
        "ca_certificates": [
          "my-ca-certificate"
        ]
      },
      "labels": {
        "category": "finance"
      },
      "managed_by": {
        "owner": "terraform"
      },
      "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
      "created_at": "2022-11-04T20:10:06.927Z",
      "updated_at": "2022-11-04T20:10:06.927Z"
    }
  ],
  "meta": {
    "page": {
      "size": 10
    }
  }
}

Changes

    • breaking

      the response property data/items/config/url became optional for the status

    • info

      the type response property const value aws was added for the status

    • info

      removed the aws enum value from the data/items/config/upstream/auth/oneOf[subschema #1: AIGatewayUpstreamAuthAWS]/type response property for the response status