Introduction
The Run API is simplest way to consume your project APIs. You trigger a single API from your project, and then retrieve the results directly.Asynchronous API
The asynchronous API (Async API) allows you to start the API call and receive arunId which you can use to check the status of the run and get the result.
In more detail, consuming the Async API involves the following steps:
- Start the API run: Start the API run by calling start with the API name, parameters and any other configurations.
- Get the
runId: The start response will include arunId, it will be used to get the result. For example:
- Check the result: Use the
runIdto check the result of the run by calling result.
- The response will include a
statusfield to indicate the status of the run.pendingmeans the run is still in progress,completedorfailedmeans the run finished, with success and failure respectively.
The
runId can also be used to monitor your runs in the Runs tab of your project.