Upload PDF to Book
Upload a PDF file to a <glossary:Book> for processing.
You can upload a file to this endpoint as a multipart/form-data encoded payload. To learn more, see multipart/form-data guide.
Direct document upload is not permitted for Books configured with the Classify-only processing type. Attempting to upload to such a Book returns an error indicating that direct document upload is not allowed for that Book type.
For all Documents except bank statements, the optional form_type parameter can be used to specify the type of <glossary:Document>. You can see form types we support in our forms directory.
For more information, please contact your Account Executive or Customer Success Executive to discuss other options for your organization.
📘 > The maximum file size for upload is 200 MB.
Request
- Base URLhttps://api.ocrolus.com
- URLhttps://api.ocrolus.com/v1/book/upload
- AuthOAuth 2Client credentialsToken URL: https://auth.ocrolus.com/oauth/token
Request body multipart/form-data
Example request
{
"pk": 30219565,
"book_uuid": "19aab921-25a5-4beb-a59e-ac72320061d6",
"form_type": "PAYSTUB",
"doc_name": "example_document"
}Response
200
Example response
{
"status": 200,
"response": {
"uploaded_docs": [
{
"pk": 51542103,
"id": 51542103,
"uuid": "05afcf59-cd34-44a6-a8e3-efaa6de24512",
"name": "bank-statement.pdf",
"page_count": 4,
"checksum": "716a9e2119b197fc8fed9e2ca3e56cae",
"created_ts": "2023-02-09T10:47:40Z"
}
]
},
"message": "OK"
}Changes
No recorded changes to this operation across all 1 revision of this API.