Imports
Put a PDF on an upload link
No API key: the token in the path is the credential. It comes from upload.url or upload.curl on an import made with upload: true, works once, and dies after 15 minutes. A file that is refused (not a PDF, over 20 MB) does not spend it.
post/v1/imports/uploads/{token}
Request
- Base URL: https://api.galleyrender.com
- URL: https://api.galleyrender.com/v1/imports/uploads/{token}
- Auth: none required
Path parameters
tokenstring required
The one-time upload token.
Response
Accepted; the import proceeds.
Example response
{
"id": "imp_4tq8m2x7k1bv",
"document_kind": "invoice",
"closest_starter": "invoice",
"language": "en",
"questions": [
{
"id": "q1",
"prompt": "Is this paragraph printed the same on every document, or does it change?",
"options": [
{
"value": "field_with_default"
}
]
}
],
"fonts_substituted": [
{
"from": "Helvetica",
"to": "public-sans"
}
],
"draft_summary": {
"fields": [
"buyer.name",
"invoice_number",
"line_items[]"
]
},
"template": {
"ref": "ashcroft-invoice@1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.