Resume a Journey verified

Resume a paused Journey in the Journey Builder in Salesforce Marketing Cloud.

REST API

var journeyId = "S0M3-GU1D-K3Y-G03SR1G4T-H3R3",
    versionNumber = 3,
    allVersions = false;

var endpoint = restInstanceUrl + "interaction/v1/interactions/resume/";

    endpoint += journeyId + "?versionNumber=" + versionNumber + "&allVersions=" + allVersions;

var request = new Script.Util.HttpRequest(endpoint);
    request.emptyContentHandling = 0;
    request.retries = 2;
    request.continueOnError = true;
    request.setHeader("Authorization", "Bearer " + accessToken);
    request.method = "POST";
    request.contentType = "application/json";
    request.encoding = "UTF-8";

var results = request.send();

var result = Platform.Function.ParseJSON(String(results.content));

Write(Stringify(result));
<script runat="server">

    Platform.Load("core", "1");

    var restInstanceUrl = "https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com/",
        accessToken     = "YOUR_REST_API_TOKEN";
	
	try {

        var journeyId = "S0M3-GU1D-K3Y-G03SR1G4T-H3R3",
            versionNumber = 1,
            allVersions = false;

        var endpoint = restInstanceUrl + "interaction/v1/interactions/resume/";

            endpoint += journeyId + "?versionNumber=" + versionNumber + "&allVersions=" + allVersions;

        var request = new Script.Util.HttpRequest(endpoint);
            request.emptyContentHandling = 0;
            request.retries = 2;
            request.continueOnError = true;
            request.setHeader("Authorization", "Bearer " + accessToken);
            request.method = "POST";
            request.contentType = "application/json";
            request.encoding = "UTF-8";

        var results = request.send();

        var result = Platform.Function.ParseJSON(String(results.content));

        Write(Stringify(result));
		
	} catch(error) {
        Write(Stringify(error));
    }	

</script>
{
    "status": "Accepted"
}

TIP

In order to resume a Journey using the Journey's Key instead of ID, please use
/key:{journeyKey} in the URL of the request.

WARNING

An interaction must be in Paused status to be resumed.

WARNING

When versionNumber parameter is missing, allVersions parameter is required.

Reference

Ressources and references related to the current methods.

Official documentation

Last Updated: