Skip to main content
PUT
/
campaigns
/
v2
/
{campaignId}
/
sequence
Update sequence
curl --request PUT \
  --url https://inboxapp.com/api/v1/campaigns/v2/{campaignId}/sequence \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "steps": [
    {
      "type": "<unknown>",
      "data": {
        "segments": [
          {
            "type": "<unknown>",
            "text": "<string>"
          }
        ]
      }
    }
  ]
}
'
{
  "version": 123,
  "steps": [
    {
      "id": "<string>",
      "rank": 123,
      "data": {
        "segments": [
          {
            "type": "<unknown>",
            "text": "<string>"
          }
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaignId
string
required

The ID of the campaign.

Pattern: ^[0-9a-z]+$
Example:

"usdjpdql3f90seqk13rwuo7z"

Body

application/json
steps
(Message step · object | Delay step · object | Like tweet step · object)[]
required

Ordered list of steps for the new sequence. Step IDs and ranks are assigned by the server based on array position.

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!"
}
]
}
}
]

Response

200 - application/json

OK

version
number
required

The newly created version number.

Example:

4

steps
object[]
required

The steps as stored, with server-assigned IDs and ranks.