campaigns
list campaigns
every campaign, newest first, each with live contact counts in stats.
GET
/
v1
/
campaigns
list campaigns
curl --request GET \
--url https://silk-api.rumik.ai/v1/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://silk-api.rumik.ai/v1/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/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{
"items": [
{
"id": "01a0c165-7093-72a4-df10-2b3c4d5e6f70",
"name": "Diwali offer",
"description": null,
"status": "running",
"audienceId": "01a0b054-6f82-7193-ce0f-1a2b3c4d5e6f",
"audienceName": "September leads",
"contextColumns": [
{
"column": "city",
"description": "where they live"
}
],
"userAgentId": "019f6a2e-7c1d-7b3a-9e4f-1a2b3c4d5e6f",
"agentName": "acme support",
"phoneLineKind": "sip_trunk",
"phoneLineId": "019f7c10-2b4e-7d5f-8a6b-7c8d9e0f1a2b",
"fromNumber": "+918035763212",
"maxConcurrentCalls": 2,
"retryEnabled": true,
"retryDelayMinutes": 15,
"maxRetries": 2,
"scheduledAt": null,
"startedAt": "2026-10-01T09:05:00Z",
"completedAt": null,
"cancelledAt": null,
"lastError": null,
"notice": null,
"noticeAt": null,
"stats": {
"total": 120,
"pending": 95,
"dialing": 1,
"inProgress": 1,
"retryWaiting": 3,
"completed": 18,
"failed": 2,
"skipped": 0
},
"createdAt": "2026-10-01T09:05:00Z",
"updatedAt": "2026-10-01T09:20:00Z"
}
],
"count": 1,
"page": 1,
"totalPages": 1
}{
"error": "Invalid API key",
"code": "unauthorized"
}{
"error": "This API key lacks the 'agent' scope",
"code": "forbidden_scope"
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"limit": 100,
"current": 101
}Authorizations
your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.
Query Parameters
page number, from 1.
Required range:
x >= 1page size (1–100, default 25).
Required range:
1 <= x <= 100⌘I
list campaigns
curl --request GET \
--url https://silk-api.rumik.ai/v1/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://silk-api.rumik.ai/v1/campaigns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/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://silk-api.rumik.ai/v1/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://silk-api.rumik.ai/v1/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{
"items": [
{
"id": "01a0c165-7093-72a4-df10-2b3c4d5e6f70",
"name": "Diwali offer",
"description": null,
"status": "running",
"audienceId": "01a0b054-6f82-7193-ce0f-1a2b3c4d5e6f",
"audienceName": "September leads",
"contextColumns": [
{
"column": "city",
"description": "where they live"
}
],
"userAgentId": "019f6a2e-7c1d-7b3a-9e4f-1a2b3c4d5e6f",
"agentName": "acme support",
"phoneLineKind": "sip_trunk",
"phoneLineId": "019f7c10-2b4e-7d5f-8a6b-7c8d9e0f1a2b",
"fromNumber": "+918035763212",
"maxConcurrentCalls": 2,
"retryEnabled": true,
"retryDelayMinutes": 15,
"maxRetries": 2,
"scheduledAt": null,
"startedAt": "2026-10-01T09:05:00Z",
"completedAt": null,
"cancelledAt": null,
"lastError": null,
"notice": null,
"noticeAt": null,
"stats": {
"total": 120,
"pending": 95,
"dialing": 1,
"inProgress": 1,
"retryWaiting": 3,
"completed": 18,
"failed": 2,
"skipped": 0
},
"createdAt": "2026-10-01T09:05:00Z",
"updatedAt": "2026-10-01T09:20:00Z"
}
],
"count": 1,
"page": 1,
"totalPages": 1
}{
"error": "Invalid API key",
"code": "unauthorized"
}{
"error": "This API key lacks the 'agent' scope",
"code": "forbidden_scope"
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"limit": 100,
"current": 101
}