Documentation Index
Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workflow_id | string | Yes | Unique identifier for the workflow |
version | string | Yes | Version number (e.g., “1”) or “latest” for the most recent version |
Request Body
The request body must be a JSON object with the following fields:Required Fields
| Field | Type | Description |
|---|---|---|
attributes | array | List of simple key-value pairs for workflow variables (see below) |
Optional Fields
| Field | Type | Description |
|---|---|---|
files | array | List of files with base64 content (see File Format below) |
user | string | Email address of the user initiating the workflow. If not provided, workflow is attributed to the API key owner |
metadata | object | Optional key-value pairs (accepted but currently ignored) |
Attribute Format
Each attribute is a simple object withkey and value fields:
- Exact match by variable ID
- Case-insensitive match by variable title
- Normalized match (lowercase, spaces/underscores/hyphens ignored)
All values are provided as strings. The system will automatically convert them to the appropriate type based on the workflow schema.
File Format
Files are provided separately from attributes:When to Use This Endpoint
This endpoint is designed for scenarios where the integrating system or user cannot maintain variable-specific mapping and control. Use this endpoint when:- Generic integration systems that handle multiple workflows without custom configuration for each
- Low-code/no-code platforms where users configure integrations through UI without coding
- Form builders that generate dynamic field mappings based on workflow schemas
- Third-party tools that need to integrate with workflows but can’t be customized for each workflow’s schema
- Rapid prototyping where you want to test workflows without setting up precise type mappings
- Simple scripts where maintaining detailed variable schemas adds unnecessary complexity
If your integration requires precise control over variable types, file references, or needs to distinguish between fields with similar names, use the standard Initiate Workflow endpoint instead.
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
| Field | Type | Description |
|---|---|---|
task_id | integer | Unique identifier for the created task. Use this to track task status |
workflow_state_id | string | Internal workflow state identifier |
workflow_id | string | Workflow identifier that was initiated |
version | integer | Workflow version number that was used |
status | string | Initial task status (typically "in_progress" or "pending") |
message | string | Success confirmation message |
Error Responses
400 Bad Request
Returned when the version format is invalid, request structure is malformed, or attribute matching fails.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 required variables are missing.500 Internal Server Error
Returned when workflow initiation fails due to a server error.Comparison with /initiate
| Aspect | /initiate | /initiate-flexible |
|---|---|---|
| Input format | Typed InputValue objects | Simple {key, value} pairs |
| Variable matching | Exact variable_id only | Flexible: ID → title → normalized |
| File handling | Requires file_id or typed object | Base64 content, matched by order |
| Type specification | Explicit type field required | Auto-detected from schema |
| Use case | Precise control, file references | Systems without variable-specific mapping |
Notes
Save the
task_id from the response to track the workflow’s progress using the Get Task endpoint.Use Cases
This flexible endpoint is ideal for:- Generic integration platforms - iPaaS solutions (Zapier, Make, Workato) that connect to multiple workflows without per-workflow configuration
- Form builders - Dynamic forms that adapt to workflow schemas without hardcoded field mappings
- No-code tools - Platforms where users configure integrations visually without access to variable IDs
- Multi-tenant systems - Applications serving multiple organizations with different workflow schemas
- API aggregators - Services that normalize data from various sources before initiating workflows
- Rapid prototyping - Quick testing without setting up precise variable mappings
- Simple scripts - Automation where maintaining detailed schemas is unnecessary overhead