Book upgrade
Use this guide when you need to change a Book's processing class (book_class) after creation, for example from Instant to Complete.
For background on how Book and document processing tiers relate, see Processing Flows. To upgrade individual documents without changing the Book class, see Upgrade a document and Upgrade a mixed document.
When you create a Book in Ocrolus, it gets assigned a book_class that controls how documents inside it are processed. You have two options: Instant, which uses fully automated AI extraction and returns results in seconds, or Complete, which adds human-in-the-loop verification for the highest accuracy.
Sometimes you need to change that class after the Book is already created. That is what a Book upgrade is for.
You upgrade a Book by calling Update Book (POST /v1/book/update) and passing a new book_class.
TipBook class changes are forward-only. You can move a Book to a higher processing tier, but you cannot move it backward.
book_class | How it works | Best for |
|---|---|---|
INSTANT | Fully automated AI/OCR extraction, typically returned in seconds. | Fast triage and early decisioning |
COMPLETE | AI extraction plus human-in-the-loop verification when needed. Highest accuracy. | Final underwriting |
NoteInstant must be enabled for your organization. Contact your Ocrolus account manager if you need access. Some organizations also use classify-first Book classes. See Classify and Processing Flows.
The one-way upgrade rule
Book class changes only go in one direction:
INSTANT ──► COMPLETECOMPLETE is the highest tier. Once a Book reaches Complete, it stays there. This means:
- Further
book_classchanges are not allowed - Downgrades such as
COMPLETEtoINSTANTare rejected
The reason for this is straightforward. Once documents have been verified by human reviewers under Complete processing, rolling back would create inconsistency between what was verified and what your downstream systems receive. The restriction protects the integrity of your underwriting decisions.
Allowed transitions
Current book_class | Target book_class | Result |
|---|---|---|
INSTANT | COMPLETE | Allowed |
COMPLETE | COMPLETE | Rejected |
COMPLETE | INSTANT | Rejected (downgrade) |
NoteIf your organization uses classify-first Books, additional forward paths may be available, for example Classify to Instant or Classify to Complete. See Classify and Processing Flows.
Book upgrade vs. document upgrade
Before you call Update Book, it helps to decide whether you actually need a Book-level or a document-level upgrade. Both change the processing tier, but they scope that change differently.
| Book upgrade | Document upgrade | |
|---|---|---|
| What changes | The entire Book class, plus all future uploads | One document or mixed document only |
| Future uploads affected? | Yes, new documents follow the new Book class | No, new uploads still follow the Book class |
| When to use | The whole loan package needs Complete accuracy | Only some files need Complete; the rest can stay on Instant |
| Endpoint | POST /v1/book/update | POST /v1/document/upgrade or POST /v1/document/mixed/upgrade |
Before you upgrade
Ensure the following before calling the API:
- All documents in the Book must finish their current processing. The API blocks upgrades while any document is still in progress, so it is worth polling the Book status or waiting for a completion webhook before you make the call.
- Decide whether you need a Book upgrade or a document upgrade:
- Upgrade the Book when the whole package needs Complete processing, including future uploads.
- Upgrade documents when only some files need Complete and you want new uploads to stay on Instant.
How to upgrade a Book
Call Update Book with the Book identifier and the target book_class.
curl --request POST \
--url https://api.ocrolus.com/v1/book/update \
--header 'accept: application/json' \
--header 'authorization: Bearer <ACCESS_TOKEN>' \
--header 'content-type: application/json' \
--data '{
"book_uuid": "52dfdb53-6652-4d3a-a3db-fe864c6ff2fb",
"book_class": "COMPLETE"
}'What happens after a successful upgrade
| Scope | Behavior |
|---|---|
| Existing documents | Eligible documents are requeued and reprocessed under the new Book class. |
| Future uploads | New documents added to the Book are automatically processed at the new class level. |
Webhooks and the upgrade lifecycle
A typical Instant to Complete upgrade workflow looks like this:
- Upload documents to an Instant Book.
- Receive the Instant completion webhook. For example
book_verified. - Evaluate the Instant results. If they are sufficient, you are done. If you need higher accuracy, continue.
- Call
POST /v1/book/updatewith"book_class": "COMPLETE". - Wait for the Complete completion webhook.
- Consume the final verified results.
Errors
All upgrade failures return HTTP 400 with a message field describing the problem.
| Condition | Error message | What to do |
|---|---|---|
| Invalid transition or downgrade | Cannot change book class from COMPLETE to INSTANT | No action possible. The Book is already at the highest tier. |
| Documents still processing | Book cannot be upgraded while its document(s) are still processing | Wait for all documents to finish, then retry. |
| Instant not enabled | INSTANT product is not supported for this client. Please consult your account manager | Contact your Ocrolus account manager to enable Instant. |
Example error response
{
"status": 400,
"response": null,
"message": "Cannot change book class from COMPLETE to INSTANT",
"meta": {
"status": 400,
"msg": "Cannot change book class from COMPLETE to INSTANT"
}
}{
"status": 400,
"response": null,
"message": "Book cannot be upgraded while its document(s) are still processing",
"meta": {
"status": 400,
"msg": "Book cannot be upgraded while its document(s) are still processing"
}
}Related pages
Full API reference for POST /v1/book/update
Escalate a single document without changing the Book class
Escalate a mixed-PDF document without changing the Book class
Full map of Book classes, document types, and processing pipelines
Overview of Instant processing and its capabilities
Classify-first Book classes and their upgrade paths
Updated 2 days ago