Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
Operation description
Retrieves the full content of a specified text chunk from a knowledge base bound to a Luma Agent.
Try it now
Test
RAM authorization
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 this value. |
my_catalog |
| Namespace |
string |
Yes |
The name of the namespace bound to the Agent. You can call ListLumaNamespaces to obtain this value. |
my_namespace |
| KnowledgeBaseName |
string |
Yes |
The name of the knowledge base bound to the Agent. You can call ListLumaKnowledgeBases to obtain this value. |
my-knowledge-base |
| DocumentId |
string |
Yes |
The unique identifier of the document. You can call ListLumaDocuments to obtain this value. |
doc-a1b2c3d4 |
| ChunkSeq |
integer |
Yes |
The sequence number of the text chunk within the document, starting from 0. You can call ListLumaChunks to obtain this value. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The message returned by the operation. The value is Operation success if the call succeeds, or a specific error description if the call fails. |
Operation success |
| RequestId |
string |
The unique identifier of the request, used for troubleshooting and ticket submission. |
34AD682D-5B91-5773-8132-AA38C130**** |
| Data | KnowledgeBaseChunk |
The chunk details, including the body content and position. |
|
| Code |
string |
The response code of the operation. A value of Success indicates that the call succeeds. Otherwise, a specific error code is returned. |
Success |
| Success |
boolean |
Indicates whether the call was successful. A value of true indicates success. |
true |
Examples
Success response
JSON format
{
"Message": "Operation success",
"RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
"Data": {
"ChunkSeq": 12,
"ChunkSize": 128,
"Content": "EventBridge supports routing events to multiple target services",
"CreatedAt": "2026-08-24T10:00:00Z",
"DocumentId": "doc-bp1xxxxxxxxxxxx",
"Enabled": true,
"FileName": "product-handbook.pdf",
"SourceLocation": "p.3",
"TitlePath": "Installation Guide>Prerequisites",
"UpdatedAt": "2026-08-24T10:00:00Z"
},
"Code": "Success",
"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.