- Receiving a list of all available skills
- Creating an empty transaction
- Adding a set of files to be processed in the transaction
- Starting the transaction
- Monitoring the transaction status
- Downloading source files and result files
Receiving a list of all available skills
To do so, send aGET request to the skills resource:
Creating an empty transaction
To do so, send the followingPOST request to the transactions resource:
skillId parameter, which was returned by the previous API call. As a result, you will receive a response containing the id of the created transaction.
Adding a set of files to be processed in the transaction
Important! The maximum number of files in a transaction is 1000. A set of files can be added in two ways:Adding files directly to the transaction
To do so, send aPOST request to the transactions/<transaction-id>/files resource:
Adding files to a document
First, create a document by sending aPOST request to the transactions/<transaction-id>/documents resource:
POST request to the transactions/<transaction-id>/documents/<document-id>/sourceFiles resource:
Starting the transaction
To start the transaction with the specified skill and files, send the followingPOST request to the transactions/<transaction-id>/start resource:
Monitoring the transaction status
To start monitoring the transaction status by using a loop with a short timeout (we do not recommend checking the status more often than once per second), send aGET request to the transactions/<transaction_id> resource with the transaction identifier in the request URI:
New. The transaction was created but has not been queued for processing yet.Queued. The transaction is queued for processing.InProgress. The transaction is being processed.Processed. The transaction was successfully processed.ProcessedWithWarnings. The transaction was processed but warnings occurred.NotProcessed. The transaction was not processed due to an error.Deleted. The transaction was deleted by the user or automatically by the retention policy.
Processed or ProcessedWithWarnings, go to step 6.
Downloading source files
To request a list of documents with their identifiers, send aGET request to the transactions/<transaction-id>/documents resource and specify the transaction identifier:
GET request to the transactions/<transaction-id>/documents/<document-id> resource:
GET request to the transactions/<transaction-id>/files/<file-id>/download resource:
