REST API workflow
The typical REST API workflow has these stages:- Upload files.
- Create a new task.
- Poll the status of the task.
- Get results and data for verification.
- Process data in a custom verification UI (optional).
- Upload data for training (optional).
- Remove input and output files.

Adjust workflow stages
Open the sample project
C:\Users\Public\ABBYY\FlexiCapture\12.0\Samples\FlexiCapture\English\Banking_eng\banking_eng.fcproj.Set up the Advanced workflow schema
- On the Project menu, click Project Properties, and then click the Workflow tab.
- From the Schema drop-down list, select Advanced.
- Select the Exceptions, Recognition, Verification, Export, and Training stages.
- Clear the Rescanning, Data Verification, Document Assembly Check, Batch Integrity Check, and Export Confirmation stages.

Enable web stations for verification
Set the verification entry condition

Add a stage to export the XML layout
training/layout/{taskId}/{fileId} endpoint for your project.
Set the new stage's entry condition

Open the script editor

Set the script language

Add the export script
Save your changes
Adjust data export settings
After a batch submitted through the REST API is processed, the REST API picks up any exported files to make them available for download by the client. REST API projects do not require any special folder structure. You can use a flat folder structure, using the name of the root folder for each batch and document IDs as parts of file names. The REST API services assign a unique, random batch name to each batch submitted via the REST API, so unique file names are generated when exporting data from those batches. The sample project’s original export settings create a multi-level folder structure. The modified settings create a flat folder structure.
Original export settings (multi-level folder structure)

Modified export settings (flat folder structure)
Upload your modified project to ABBYY FlexiCapture Cloud
Open the upload dialog
Enter the server and tenant
Enter your credentials
Test the connection
Upload the project
Next steps
After you upload your project to ABBYY FlexiCapture Cloud:- Create an application that is connected to your project. For more information, see Create applications using the FlexiCapture REST API interface.
- To test whether you have connected your application correctly, process a sample batch.
- If you encounter any problems, see Processing error diagnostics.
