Register a file by URL, or get a presigned upload URL
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Bearer authentication of the form Bearer <token>, where token is your auth token.
Adds a file to your reusable corpus, either by URL or by uploading the bytes yourself.
Two request shapes, both pure JSON — send one or the other, never both.
By URL. { url, name?, processing? } registers the file and fetches it over http(s). The media type is sniffed from the response, so any mimeType you send is ignored. You get the file back with status: "processing".
By upload. { name, mimeType, processing? } reserves the record and returns uploadUrl plus uploadExpiresAt (15 minutes). PUT the bytes to that URL with a Content-Type header exactly equal to the mimeType you sent; parsing starts the moment they land.
Parsing engine — processing accepts auto (the default, self-upgrades to OCR on scans), ocr, simple, transcribe and transcribe_diarize. Audio and video default to transcribe_diarize.
Learn more: Working with files