curl --request GET \
--url https://api.mailbeast.ai/v1/subsequences/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mailbeast.ai/v1/subsequences/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mailbeast.ai/v1/subsequences/{id}', 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://api.mailbeast.ai/v1/subsequences/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.mailbeast.ai/v1/subsequences/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.mailbeast.ai/v1/subsequences/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mailbeast.ai/v1/subsequences/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "5b2f3c4d-6e7f-4a81-9b0c-1d2e3f4a5b6c",
"campaignId": "a7d4e2f1-08b3-4c65-9e7a-1b2c3d4e5f60",
"name": "Interested - book a call",
"position": 1,
"status": "active",
"enabled": true,
"state": "active",
"settings": {
"trigger": {
"any": [
{
"kind": "lead_status",
"statuses": [
"lead_replied_interested",
"lead_replied_meeting_request"
],
"phrases": [
"pricing",
"more info"
],
"when": {
"mode": "after_main_sequence",
"waitDays": 0
},
"urlContains": "/pricing",
"waitDays": 3
}
],
"sources": [
"main"
],
"filters": [
{
"kind": "tag",
"op": "has_any",
"values": [
"vip"
],
"field": "industry",
"value": "<string>",
"emails": 50,
"atLeast": 25
}
]
},
"start": {
"mode": "delay",
"amount": 1,
"unit": "hours",
"offsetDays": 1,
"withoutDate": {
"mode": "delay",
"days": 7
},
"maxDaysAhead": 120
},
"sending": {
"schedule": "inherit",
"dailyLimit": {
"mode": "inherit",
"value": 30
}
}
},
"sequence": [
{
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"subject": "Quick question about {{company_name}}",
"body": "<p>Hi {{first_name}}, …</p>",
"delayDays": 0,
"delayHours": 0,
"variants": [
{
"id": "b3f1a2c4-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"label": "A",
"subject": "Quick question about {{company_name}}",
"body": "<p>Hi {{first_name}}, …</p>",
"isActive": true
}
]
}
],
"counters": {
"entered": 42,
"waiting": 3,
"inProgress": 12,
"replied": 9,
"positive": 5,
"ended": 30
},
"nextStartAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-10-28T08:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "One or more fields are invalid.",
"status": 400,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"details": [
"name should not be empty"
]
}
}{
"error": {
"type": "authentication_error",
"code": "unauthenticated",
"message": "Missing or invalid API key.",
"status": 401,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "authorization_error",
"code": "permission_denied",
"message": "This API key is missing the required scope.",
"status": 403,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "Resource not found.",
"status": 404,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the interval in the Retry-After header.",
"status": 429,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"retryAfter": 30
}
}Get a subsequence
One subsequence: trigger, start and sending settings, every email step with its A/B variants, whether it is on and why it is (not) sending, and its counters.
Requires one of the following scopes: campaigns:read, campaigns:all, all:read, all:all.
curl --request GET \
--url https://api.mailbeast.ai/v1/subsequences/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mailbeast.ai/v1/subsequences/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mailbeast.ai/v1/subsequences/{id}', 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://api.mailbeast.ai/v1/subsequences/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://api.mailbeast.ai/v1/subsequences/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.mailbeast.ai/v1/subsequences/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mailbeast.ai/v1/subsequences/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "5b2f3c4d-6e7f-4a81-9b0c-1d2e3f4a5b6c",
"campaignId": "a7d4e2f1-08b3-4c65-9e7a-1b2c3d4e5f60",
"name": "Interested - book a call",
"position": 1,
"status": "active",
"enabled": true,
"state": "active",
"settings": {
"trigger": {
"any": [
{
"kind": "lead_status",
"statuses": [
"lead_replied_interested",
"lead_replied_meeting_request"
],
"phrases": [
"pricing",
"more info"
],
"when": {
"mode": "after_main_sequence",
"waitDays": 0
},
"urlContains": "/pricing",
"waitDays": 3
}
],
"sources": [
"main"
],
"filters": [
{
"kind": "tag",
"op": "has_any",
"values": [
"vip"
],
"field": "industry",
"value": "<string>",
"emails": 50,
"atLeast": 25
}
]
},
"start": {
"mode": "delay",
"amount": 1,
"unit": "hours",
"offsetDays": 1,
"withoutDate": {
"mode": "delay",
"days": 7
},
"maxDaysAhead": 120
},
"sending": {
"schedule": "inherit",
"dailyLimit": {
"mode": "inherit",
"value": 30
}
}
},
"sequence": [
{
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"subject": "Quick question about {{company_name}}",
"body": "<p>Hi {{first_name}}, …</p>",
"delayDays": 0,
"delayHours": 0,
"variants": [
{
"id": "b3f1a2c4-5d6e-4f70-8a9b-0c1d2e3f4a5b",
"label": "A",
"subject": "Quick question about {{company_name}}",
"body": "<p>Hi {{first_name}}, …</p>",
"isActive": true
}
]
}
],
"counters": {
"entered": 42,
"waiting": 3,
"inProgress": 12,
"replied": 9,
"positive": 5,
"ended": 30
},
"nextStartAt": "2023-11-07T05:31:56Z",
"createdAt": "2026-10-28T08:00:00.000Z"
}{
"error": {
"type": "invalid_request_error",
"code": "validation_failed",
"message": "One or more fields are invalid.",
"status": 400,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"details": [
"name should not be empty"
]
}
}{
"error": {
"type": "authentication_error",
"code": "unauthenticated",
"message": "Missing or invalid API key.",
"status": 401,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "authorization_error",
"code": "permission_denied",
"message": "This API key is missing the required scope.",
"status": 403,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "invalid_request_error",
"code": "not_found",
"message": "Resource not found.",
"status": 404,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after the interval in the Retry-After header.",
"status": 429,
"requestId": "e4f1c0b2-6a3d-4b8e-9f21-0a1b2c3d4e5f",
"retryAfter": 30
}
}Authorizations
Response
Why it sends or not, in one word: draft - off; starts_with_campaign - on, starts when the draft campaign starts; active - on and sending; paused - paused by you; paused_with_campaign - on, but the campaign is paused; stopped_campaign_ended - the campaign completed or was deleted; paused_requires_plan - the plan does not include subsequences; cant_start - on, but it cannot start: it has no email, or an email is missing content; waiting_restart - on, waiting for the completed campaign to be restarted.
draft, starts_with_campaign, active, paused, paused_with_campaign, stopped_campaign_ended, paused_requires_plan, cant_start, waiting_restart "active"