AI Gateway Agents
Create an AI Gateway Agent
Pre-release Endpoint This endpoint is currently in beta and is subject to change.
Creates a new agent for the AI Gateway.
post/v1/ai-gateways/{gatewayId}/agents
Request body
Example request
{
"display_name": "Kong Air Flight Booking Agent",
"name": "my-entity-name",
"enabled": true,
"type": "a2a",
"access": {
"acls": {
"allow": [
"consumer-group-1"
]
}
},
"config": {
"url": "https://booking-agent.internal.kongair.com",
"route": {
"headers": {
"version": [
"v1",
"v2"
]
},
"hosts": [
"foo.example.com"
]
},
"logging": {
"max_payload_size": 524288
}
},
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
}
}Response
AI Agent created successfully.
Example response
{
"display_name": "Kong Air Flight Booking Agent",
"name": "my-entity-name",
"enabled": true,
"type": "a2a",
"access": {
"acls": {
"allow": [
"consumer-group-1"
]
}
},
"config": {
"url": "https://booking-agent.internal.kongair.com",
"route": {
"headers": {
"version": [
"v1",
"v2"
]
},
"hosts": [
"foo.example.com"
]
},
"logging": {
"max_payload_size": 524288
}
},
"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"
}