Paginated List Pipeline Documents
client.pipelines.documents.list(stringpipelineID, DocumentListParams { file_id, limit, only_api_data_source_documents, 3 more } query?, RequestOptionsoptions?): PaginatedCloudDocuments<CloudDocument { id, metadata, text, 4 more } >
GET/api/v1/pipelines/{pipeline_id}/documents/paginated
Paginated List Pipeline Documents
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const cloudDocument of client.pipelines.documents.list(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
)) {
console.log(cloudDocument.id);
}{
"documents": [
{
"id": "id",
"metadata": {
"foo": "bar"
},
"text": "text",
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"page_positions": [
0
],
"status_metadata": {
"foo": "bar"
}
}
],
"limit": 0,
"offset": 0,
"total_count": 0
}Returns Examples
{
"documents": [
{
"id": "id",
"metadata": {
"foo": "bar"
},
"text": "text",
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"page_positions": [
0
],
"status_metadata": {
"foo": "bar"
}
}
],
"limit": 0,
"offset": 0,
"total_count": 0
}