Lists all knowledge bases bound to a Luma Agent in a specified namespace. Returns the complete set of bindings without pagination.
Operation description
Lists the knowledge bases bound to a Luma Agent in a specified namespace. Results are returned in pages. To retrieve the next page, pass the NextToken value from the previous response. An empty NextToken indicates that no more data is available. Expired bindings are skipped, so the number of entries on a single page may be less than MaxResults. Do not determine whether the last page is reached based on an insufficient number of entries on the current page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:ListLumaKnowledgeBases |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AgentName |
string |
Yes |
The name of the agent. |
my_agent |
| Catalog |
string |
Yes |
The name of the data catalog bound to the agent. You can call ListLumaCatalogs to obtain the catalog name. |
my_catalog |
| Namespace |
string |
Yes |
The name of the namespace bound to the agent. You can call ListLumaNamespaces to obtain the namespace name. |
my_namespace |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. A value of Success indicates that the call was successful. If the call fails, a specific error code is returned. |
Success |
| Data |
object |
The list of knowledge bases bound to the agent, including entries and pagination information. |
|
| KnowledgeBases |
array |
The list of knowledge bases bound to the agent. |
[{"KnowledgeBaseName":"my-knowledge-base"}] |
| KnowledgeBase |
The details of a knowledge base, including the status, metadata schema, and chunking and retrieval configurations. |
||
| MaxResults |
integer |
The maximum number of results per page that takes effect for this request. If MaxResults is not specified, this value is the server default. If the specified value exceeds the upper limit, this value is the adjusted value. |
20 |
| NextToken |
string |
The pagination token for the next page (an opaque string). Pass this value as the NextToken parameter in the next request to retrieve the next page. An empty value indicates that no more data is available. |
ca1eb85f5d99c7d6a97e6**** |
| TotalCount |
integer |
The total number of knowledge bases bound to the agent, regardless of the number of entries returned on the current page. |
10 |
| Message |
string |
The message returned by the operation. The value Operation success is returned if the call was successful. A specific error description is returned if the call fails. |
Operation success |
| RequestId |
string |
The unique ID of the request. Use this ID for troubleshooting and when you submit a ticket. |
34AD682D-5B91-5773-8132-AA38C130**** |
| Success |
boolean |
Indicates whether the call was successful. A value of true indicates that the call was successful. |
true |
Examples
Success response
JSON format
{
"Code": "Success",
"Data": {
"KnowledgeBases": [
{
"Catalog": "my_catalog",
"ChunkConfiguration": {
"HeadingLevel": 2,
"MaxChunkSize": 600,
"OverlapSize": 40,
"PreprocessRules": {
"RemoveUrlsAndEmails": false,
"ReplaceConsecutiveWhitespace": true
},
"Separator": "\\\\n\\\\n",
"Strategy": "BY_SEPARATOR"
},
"CreatedAt": "2026-08-24T10:00:00Z",
"Description": "Product documentation knowledge base",
"EmbeddingDimension": 1024,
"EmbeddingModel": "text-embedding-v4",
"FailureReason": "OssException: BucketAlreadyExists ...",
"KnowledgeBaseName": "product-docs",
"MetadataSchema": [
{
"Name": "department",
"Type": "STRING",
"Value": "EventHouse",
"ValueMode": "CONSTANT"
}
],
"Namespace": "my_namespace",
"SearchConfiguration": {
"Mode": "HYBRID",
"RankAlgorithm": "RRF",
"RerankEnabled": false,
"RerankModel": "qwen3-rerank",
"RrfK": 60,
"TopK": 20,
"VectorWeight": 0.7
},
"Status": "ACTIVE",
"UpdatedAt": "2026-08-24T10:00:00Z"
}
],
"MaxResults": 20,
"NextToken": "ca1eb85f5d99c7d6a97e6****",
"TotalCount": 10
},
"Message": "Operation success",
"RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid | |
| 403 | ServiceNotEnable | Service not enable | |
| 404 | AgentNotFound | Agent not found | |
| 404 | ResourceNotFound | The specified resource is not bound to the agent |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.