REST API
Features
Exactly one workflow can be served in each deployment, so if you need multiple workflows deployed, you should create a deployment for each one.
Only workflows are supported in REST API deployments.
When a REST API deployment is created, a dedicated, isolated container will be provisioned and will be ready to serve requests exclusively for the deployed workflow.
When creating (or editing) a deployment, its resource allocation constraints must be specified. The deployment will consist of a single container instance and will not be horizontally scaled. Resource allocation consists of the maximum number of virtual CPUs and maximum amount of memory (in GiB) the deployment is allowed to consume.
Due to the always-on nature of the REST API deployment, it will continuously consume resources which count against your resource quota, until its termination.
The deployment will have its own, unique address accessible on the public internet. This address will be automatically generated when the deployment is created. This unique external address can be reused from other deployments, which can be useful in certain scenarios. For more details, see external address management.
Workflow variables can be provided as query parameters if needed, and they can be mapped to shorter, simpler names when creating the deployment. Similarly, the workflow itself can be mapped to a simpler, shorter naming scheme in the deployment URL.
Inputs and outputs
Aside from the previously mentioned workflow variable inputs, REST API deployments can take data as input, and also return data as output. Input data are always passed to the workflow via the first Input operator (as defined by the execution order).
The Input operator must have External Overwrite enabled so that it can process the input properly.

The data on the workflow's first output port will be returned in the response (as defined by the execution order).
Inputs and outputs are passed as JSON representation of the Altair AI Cloud data format, but you can transform this format when creating the deployment.
Create a REST API deployment
When you create a deployment, select REST API as your deployment type.

-
Name - Give your deployment an arbitrary name.
-
Workflow - Select the workflow you wish to deploy.
-
Description (optional) - Describe what the workflow does.
-
External address - Choose Generate new for a new deployment. More complex cases will be explained below.
-
URL mapping - You may choose to use the workflow name in the URL. But to shorten, simplify, or hide this name, you can map it to a new name in the deployed URL.
-
Parameter mapping - If your workflow needs further inputs as workflow variables that you wish to expose, provide them here.
- Value - The parameter name in the workflow
- Variable - You may choose to use the workflow parameter name also for the deployment. But to shorten, simplify, or hide the parameter name given by Value, rename it in Variable. The Variable name is the one that appears when invoking the REST API.
-
Resource allocation - Select the resource quota the deployment is allowed to consume.
-
Security - You can add a layer of security for your endpoints (this setting is enabled by default; it can be disabled if simpler access is preferred).
