Get Pipeline Document Status
client.pipelines.documents.getStatus(stringdocumentID, DocumentGetStatusParams { pipeline_id } params, RequestOptionsoptions?): ManagedIngestionStatusResponse { status, deployment_date, effective_at, 2 more }
GET/api/v1/pipelines/{pipeline_id}/documents/{document_id}/status
Get Pipeline Document Status
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
});
const managedIngestionStatusResponse = await client.pipelines.documents.getStatus('document_id', {
pipeline_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
});
console.log(managedIngestionStatusResponse.job_id);{
"status": "NOT_STARTED",
"deployment_date": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error": [
{
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"message": "message",
"step": "MANAGED_INGESTION"
}
],
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}Returns Examples
{
"status": "NOT_STARTED",
"deployment_date": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error": [
{
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"message": "message",
"step": "MANAGED_INGESTION"
}
],
"job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}