Skip to main content
POST
/
ocr
/
ingest
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.data_source.ingest(
    data_connector_name="data_connector_name",
)
print(response)
{
  "detail": "<string>"
}

Body

application/json
data_connector_name
string
required
file_names
string[] | null
job_id
string | null
clean_up_out_of_sync
boolean
default:true
file_count_to_run
integer | null
use_llm
boolean
default:false

Response

Successful Response