In-app
Unschedule an In-App Campaign
Move a scheduled in-app campaign back to draft
POST
/
api
/
v1
/
in-app
/
campaigns
/
{campaignId}
/
unschedule
Unschedule an In-App Campaign
curl --request POST \
--url https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule', 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.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule"
req, _ := http.NewRequest("POST", 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.post("https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"campaign": {
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "draft",
"state": "draft",
"message": {
"label": "",
"kind": "message",
"format": "modal",
"title": "Hi {{firstName}}, dashboards are here",
"body": "See every campaign at a glance.",
"buttons": [
{
"label": "Take a look",
"action": "open_url",
"url": "myapp://dashboards"
}
]
},
"priority": "high",
"endsAt": "2026-12-01T00:00:00.000Z",
"targetLists": {
"type": "segment",
"segmentId": "seg_123"
},
"scheduledAt": null,
"sentAt": null,
"estimatedRecipientCount": null,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:send"
}
{
"error": "Campaign not found."
}
{
"error": "Cannot unschedule a campaign in \"draft\" status."
}
Moves a scheduled in-app campaign back to draft and clears its audience count. It won’t go live until you launch or schedule it again. Unschedule a Campaign does the same for in-app campaigns. Requires the
campaigns:send scope.
Request
string
required
The in-app campaign ID.
curl -X POST "https://api.sequenzy.com/api/v1/in-app/campaigns/cmp_abc123/unschedule" \
--header "Authorization: Bearer $SEQUENZY_API_KEY"
Responses
{
"success": true,
"campaign": {
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "draft",
"state": "draft",
"message": {
"label": "",
"kind": "message",
"format": "modal",
"title": "Hi {{firstName}}, dashboards are here",
"body": "See every campaign at a glance.",
"buttons": [
{
"label": "Take a look",
"action": "open_url",
"url": "myapp://dashboards"
}
]
},
"priority": "high",
"endsAt": "2026-12-01T00:00:00.000Z",
"targetLists": {
"type": "segment",
"segmentId": "seg_123"
},
"scheduledAt": null,
"sentAt": null,
"estimatedRecipientCount": null,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:send"
}
{
"error": "Campaign not found."
}
{
"error": "Cannot unschedule a campaign in \"draft\" status."
}
⌘I
Unschedule an In-App Campaign
curl --request POST \
--url https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule', 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.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule"
req, _ := http.NewRequest("POST", 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.post("https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/in-app/campaigns/{campaignId}/unschedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"campaign": {
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "draft",
"state": "draft",
"message": {
"label": "",
"kind": "message",
"format": "modal",
"title": "Hi {{firstName}}, dashboards are here",
"body": "See every campaign at a glance.",
"buttons": [
{
"label": "Take a look",
"action": "open_url",
"url": "myapp://dashboards"
}
]
},
"priority": "high",
"endsAt": "2026-12-01T00:00:00.000Z",
"targetLists": {
"type": "segment",
"segmentId": "seg_123"
},
"scheduledAt": null,
"sentAt": null,
"estimatedRecipientCount": null,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:send"
}
{
"error": "Campaign not found."
}
{
"error": "Cannot unschedule a campaign in \"draft\" status."
}