> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Web Services API of the ABBYY FlexiCapture Application Server

> Walk through the standard ABBYY FlexiCapture Web Services API scenario: connect, scan and send documents, verify, rescan, and retrieve processing results.

The standard usage scenario includes the following processing stages:

* [Connect to the Web Services API](/flexi-capture/api/using/connecting)
* [Scanning the documents and sending them for processing](/flexi-capture/api/using/scanning-api-using)
* [Verifying the scanned documents](/flexi-capture/api/using/verification)
* [Rescanning the documents](/flexi-capture/api/using/rescanning-api-using)
* [Getting the processing results](/flexi-capture/api/using/results)

It is recommended to use Web Services API to process documents at [User Type](/flexi-capture/api/structures/t-processing-stage-type)  (ID=2000) stages. These stages can be created on the Workflow tab of the **Project Properties** dialog box in the Advanced mode. When connecting, the "External User" (ID=12) [role](/flexi-capture/api/structures/t-role-type) and the "External Station" (ID=10) [station type](/flexi-capture/api/structures/t-workstation-type) must be used.

For tasks at these stage, both pre- and post-processing are always executed, irrespective of the stage type specified when calling the [CloseTask](/flexi-capture/api/methods/close-task) method (for other stages, post-processing is executed only if the stage of the required type is specified, e.g. "Verification Postprocessing"). During pre-processing, [XML-files](../../Resources/DocumentData.xsd) with description of documents of the task are created. It is necessary to upload these documents by the using a [POST request](/flexi-capture/api/files/files), make necessary changes and save them on the server, then close the task by the [CloseTask](/flexi-capture/api/methods/close-task) method. During post-processing, information from [XML-files](../../Resources/DocumentData.xsd) that describes the documents will be saved in ABBYY FlexiCapture database.
