curl --request POST \
--url https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"audienceRunId": "arun_7acthhe99pq4448xh83gn54x8eennb",
"status": "running",
"resumedFrom": "paused"
}Resume a manual-audience run
Continues a paused launch, or restarts a FAILED one under a fresh workflow run: it picks up at the first send step that never delivered and skips every step the failed run finished, so nothing is resent. resumedFrom reports which case ran.
Use when a paused launch may continue, or a failed launch should finish its remaining steps.
Input audienceRunId in the path; no body.
Returns 200 with the run’s new status and resumedFrom (paused or failed).
Errors 409 RUN_NOT_PAUSED when a running run is resumed; 409 RUN_NOT_RESUMABLE when a failed run has no undelivered send step or a send step delivered to only part of its segment; 409 RUN_IN_PROGRESS when another run of the automation is active; 402 SEND_QUOTA_EXCEEDED when resuming would exceed the monthly send limit; 422 INVALID_REQUEST when a send step is no longer valid; 503 RUN_STOP_FAILED / RUN_START_FAILED when the workflow engine could not stop the previous run or start the new one (retry); 404 AUDIENCE_RUN_NOT_FOUND for an unknown or cross-brand id.
See also pauseAudienceRun, cancelAudienceRun, getAudienceRun.
curl --request POST \
--url https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/automations/audience-runs/{audienceRunId}/resume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"audienceRunId": "arun_7acthhe99pq4448xh83gn54x8eennb",
"status": "running",
"resumedFrom": "paused"
}Authorizations
Send your Brew API key as Authorization: Bearer brew_xxx.
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Path Parameters
The audience run id (from POST /v1/automations/{automationId}/run or GET /v1/automations/audience-runs).
1 - 64"arun_7acthhe99pq4448xh83gn54x8eennb"
Was this page helpful?