Set environment variables
<your-unstructured-api-url>
with the Unstructured Partition Endpoint base URL, which is https://api.unstructuredapp.io
<your-unstructured-api-key>
with your Unstructured API key, which you generated earlier on this page.Create a partition job
curl
command, replacing <path/to/file-1>
with the path to the source file on your local machine. To specify
multiple files, repeat the --form 'files=@<path/to/file-N>;type=application/pdf'
option in this command for each additional file.If the source file is not a PDF file, then remove ;type=application/pdf
from the related --form
option in this command.<job-id>
value, as you will need it in the next step.Check the status of the job
curl
command, replacing <job_id>
with the <job_id>
value from the previous step.curl
command until the job is complete.Examine the results
elements
array, for example:curl
option -o, —output <file> in future command runs.