Bulk create sequence steps
curl --request POST \
--url https://api.reply.io/v3/sequences/{id}/steps/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"type": "email",
"delayInMinutes": 1,
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"attachmentIds": [
123
]
}
],
"parentId": 123,
"ifConditionPositive": true
}
]
'import requests
url = "https://api.reply.io/v3/sequences/{id}/steps/bulk"
payload = [
{
"type": "email",
"delayInMinutes": 1,
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"attachmentIds": [123]
}
],
"parentId": 123,
"ifConditionPositive": True
}
]
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([
{
type: 'email',
delayInMinutes: 1,
variants: [{id: 123, subject: '<string>', message: '<string>', attachmentIds: [123]}],
parentId: 123,
ifConditionPositive: true
}
])
};
fetch('https://api.reply.io/v3/sequences/{id}/steps/bulk', 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.reply.io/v3/sequences/{id}/steps/bulk",
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([
[
'type' => 'email',
'delayInMinutes' => 1,
'variants' => [
[
'id' => 123,
'subject' => '<string>',
'message' => '<string>',
'attachmentIds' => [
123
]
]
],
'parentId' => 123,
'ifConditionPositive' => true
]
]),
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.reply.io/v3/sequences/{id}/steps/bulk"
payload := strings.NewReader("[\n {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\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://api.reply.io/v3/sequences/{id}/steps/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/sequences/{id}/steps/bulk")
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 {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\n }\n]"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"error": 123,
"errorDetails": "<string>"
}
]Sequence Steps
Bulk create sequence steps
Requires the
sequences:write scope (or a broader one that includes it).
Add several steps to a sequence in one call, processed in order, each appended after the one before it.
POST
/
v3
/
sequences
/
{id}
/
steps
/
bulk
Bulk create sequence steps
curl --request POST \
--url https://api.reply.io/v3/sequences/{id}/steps/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"type": "email",
"delayInMinutes": 1,
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"attachmentIds": [
123
]
}
],
"parentId": 123,
"ifConditionPositive": true
}
]
'import requests
url = "https://api.reply.io/v3/sequences/{id}/steps/bulk"
payload = [
{
"type": "email",
"delayInMinutes": 1,
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"attachmentIds": [123]
}
],
"parentId": 123,
"ifConditionPositive": True
}
]
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([
{
type: 'email',
delayInMinutes: 1,
variants: [{id: 123, subject: '<string>', message: '<string>', attachmentIds: [123]}],
parentId: 123,
ifConditionPositive: true
}
])
};
fetch('https://api.reply.io/v3/sequences/{id}/steps/bulk', 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.reply.io/v3/sequences/{id}/steps/bulk",
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([
[
'type' => 'email',
'delayInMinutes' => 1,
'variants' => [
[
'id' => 123,
'subject' => '<string>',
'message' => '<string>',
'attachmentIds' => [
123
]
]
],
'parentId' => 123,
'ifConditionPositive' => true
]
]),
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.reply.io/v3/sequences/{id}/steps/bulk"
payload := strings.NewReader("[\n {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\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://api.reply.io/v3/sequences/{id}/steps/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/sequences/{id}/steps/bulk")
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 {\n \"type\": \"email\",\n \"delayInMinutes\": 1,\n \"variants\": [\n {\n \"id\": 123,\n \"subject\": \"<string>\",\n \"message\": \"<string>\",\n \"attachmentIds\": [\n 123\n ]\n }\n ],\n \"parentId\": 123,\n \"ifConditionPositive\": true\n }\n]"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"error": 123,
"errorDetails": "<string>"
}
]Authorizations
Authenticate every request with a Bearer token. Pass your Reply API key in the
Authorization header:
Authorization: Bearer <your-api-key>
Get your API key from the Reply dashboard: Settings → API Key.
Path Parameters
Sequence Id
Body
application/json
- Email
- LinkedIn Message
- LinkedIn Connect
- LinkedIn InMail
- LinkedIn View Profile
- LinkedIn Endorse Skills
- LinkedIn Voice Message
- LinkedIn Like Recent Posts
- LinkedIn Follow Profile
- LinkedIn Comment On Recent Post
- Call
- SMS
- WhatsApp
- Zapier
- Task
- Condition
Email step with variant configuration
Step type discriminator
Available options:
email Delay in minutes before executing this step
Required range:
x >= 0Execution mode for the email step
Available options:
automatic, manual Array of email variants (A/B test versions)
Show child attributes
Show child attributes
ID of the parent step (for branching)
Whether this step is on the positive branch of a condition
Response
Array of per-item results, one per input step (same order as request).
Possible per-item error codes:
| Error code | Meaning |
|---|---|
invalidInput | Validation failed (e.g. more than 3 attachments on a variant) |
invalidStep | Step type or configuration is invalid |
forbidden | One or more attachment IDs are not accessible to the caller |
internalError | Unexpected server error |
stepLocked | Step cannot be modified |