Scenario Automations
Operations related to Scenario Automations, the automated marketing workflows that guide users through multi-step journeys based on behaviors and triggers. Scenarios are composed of nodes linked by edges, with lifecycle states:
Triggers - Event-based ($transaction_confirmed, $basket_view), segment entry, or manual testing
Node types - Wait (time delays), Send email, Custom action, Add to segment, If conditions, Exit conditions
Lifecycle states - Draft (being built), Paused (saved but inactive), Active (live and processing users)
Use cases - Cart abandonment, post-visit campaigns, rewarding frequent readers, onboarding flows
Usage limits - Default 100 paused/active scenarios, 20 active scenarios per organization
Users progress through nodes along edges until scenario completion or exit condition.
Relevant documentation:
Get a scenario exit condition by id
ID of the scenario
ID of the scenario exit condition
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/scenarios/{scenario_id}/exit_conditions/{scenario_exit_condition_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "EVENT",
"scenario_id": "text",
"created_by": "text",
"id": "text",
"creation_ts": 0,
"query_id": "text"
}
}Delete a scenario exit condition
ID of the scenario
ID of the scenario exit condition
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/scenarios/{scenario_id}/exit_conditions/{scenario_exit_condition_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}ID of the scenario
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/scenarios/{scenario_id}/exit_conditions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"max_results": 1,
"count": 1,
"first_result": 1,
"data": [
{
"type": "EVENT",
"scenario_id": "text",
"created_by": "text",
"id": "text",
"creation_ts": 0,
"query_id": "text"
}
],
"status": "ok"
}ID of the scenario
0Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/scenarios/{scenario_id}/exit_conditions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"type": "EVENT",
"scenario_id": "text",
"query_id": "text"
}{
"status": "ok",
"data": {
"type": "EVENT",
"scenario_id": "text",
"created_by": "text",
"id": "text",
"creation_ts": 0,
"query_id": "text"
}
}Last updated
Was this helpful?