Using a file
When submitting a parse job to the dataset, you can provide the content of the file in one of three ways:file_id
: The ID of a file that has been previously uploaded to the Upload File endpoint. This is the most common method.file_url
: A publicly accessible URL that points to the file you want to parse. The API will download the file from this URL. Redirects are also supported, but the URL and theLocation
header must point to a file that is publicly accessible.raw_text
: Raw text content, if you want to perform structured extraction from non-file sources; such as emails, HTML, CSV, XML, etc.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the dataset to parse
Body
application/json
File source - must be exactly one of: file_id, file_url, or raw_text
Response
Dataset file parsed successfully
The response is of type object
.