Create document PDF upload URL
create-document-pdf-upload-urlCreate a signed URL that a single PDF can be POST-uploaded to, for later use with create-document-from-pdf-upload.
Use this tool when:
The user wants to create a document from an existing PDF file and you need somewhere to upload it to first
Returns a uuid (pass it to create-document-from-pdf-upload after the upload completes), a url (target of the POST request), a fields map to send as form fields in the POST body before the file itself, and an expires_at timestamp after which the URL stops working.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Perform a multipart/form-data POST request to this URL to upload the PDF | |
| uuid | No | Send this UUID to create-document-from-pdf-upload AFTER uploading the file to the given URL | |
| fields | No | Form fields to send in the POST body, before a final "file" field holding the PDF contents | |
| expires_at | No | When the URL stops being usable |