curl "https://api2.ecomailapp.cz/pipelines/42/actions/abc-123" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$pipelineId = 42;
$actionId = 'abc-123';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/pipelines/{$pipelineId}/actions/{$actionId}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"data": {
"id": "abc-123",
"type": "mail",
"properties": {
"name": "Welcome email",
"template": 42
}
}
}
{
"message": "Action not found"
}
Automations
Get automation action detail
Retrieve detail of a specific action (node) within a given automation.
GET
/
pipelines
/
{id}
/
actions
/
{actionId}
curl "https://api2.ecomailapp.cz/pipelines/42/actions/abc-123" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$pipelineId = 42;
$actionId = 'abc-123';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/pipelines/{$pipelineId}/actions/{$actionId}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"data": {
"id": "abc-123",
"type": "mail",
"properties": {
"name": "Welcome email",
"template": 42
}
}
}
{
"message": "Action not found"
}
integer
required
Automation ID.
string
required
Action ID.
curl "https://api2.ecomailapp.cz/pipelines/42/actions/abc-123" \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$pipelineId = 42;
$actionId = 'abc-123';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api2.ecomailapp.cz/pipelines/{$pipelineId}/actions/{$actionId}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
{
"data": {
"id": "abc-123",
"type": "mail",
"properties": {
"name": "Welcome email",
"template": 42
}
}
}
{
"message": "Action not found"
}
Action types
| Type | Description |
|---|---|
mail | Send an email. |
sms | Send an SMS. |
wait | Wait for a specified duration. |
check | Conditional branch (if/else). |
split | A/B split test. |
tag | Add a tag to the subscriber. |
untag | Remove a tag from the subscriber. |
subscribe | Subscribe to a list. |
unsubscribe | Unsubscribe from a list. |
edit | Edit subscriber fields. |
webhook | Send a webhook. |
trigger | Trigger another automation. |
goal | Goal (wait for condition). |
end | End of automation. |
note | Internal note. |
⌘I