> ## 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.

# Verifying the documents

> Verify documents through the ABBYY FlexiCapture Web Services API by requesting a task, fetching its files, editing them, and returning the task to the server.

To verify the documents:

1. [Connect to Web Services API](/flexi-capture/api/using/connecting).
2. [Open a session](/flexi-capture/api/methods/open-session).
3. [Open a project](/flexi-capture/api/methods/open-project).
4. [Request a task](/flexi-capture/api/methods/get-task).
5. [Open the batch specified in the task](/flexi-capture/api/methods/open-batch).
6. [Request the list of documents in the task](/flexi-capture/api/methods/get-task-documents).
7. [Requests the files from the server](/flexi-capture/api/files/files) which are attached either to the [task](../../Resources/VerificationData.xsd) (data verification stage) or to the [document](../../Resources/DocumentData.xsd) (verification stage).
8. If required, modify the files of the task and [save them on the server](/flexi-capture/api/files/files).
9. [Return the task to the server](/flexi-capture/api/methods/close-task).
10. [Close the project](/flexi-capture/api/methods/close-project).
