Create a sequence
curl --request POST \
--url https://app.manypi.com/api/outreach/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Agency outbound Q3",
"steps": [
{
"subject": "Quick question about {{company}}",
"body_html": "<p>Hi {{first_name}},</p><p>…</p>",
"wait_days": 0,
"thread_mode": "new"
},
{
"subject": "",
"body_html": "<p>Following up on the above.</p>",
"wait_days": 3,
"thread_mode": "reply"
}
]
}
'import requests
url = "https://app.manypi.com/api/outreach/sequences"
payload = {
"name": "Agency outbound Q3",
"steps": [
{
"subject": "Quick question about {{company}}",
"body_html": "<p>Hi {{first_name}},</p><p>…</p>",
"wait_days": 0,
"thread_mode": "new"
},
{
"subject": "",
"body_html": "<p>Following up on the above.</p>",
"wait_days": 3,
"thread_mode": "reply"
}
]
}
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({
name: 'Agency outbound Q3',
steps: [
{
subject: 'Quick question about {{company}}',
body_html: '<p>Hi {{first_name}},</p><p>…</p>',
wait_days: 0,
thread_mode: 'new'
},
{
subject: '',
body_html: '<p>Following up on the above.</p>',
wait_days: 3,
thread_mode: 'reply'
}
]
})
};
fetch('https://app.manypi.com/api/outreach/sequences', 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://app.manypi.com/api/outreach/sequences",
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([
'name' => 'Agency outbound Q3',
'steps' => [
[
'subject' => 'Quick question about {{company}}',
'body_html' => '<p>Hi {{first_name}},</p><p>…</p>',
'wait_days' => 0,
'thread_mode' => 'new'
],
[
'subject' => '',
'body_html' => '<p>Following up on the above.</p>',
'wait_days' => 3,
'thread_mode' => 'reply'
]
]
]),
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://app.manypi.com/api/outreach/sequences"
payload := strings.NewReader("{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\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))
}HttpResponse<String> response = Unirest.post("https://app.manypi.com/api/outreach/sequences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/outreach/sequences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"steps": [
{
"subject": "<string>",
"body_html": "<string>",
"wait_days": 45,
"thread_mode": "new"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Outreach
Create a sequence
Create the email steps a campaign sends. Step 0 goes out on enrollment; each later step waits wait_days after the previous one and, with thread_mode: "reply", threads under the first email.
Merge variables: {{first_name}}, {{company}}, {{title}}, {{domain}}, {{location}}. Bodies are simple HTML — <p>, <br>, <strong>, <a>.
A/B variants inside a step require Pro or Business.
Requires the write permission.
POST
/
api
/
outreach
/
sequences
Create a sequence
curl --request POST \
--url https://app.manypi.com/api/outreach/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Agency outbound Q3",
"steps": [
{
"subject": "Quick question about {{company}}",
"body_html": "<p>Hi {{first_name}},</p><p>…</p>",
"wait_days": 0,
"thread_mode": "new"
},
{
"subject": "",
"body_html": "<p>Following up on the above.</p>",
"wait_days": 3,
"thread_mode": "reply"
}
]
}
'import requests
url = "https://app.manypi.com/api/outreach/sequences"
payload = {
"name": "Agency outbound Q3",
"steps": [
{
"subject": "Quick question about {{company}}",
"body_html": "<p>Hi {{first_name}},</p><p>…</p>",
"wait_days": 0,
"thread_mode": "new"
},
{
"subject": "",
"body_html": "<p>Following up on the above.</p>",
"wait_days": 3,
"thread_mode": "reply"
}
]
}
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({
name: 'Agency outbound Q3',
steps: [
{
subject: 'Quick question about {{company}}',
body_html: '<p>Hi {{first_name}},</p><p>…</p>',
wait_days: 0,
thread_mode: 'new'
},
{
subject: '',
body_html: '<p>Following up on the above.</p>',
wait_days: 3,
thread_mode: 'reply'
}
]
})
};
fetch('https://app.manypi.com/api/outreach/sequences', 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://app.manypi.com/api/outreach/sequences",
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([
'name' => 'Agency outbound Q3',
'steps' => [
[
'subject' => 'Quick question about {{company}}',
'body_html' => '<p>Hi {{first_name}},</p><p>…</p>',
'wait_days' => 0,
'thread_mode' => 'new'
],
[
'subject' => '',
'body_html' => '<p>Following up on the above.</p>',
'wait_days' => 3,
'thread_mode' => 'reply'
]
]
]),
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://app.manypi.com/api/outreach/sequences"
payload := strings.NewReader("{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\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))
}HttpResponse<String> response = Unirest.post("https://app.manypi.com/api/outreach/sequences")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.manypi.com/api/outreach/sequences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Agency outbound Q3\",\n \"steps\": [\n {\n \"subject\": \"Quick question about {{company}}\",\n \"body_html\": \"<p>Hi {{first_name}},</p><p>…</p>\",\n \"wait_days\": 0,\n \"thread_mode\": \"new\"\n },\n {\n \"subject\": \"\",\n \"body_html\": \"<p>Following up on the above.</p>\",\n \"wait_days\": 3,\n \"thread_mode\": \"reply\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"steps": [
{
"subject": "<string>",
"body_html": "<string>",
"wait_days": 45,
"thread_mode": "new"
}
],
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
A ManyPI API key (mpi_...) from Settings → API keys, or an OAuth 2.1 access token obtained through the MCP consent flow.
Body
application/json
⌘I
