curl --request POST \
--url https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"revision": 1
}'import requests
url = "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate"
payload = { "revision": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 1})
};
fetch('https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 1\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'revision' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate"
payload := strings.NewReader("{\n \"revision\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a20d6a-b928-7b01-bc78-8a5df1921326",
"name": "Welcome journey",
"status": "draft",
"revision": 1,
"latest_version": 0,
"timestamp_created": "2026-11-24T11:57:07.752Z",
"timestamp_updated": "2026-11-24T11:57:07.752Z",
"connection_id": "01a20d6a-b928-7b01-bc78-8a5e59b281ca",
"draft_design": {
"trigger": {
"type": "event",
"source": "instantly",
"event_name": "form.submitted",
"segment_id": "01a20d6a-b926-792a-9ea6-49ff701cb2a0",
"entry_mode": "ongoing",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"sender": {
"domain_id": "01a20d6a-b926-792a-9ea6-4a00e6088c2e",
"from": "welcome@acme.com",
"reply_to": "support@acme.com"
},
"goal": {
"source": "api",
"event_name": "purchase.completed",
"window_days": 30,
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"re_entry": {
"mode": "once",
"cooldown_days": 30
},
"exit_rules": [
{
"source": "instantly",
"event_name": "subscription_started",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
}
],
"priority": "medium",
"steps": [
{
"id": "step-email",
"type": "email",
"target_step_id": "step-email",
"name": "Welcome email",
"delay": {
"mode": "until_date",
"value": 1,
"unit": "hours",
"date": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "free_trial_ends_at"
},
"offset": {
"direction": "before",
"value": 3,
"unit": "hours"
},
"time_of_day": {
"time": "09:00",
"timezone": "Europe/Zurich"
},
"if_missing": "exit",
"if_passed": "continue"
},
"email": {
"template_id": "01a20d6a-b926-792a-9ea6-49fe9e72098b",
"subject": "Welcome!",
"from_name": "Acme Sales",
"preview_text": "Your first steps start here"
},
"tag": {
"action": "add",
"tag_ids": [
"0198a123-4567-7890-abcd-ef0123456789"
]
},
"slack": {
"app_connection_id": "0198a123-4567-7890-abcd-ef0123456789",
"channel_id": "C0123ABCD",
"channel_name": "general",
"message": "New signup: {{first_name}} {{last_name}} ({{email}}) on plan {{attributes.plan}}"
},
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
},
"send_window": {
"days": [
"monday",
"thursday"
],
"start_time": "16:00",
"end_time": "20:00",
"timezone": "Europe/Zurich"
},
"goal": {
"source": "api",
"event_name": "purchase.completed",
"window_days": 30,
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"utm_enabled": true,
"utm_params": [
{
"key": "utm_source",
"value": "newsletter"
}
],
"priority": "medium",
"split_type": "condition",
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan"
},
"branches": [
{
"id": "yes",
"name": "Paid plan",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
},
"value": "enterprise",
"percent": 50,
"steps": "<array>"
}
]
}
]
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "limit: must be at most 50",
"code": "VALIDATION_ERROR"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Workspace suspended due to a high bounce or spam complaint rate. Please contact support.",
"code": "WORKSPACE_SUSPENDED"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Not found",
"code": "NOT_FOUND"
}{
"statusCode": 408,
"error": "Request Timeout",
"message": "An internal error occurred"
}{
"statusCode": 409,
"error": "Conflict",
"message": "The resource has changed. Reload it and try again.",
"code": "CONFLICT"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal error occurred"
}{
"statusCode": 502,
"error": "Bad Gateway",
"message": "Your Typeform connection is no longer authorized. Reconnect the Typeform account and try again."
}Activate a customer journey
Validates and snapshots the current draft, then starts enrolling: on each matching event for an event trigger, or the members of the segment for a segment trigger. The design needs at least one email step, a segment trigger needs re_entry.mode once, and an event trigger’s event_name is 2 to 60 letters, digits, ., _ or -; otherwise the code is VALIDATION_ERROR. A refused draft is a 400 with the code of the first problem found. Codes from the design and readiness checks: VALIDATION_ERROR, UNFILLED_PLACEHOLDER, TEMPLATE_NOT_FOUND, SEGMENT_NOT_FOUND, DOMAIN_NOT_FOUND, FROM_DOMAIN_MISMATCH, MISSING_UNSUBSCRIBE_URL, ASSETS_PENDING_MODERATION, ASSETS_REJECTED, UTM_TAGGING_FAILED. Codes from the trigger connection checks, all returned at once: CONNECTION_REQUIRED (send connection_id or typeform_connection_id), CONNECTION_SOURCE_MISMATCH, FORM_REQUIRED, BINDING_REQUIRED (the trigger needs its tag, list, pipeline or similar), CONSENT_REQUIRED, CONSENT_REVOKED, TRIGGER_SOURCE_MISMATCH and SLACK_CONNECTION_INVALID. TEMPLATE_NOT_FOUND, SEGMENT_NOT_FOUND and DOMAIN_NOT_FOUND are a 404, and an active journey is a 409 with code CONFLICT. Activating a paused journey replaces its goal and exit rules with the draft’s.
Requires one of the following scopes: email_marketing_journeys:activate, email_marketing_journeys:all, all:all
curl --request POST \
--url https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"revision": 1
}'import requests
url = "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate"
payload = { "revision": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 1})
};
fetch('https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 1\n}")
.asString();<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'revision' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.instantly.ai/api/v2/email-marketing/journeys/{id}/activate"
payload := strings.NewReader("{\n \"revision\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "01a20d6a-b928-7b01-bc78-8a5df1921326",
"name": "Welcome journey",
"status": "draft",
"revision": 1,
"latest_version": 0,
"timestamp_created": "2026-11-24T11:57:07.752Z",
"timestamp_updated": "2026-11-24T11:57:07.752Z",
"connection_id": "01a20d6a-b928-7b01-bc78-8a5e59b281ca",
"draft_design": {
"trigger": {
"type": "event",
"source": "instantly",
"event_name": "form.submitted",
"segment_id": "01a20d6a-b926-792a-9ea6-49ff701cb2a0",
"entry_mode": "ongoing",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"sender": {
"domain_id": "01a20d6a-b926-792a-9ea6-4a00e6088c2e",
"from": "welcome@acme.com",
"reply_to": "support@acme.com"
},
"goal": {
"source": "api",
"event_name": "purchase.completed",
"window_days": 30,
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"re_entry": {
"mode": "once",
"cooldown_days": 30
},
"exit_rules": [
{
"source": "instantly",
"event_name": "subscription_started",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
}
],
"priority": "medium",
"steps": [
{
"id": "step-email",
"type": "email",
"target_step_id": "step-email",
"name": "Welcome email",
"delay": {
"mode": "until_date",
"value": 1,
"unit": "hours",
"date": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "free_trial_ends_at"
},
"offset": {
"direction": "before",
"value": 3,
"unit": "hours"
},
"time_of_day": {
"time": "09:00",
"timezone": "Europe/Zurich"
},
"if_missing": "exit",
"if_passed": "continue"
},
"email": {
"template_id": "01a20d6a-b926-792a-9ea6-49fe9e72098b",
"subject": "Welcome!",
"from_name": "Acme Sales",
"preview_text": "Your first steps start here"
},
"tag": {
"action": "add",
"tag_ids": [
"0198a123-4567-7890-abcd-ef0123456789"
]
},
"slack": {
"app_connection_id": "0198a123-4567-7890-abcd-ef0123456789",
"channel_id": "C0123ABCD",
"channel_name": "general",
"message": "New signup: {{first_name}} {{last_name}} ({{email}}) on plan {{attributes.plan}}"
},
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
},
"send_window": {
"days": [
"monday",
"thursday"
],
"start_time": "16:00",
"end_time": "20:00",
"timezone": "Europe/Zurich"
},
"goal": {
"source": "api",
"event_name": "purchase.completed",
"window_days": 30,
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
}
},
"utm_enabled": true,
"utm_params": [
{
"key": "utm_source",
"value": "newsletter"
}
],
"priority": "medium",
"split_type": "condition",
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan"
},
"branches": [
{
"id": "yes",
"name": "Paid plan",
"conditions": {
"evaluator_version": 1,
"groups": [
{
"clauses": [
{
"operand": {
"namespace": "subscriber",
"field": "custom_attribute",
"key": "plan",
"source": "instantly",
"event_name": "email_account_connected"
},
"operator": "equals",
"value": "enterprise"
}
]
}
]
},
"value": "enterprise",
"percent": 50,
"steps": "<array>"
}
]
}
]
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "limit: must be at most 50",
"code": "VALIDATION_ERROR"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "Missing Authorization header"
}{
"statusCode": 402,
"error": "Payment Required",
"message": "Workspace does not have an active paid plan"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Workspace suspended due to a high bounce or spam complaint rate. Please contact support.",
"code": "WORKSPACE_SUSPENDED"
}{
"statusCode": 404,
"error": "Not Found",
"message": "Not found",
"code": "NOT_FOUND"
}{
"statusCode": 408,
"error": "Request Timeout",
"message": "An internal error occurred"
}{
"statusCode": 409,
"error": "Conflict",
"message": "The resource has changed. Reload it and try again.",
"code": "CONFLICT"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal error occurred"
}{
"statusCode": 502,
"error": "Bad Gateway",
"message": "Your Typeform connection is no longer authorized. Reconnect the Typeform account and try again."
}Authorizations
Path Parameters
Body
The connection an integration trigger listens to. A workspace can connect several stores or accounts of the same app, and they all send the same event names. Required for WooCommerce, Jotform, Wix, Intercom, Pipedrive, Salesforce, Zoho CRM, HubSpot, HighLevel, Attio and LeadConnector triggers: without it activation returns 400 with code CONNECTION_REQUIRED. Optional for Shopify and Calendly triggers: when omitted, a journey reactivated on the same trigger source keeps its last connection, otherwise it enrols on every connection of the source, and null clears the scope so the journey enrols on every connection. A connection of another app returns 400 with code CONNECTION_SOURCE_MISMATCH.
"01234567-89ab-cdef-0123-456789abcdef"
Response
The requested Journey
A customer journey, triggered by an event or by membership of a segment. Optional fields with no value are left out of responses. Lists page with starting_after: pass the previous page's next_starting_after until there is none. Step contacts page with cursor and next_cursor instead.