Data Ingestion API Docs: Full PHP, Python and cURL Examples, Plus content_type Guidance
The Data Ingestion API documentation has been expanded: complete code examples for both submission methods, and a proper explanation of the content_type field.
01 Working examples for both submission methods
There are now full working PHP and Python examples for both ways of submitting documents — a JSON body and a file upload — including error handling and job status polling, so you can follow a request through from submission to completion. The cURL examples have been updated for every workflow.
- PHP and Python, both methods. JSON body and file upload, each shown end to end.
- Error handling. Included in the examples rather than left as an exercise.
- Job status polling. Shown, so you know when an ingestion has finished.
- cURL. Refreshed across every workflow.
02 The content_type field, explained
The field reference now covers content_type properly: what the default behaviour is, how the value controls whether a document is displayed as web or media in search results, and how MIME types are auto-detected when you use rtf:true.
content_type.