Skip to main content

Endpoint

Authentication

This endpoint requires authentication via API key. Include your API key in the X-API-Key header:

Path Parameters

Request Body

The request body must be a JSON object with the following fields:

Required Fields

Optional Fields

InputValue Types

Each variable value must include variable_id, type, and value. The type determines the value format:

File InputValue

For file inputs, you have three options: Option 1: Reference previously uploaded file
Option 2: Include base64 content

Multiple Files InputValue

For variables that accept several files, use type: "multiple_files" and provide a files array. Each entry has the same shape as a single File InputValue - value (the filename) plus either a file_id reference or file_extension + base64_content. You can mix references and uploads within the same array.

Number With Currency InputValue

For monetary fields, use type: "number_with_currency". Send value as a plain amount to use the field’s default currency:
To set the currency explicitly, send value as an object with value and currency:
A plain amount uses the field’s default_currency. If the field has no default currency, the amount is saved without a currency, so send the object form when the currency matters.
USD, EUR, GBP, JPY, AUD, CAD, CHF, CNY, SEK, NZD, MXN, SGD, HKD, NOK, KRW, TRY, INR, RUB, BRL, ZAR, DKK, PLN, TWD, THB, MYR, IDR, HUF, CZK, ILS, CLP, PHP, AED, COP, SAR, RON, BGN, ARS, VND, UAH, PKR, EGP, NGN, BDT, QAR, KWD, OMR, BHD, PEN, CRC, DOP
A code outside this list fails request validation with a 422. A supported code that the field doesn’t allow, or a currency on a variable that isn’t part of the workflow, returns a 400.

Dynamic Table InputValue

For table fields, use type: "dynamic_table" and send value as an array of rows. The column names and their order come from the variable’s columns in the workflow schema. Each row can be an object keyed by column name:
Or a list of cells in column order. A list row must have exactly one cell per column, including formula columns, so pass null for those. In this example Total is a formula column:
You can mix both row forms in the same table. Cells can be strings, numbers, booleans, or null. Each cell is saved as a string: booleans become "true" or "false", and null becomes an empty string.
A list row whose cell count doesn’t match the table’s columns returns a 400.

Request Example

Response

Success Response

Status Code: 200 OK

Response Fields

Error Responses

400 Bad Request

Returned when the version format is invalid or request structure is malformed.
On this endpoint, a currency or table value that fails the workflow’s rules currently also returns "Invalid version format: {version}", even when the version is valid. This covers a currency the field doesn’t allow, a currency on a variable that isn’t part of the workflow, and a list row with the wrong number of cells. Check those values if you get this error with a valid version. Initiate Workflow (Flexible) returns the specific message instead.

401 Unauthorized

Returned when authentication fails. See the authentication errors section for details.

404 Not Found

Returned when the workflow or version doesn’t exist.

422 Validation Error

Returned when the request body is invalid or variables don’t match the workflow schema.

500 Internal Server Error

Returned when workflow initiation fails due to a server error.

Notes

Save the task_id from the response to track the workflow’s progress using the Get Task endpoint.
All required variables from the workflow schema must be provided in the variables array. Missing required variables will result in a 422 error.
Use the metadata field to add custom tracking information like source system, request ID, or priority level for filtering and reporting.

Use Cases

This endpoint is useful for:
  • Automated workflow triggering - Start workflows from external systems or events
  • Integration workflows - Trigger Chamelio workflows from your applications
  • Bulk processing - Initiate multiple workflow instances programmatically
  • User-initiated actions - Allow end users to start workflows through custom interfaces