Skip to main content
POST
/
ocr
/
list_source_files
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.list_source_files(
    data_connector_name="data_connector_name",
)
print(response)
{
  "detail": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to list files from a data source.

data_connector_name
string
required
prefix
string | null
search_query
string | null
limit
integer
default:1000
Required range: 1 <= x <= 10000
offset
integer
default:0
Required range: x >= 0

Response

Files listed successfully