In-app
List In-App Campaigns
List in-app campaigns, newest first
GET
/
api
/
v1
/
in-app
/
campaigns
List In-App Campaigns
curl --request GET \
--url https://api.sequenzy.com/api/v1/in-app/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/in-app/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/in-app/campaigns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://api.sequenzy.com/api/v1/in-app/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/in-app/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"campaigns": [
{
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "sent",
"state": "live",
"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": "2026-11-08T09:00:00.000Z",
"estimatedRecipientCount": 1200,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
],
"total": 1
}
{
"error": "limit must be at most 100"
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:read"
}
Lists in-app campaigns, newest first. Each campaign has a stored
status and a state that tells live and ended campaigns apart: draft, scheduled, live, ended (past its end time) or stopped. In-app campaigns also appear in List Campaigns with type in_app. Requires the campaigns:read scope.
Request
string
Stored status:
draft, scheduled, sent (live or ended) or cancelled (stopped).number
default:"50"
Page size, 1 to 100.
number
default:"0"
Number of campaigns to skip.
curl -X GET "https://api.sequenzy.com/api/v1/in-app/campaigns?status=sent" \
--header "Authorization: Bearer $SEQUENZY_API_KEY"
Responses
{
"success": true,
"campaigns": [
{
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "sent",
"state": "live",
"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": "2026-11-08T09:00:00.000Z",
"estimatedRecipientCount": 1200,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
],
"total": 1
}
{
"error": "limit must be at most 100"
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:read"
}
⌘I
List In-App Campaigns
curl --request GET \
--url https://api.sequenzy.com/api/v1/in-app/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/in-app/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/in-app/campaigns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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"
req, _ := http.NewRequest("GET", 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.get("https://api.sequenzy.com/api/v1/in-app/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/in-app/campaigns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"campaigns": [
{
"id": "cmp_abc123",
"name": "New dashboards",
"type": "in_app",
"status": "sent",
"state": "live",
"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": "2026-11-08T09:00:00.000Z",
"estimatedRecipientCount": 1200,
"labelIds": [],
"createdAt": "2026-11-07T12:00:00.000Z",
"updatedAt": "2026-11-08T09:00:00.000Z"
}
],
"total": 1
}
{
"error": "limit must be at most 100"
}
{
"error": "Invalid API key"
}
{
"error": "API key is missing required scope: campaigns:read"
}