Specify document metadata in the request, and get back an upload_url at which to put the PDF, for example with curl -T ./sample.pdf.
upload_url
curl -T ./sample.pdf