Description
This endpoint allows you to trigger a Transflow automation workflow. You can pass recipient information (phone and email) and custom variables to the workflow, and optionally run it in draft mode for testing.
Your API key for authentication.
Your workspace ID for authentication.
Path Parameters
The unique identifier of the Transflow workflow to trigger.
Query Parameters
Whether to run the workflow in draft mode. Default: false. Use true for testing workflows.
Body
Recipient information for the workflow. Contains fixed phone and email fields. The phone number of the recipient in international format (e.g., “919876543210”).
The email address of the recipient.
Key-value pairs for template variables. Keys should match the variable names in your Transflow workflow, and values will replace the placeholders.
Request Example
{
"recipients" : {
"phone" : "919876543210" ,
"email" : "demo@example.com"
},
"variables" : {
"name" : "sam"
}
}
Response
Indicates whether the call was successful. true if successful, false if not.
Success or error response message.
The unique identifier for this workflow execution request. Use this ID to stop the workflow if needed.
200-Success
400-Bad Request
{
"success" : true ,
"message" : "Transflow triggered successfully" ,
"request_id" : "req_1234567890"
}