Ingestion
Last updated
Last updated
POST /ingestion/run HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 597
{
"config": {
"source_path": "",
"recursive": true,
"pages_to_read": 3,
"temp_dir": "text",
"reader_type": "text",
"api_base_url": "text",
"storage_provider": "aws",
"storage_credentials": {
"access_key": "text",
"secret_key": "text",
"bucket": "text",
"region": "us-east-1",
"account_id": "text",
"project_id": "text",
"bucket_name": "text",
"credentials_json": "text",
"application_key_id": "text",
"application_key": "text"
},
"workspace_id": "text",
"project_id": "text",
"task_id": "text",
"user_id": "text"
},
"catalogs": [
{
"id": "text",
"instruction": "text",
"fetch_all_metadata": false,
"metadata_scan": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}{
"success": true,
"message": "text",
"task_id": "text",
"status": "text",
"error": "text",
"total_folders": 0,
"total_files": 0,
"successful": 0,
"failed": 0,
"success_rate": "0.00%",
"execution_time": "0.00s",
"folders": [
{
"folder_path": "text",
"successful_count": 1,
"failed_count": 1,
"files": [
{
"source_path": "text",
"status": "text",
"classified_catalog_id": "text",
"error_message": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}
],
"errors": [
"text"
]
}GET /ingestion/health HTTP/1.1
Accept: */*
POST /ingestion/list-prefixes HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 279
{
"storage_provider": "aws",
"storage_credentials": {
"access_key": "text",
"secret_key": "text",
"bucket": "text",
"region": "us-east-1",
"account_id": "text",
"project_id": "text",
"bucket_name": "text",
"credentials_json": "text",
"application_key_id": "text",
"application_key": "text"
},
"prefix": ""
}{
"success": true,
"prefixes": [
"text"
],
"errors": [
"text"
]
}