curl --request POST \
--url https://api.reply.io/v3/sequences/{id}/steps \
--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"
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', 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",
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"
payload := strings.NewReader("{\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}")
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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/sequences/{id}/steps")
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 \"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}"
response = http.request(request)
puts response.read_body{
"type": "email",
"delayInMinutes": 1,
"executionMode": "automatic",
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"hasAttachments": true
}
],
"id": 123,
"parentId": 123,
"ifConditionPositive": true
}Create a sequence step
sequences:write scope (or a broader one that includes it).
Add a step to a sequence. type picks what it does — email, linkedIn, call, sms, condition, and more; linkedIn adds actionType.
curl --request POST \
--url https://api.reply.io/v3/sequences/{id}/steps \
--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"
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', 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",
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"
payload := strings.NewReader("{\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}")
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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/sequences/{id}/steps")
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 \"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}"
response = http.request(request)
puts response.read_body{
"type": "email",
"delayInMinutes": 1,
"executionMode": "automatic",
"variants": [
{
"id": 123,
"subject": "<string>",
"message": "<string>",
"hasAttachments": true
}
],
"id": 123,
"parentId": 123,
"ifConditionPositive": true
}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
- 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
email Delay in minutes before executing this step
x >= 0Execution mode for the email step
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
Sequence step created successfully
- 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
email Delay in minutes before executing this step
x >= 0Execution mode for the email step
automatic, manual Array of email variants (A/B test versions)
Show child attributes
Show child attributes
Unique identifier for the step
ID of the parent step (for branching)
Whether this step is on the positive branch of a condition