Get Campaign
Retrieve a single push campaign.
Endpoint
GET /push/campaigns/{id}
Returns: 200 OK
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Campaign ID |
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <your-api-key> | Yes |
Response
Same shape as the Create Campaign response.
{
"id": "0192a1b2-c3d4-7e5f-9000-abcdef123456",
"name": "Flash sale — 6h only",
"title": "Doors close at midnight",
"body": "Everything 40% off for the next six hours.",
"status": "Sent",
"target_platforms": ["android", "ios"],
"throttle_minutes": 15,
"smart_sending_enabled": true,
"scheduled_at": null,
"sent_at": "2026-09-01T09:05:00.000Z",
"created_at": "2026-08-10T12:00:00.000Z",
"updated_at": "2026-09-01T09:05:00.000Z"
}
Examples
- cURL
- JavaScript
- Python
- C#
- PHP
curl "https://api.arsel.sa/v1/push/campaigns/0192a1b2-c3d4-7e5f-9000-abcdef123456" \
-H "Authorization: Bearer be_your_api_key"
const id = "0192a1b2-c3d4-7e5f-9000-abcdef123456";
const response = await fetch(`https://api.arsel.sa/v1/push/campaigns/${id}`, {
headers: { Authorization: "Bearer be_your_api_key" },
});
const campaign = await response.json();
console.log(campaign.status);
import requests
campaign_id = "0192a1b2-c3d4-7e5f-9000-abcdef123456"
response = requests.get(
f"https://api.arsel.sa/v1/push/campaigns/{campaign_id}",
headers={"Authorization": "Bearer be_your_api_key"},
)
print(response.json()["status"])
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer be_your_api_key");
var id = "0192a1b2-c3d4-7e5f-9000-abcdef123456";
var response = await client.GetStringAsync(
$"https://api.arsel.sa/v1/push/campaigns/{id}");
Console.WriteLine(response);
<?php
$id = "0192a1b2-c3d4-7e5f-9000-abcdef123456";
$ch = curl_init("https://api.arsel.sa/v1/push/campaigns/$id");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer be_your_api_key"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch);
curl_close($ch);
Error Responses
- 404 Not Found
- 401 Unauthorized
{
"status_code": 404,
"name": "not_found",
"message": "Campaign not found"
}
{
"status_code": 401,
"name": "unauthorized",
"message": "Invalid or missing API key"
}