Run an automation app by its name or app ID. The input for the run can be a batch ID or an input file path.
Running an automation app via a deployment is generally preferred over running an app directly.
Deployments offer additional features including upstream and downstream integrations, deployment metrics, human review workflows, and secret and configuration management.
Learn more about deployments to decide if you’d rather use the Run deployment API operation.
IB-Context header.Typically your organization ID. See Authorization and context identification for details.
Required unless using app_id. The name of the app to run.
The account that generated the app. If not specified, defaults to your AI Hub username.
For custom apps belonging to you, accept the default. For AI Hub Marketplace apps published by Instabase, specify instabase.
Required unless using input_dir. The batch ID of a batch created with the Batches endpoint. All files uploaded to the batch are used as input for the run.
Required unless using batch_id. The path of the input folder in a connected drive or Instabase Drive. See Specifying file paths.
Defines a specific location for the output to be saved in a connected drive or Instabase Drive. If defined, overrides the output_workspace value. See Specifying file paths.
Status of the run. Possible values and meanings:
CANCELLED — A user cancelled the runCOMPLETE — The run successfully completed. A human review completed if it was required. Results are retrievable, but some fields may have failed and have the value ERROR.FAILED — The run failed to completePAUSED — This status is reserved for future useRUNNING — The run is in progress and is not pausedSTOPPED_AT_CHECKPOINT — A validation error has paused the run for human reviewWhen the run finished, in Unix time nanoseconds. null if run is still in progress.
Required unless using app_name. The app ID of the app to run.
The workspace in which to run the app. Output saves to the specified workspace. If not defined, the default is your personal workspace.
output_workspace or output_dir.