Update sequence
curl --request PUT \
--url https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": [
{
"type": "<unknown>",
"data": {
"segments": [
{
"type": "<unknown>",
"text": "<string>"
}
]
}
}
]
}
'import requests
url = "https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence"
payload = { "steps": [
{
"type": "<unknown>",
"data": { "segments": [
{
"type": "<unknown>",
"text": "<string>"
}
] }
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
steps: [{type: '<unknown>', data: {segments: [{type: '<unknown>', text: '<string>'}]}}]
})
};
fetch('https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence', 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://inboxapp.com/api/v1/campaigns/{campaignId}/sequence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'steps' => [
[
'type' => '<unknown>',
'data' => [
'segments' => [
[
'type' => '<unknown>',
'text' => '<string>'
]
]
]
]
]
]),
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://inboxapp.com/api/v1/campaigns/{campaignId}/sequence"
payload := strings.NewReader("{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"version": 123,
"steps": [
{
"id": "<string>",
"rank": 123,
"data": {
"segments": [
{
"type": "<unknown>",
"text": "<string>"
}
]
}
}
]
}Campaigns
Update sequence
Replace the entire sequence with a new set of steps. Creates a new version; previous versions are preserved for historical reference. The server assigns step IDs and ranks from array order. Message steps can use variables — see Create column to set up custom variables.
PUT
/
campaigns
/
{campaignId}
/
sequence
Update sequence
curl --request PUT \
--url https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": [
{
"type": "<unknown>",
"data": {
"segments": [
{
"type": "<unknown>",
"text": "<string>"
}
]
}
}
]
}
'import requests
url = "https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence"
payload = { "steps": [
{
"type": "<unknown>",
"data": { "segments": [
{
"type": "<unknown>",
"text": "<string>"
}
] }
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
steps: [{type: '<unknown>', data: {segments: [{type: '<unknown>', text: '<string>'}]}}]
})
};
fetch('https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence', 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://inboxapp.com/api/v1/campaigns/{campaignId}/sequence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'steps' => [
[
'type' => '<unknown>',
'data' => [
'segments' => [
[
'type' => '<unknown>',
'text' => '<string>'
]
]
]
]
]
]),
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://inboxapp.com/api/v1/campaigns/{campaignId}/sequence"
payload := strings.NewReader("{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://inboxapp.com/api/v1/campaigns/{campaignId}/sequence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"steps\": [\n {\n \"type\": \"<unknown>\",\n \"data\": {\n \"segments\": [\n {\n \"type\": \"<unknown>\",\n \"text\": \"<string>\"\n }\n ]\n }\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"version": 123,
"steps": [
{
"id": "<string>",
"rank": 123,
"data": {
"segments": [
{
"type": "<unknown>",
"text": "<string>"
}
]
}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the campaign.
Pattern:
^[0-9a-z]+$Example:
"usdjpdql3f90seqk13rwuo7z"
Body
application/json
Ordered list of steps for the new sequence. Step IDs and ranks are assigned by the server based on array position.
- Message step
- Delay step
- Like tweet step
Show child attributes
Show child attributes
Example:
[
{
"type": "message",
"data": {
"segments": [
{
"type": "variation",
"options": ["Hey", "Hi", "What's up"]
},
{ "type": "static", "text": " " },
{
"type": "variable",
"name": "first-name",
"fallback": "there"
},
{
"type": "static",
"text": ", saw your work at "
},
{
"type": "variable",
"name": "custom_q5cktl47a6pqa74eu06fz89v",
"fallback": "your company"
},
{
"type": "static",
"text": " — would love to connect. Open to a quick chat?"
}
]
}
},
{
"type": "delay",
"data": { "delaySeconds": 86400, "unit": "days" }
},
{
"type": "message",
"data": {
"segments": [
{
"type": "static",
"text": "Hey, just following up — would love to hear your thoughts!"
}
]
}
}
]
Was this page helpful?
⌘I