Skip to main content
GET
/
api
/
campaign
List Campaigns
curl --request GET \
  --url https://api.getello.ai/api/campaign \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.getello.ai/api/campaign"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.getello.ai/api/campaign', 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.getello.ai/api/campaign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$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.getello.ai/api/campaign"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

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.getello.ai/api/campaign")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.getello.ai/api/campaign")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": 200,
  "message": "Campaigns retrieved successfully",
  "data": [
    {
      "campaign_id": "6901c1d8b004a5d55a123abc",
      "campaignName": "Follow-up Campaign October",
      "assistantId": "685d4b93abcf4c90c18034aa",
      "status": "scheduled",
      "scheduleTime": "2025-10-29T11:30:00.000Z",
      "recipientCount": 150,
      "createdAt": "2026-04-07T10:30:00.000Z",
      "updatedAt": "2026-04-07T10:35:00.000Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 25,
    "totalPages": 3,
    "hasNextPage": true,
    "hasPrevPage": false
  }
}
{
"status": 400,
"message": "Invalid query parameters"
}
{
"status": 401,
"message": "Authentication token is missing or invalid"
}
{
"status": 500,
"message": "Error while fetching campaigns"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

Search keyword to filter campaigns by name or other attributes.

status
enum<string>

Filter campaigns based on their current status.

Available options:
scheduled,
running,
completed,
failed
Example:

"scheduled"

page
integer
default:1

The page number to retrieve.

Required range: x >= 1
limit
integer
default:10

Number of campaigns to return per page.

Required range: 1 <= x <= 100

Response

Campaigns retrieved successfully

status
integer
Example:

200

message
string
Example:

"Campaigns retrieved successfully"

data
object[]
pagination
object