Prerequisites
TRELENT_DATA_INGESTION_API_URLpointing to your deploymentTRELENT_DATA_INGESTION_API_TOKENtoken with theFILE:UPLOADpermission- A PDF, video, or Office document to ingest (for example
sample.pdf)
- TypeScript
- Python
Installation
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.
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.
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.If you need to reuse uploads across multiple jobs, call
listFiles() to list every file ID still within its retention window.