Prerequisites
DATA_INGESTION_API_URL(orTRELENT_DATA_INGESTION_API_URL) pointing to your deploymentDATA_INGESTION_API_TOKEN(orTRELENT_DATA_INGESTION_API_TOKEN)- A PDF, video, or Office document to ingest (for example
sample.pdf)
1
Upload a file
Upload a file to the API. It stores the object under your account and returns a file ID that stays valid until the upload expires.
- TypeScript
- Python
2
Start a job with the file connector
Use the returned file ID to create a job. The connector definition references one or more uploaded files and tells the service to pull inputs from managed storage.
- TypeScript
- Python
On success, the API responds with a
job_id. Capture that ID for status polling.3
Poll job status and retrieve outputs
Query the job status until it becomes
completed. When complete, the response includes delivery pointers (signed URLs or bucket locations) for generated Markdown and images.- TypeScript
- Python
If you need to reuse uploads across multiple jobs, call
listFiles() / list_files() to list every file ID still within its retention window.