- Receive a list of all available skills.
- Create and start a transaction.
- Monitor the transaction status.
- Download source files and result files.
Step 1. Receive a list of all available skills
To receive a list of all available skills, send aGET request to the skills resource:
Run the following command:
As a result, you will receive information about all the skills added to the application instance.
Step 2. Create and start a transaction
To create and start a transaction, send aPOST request to the transactions/launch resource:
In the URL, specify the skillId query parameter (returned by the previous API call). In the body, send the file to be processed along with optional metadata. You can also pass optional registrationParameters and skillParameters in the request body.
The following is an example request body:
id of the created transaction.
Step 3. Monitor the transaction status
To monitor the transaction status, send aGET request to the transactions resource:
Run the following command:
As a result, you will receive a response containing the transaction status. Transaction processing may be in one of the following statuses:
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 4.
Step 4. Download source files and result files
To download source files and result files, send aGET request to the transactions/files/download resource, where you should specify the file ID, which was received in the previous request:
Run the following command:
