Skip to main content
Every nanonets.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Files

approve

files.approve Approve a validated file from an approval stage, which can trigger exports Risk: write
Input Output: Record<string, any>

assign

files.assign Assign files to a team member by email for review Risk: write
Input Output: Record<string, any>

delete

files.delete Permanently delete a file and its predictions from a model Risk: destructive
Input Output: Record<string, any>

retryExports

files.retryExports Re-run the export integrations for the given files Risk: write
Input Output

retryPredictions

files.retryPredictions Re-run OCR prediction for the given files Risk: write
Input Output: Record<string, any>

unapprove

files.unapprove Reopen a previously approved file; it cannot be rejected here Risk: write
Input Output: Record<string, any>

updateFields

files.updateFields Replace the field set of one page of a file: unchanged boxes stay, new boxes need is_new, and any omitted field is deleted Risk: write
Input
Output: Record<string, any>

Integrations

executeQuery

integrations.executeQuery Run arbitrary SQL against a connected store; documented examples include UPDATE, which cannot be undone Risk: destructive
Input Output

list

integrations.list List external integrations with their IDs, types and masked connection info Risk: read
Input: empty object Output

Models

train

models.train Train or retrain a model from its uploaded images; the model state moves through the training queue Risk: write
Input Output

updateGuidelines

models.updateGuidelines Add or update the natural-language field and table extraction guidelines of an Instant Learning model Risk: write
Input Output: Record<string, any>

uploadTrainingUrls

models.uploadTrainingUrls Add training images to a model by URL, with optional box annotations, before (re)training Risk: write
Input
Output

Predictions

createFromFile

predictions.createFromFile Upload a base64 PNG or JPEG to an OCR model and extract fields synchronously or, with async, as a pollable request Risk: write
Input Output

createFromUrls

predictions.createFromUrls Extract fields from public image URLs with an OCR model, synchronously or as a pollable async request Risk: write
Input Output

getFileByFileId

predictions.getFileByFileId Fetch every page of a prediction file by request file ID, listed as moderated and unmoderated; the poll target for async requests Risk: read
Input Output

getFileByPageId

predictions.getFileByPageId Fetch one prediction page with its boxes and raw OCR output Risk: read
Input Output

listFiles

predictions.listFiles List a model prediction files in a day-since-epoch window, split into moderated and unmoderated Risk: read
Input Output