Whats91
Developers

Retrieve timeline events for a campaign.

Campaign Timeline

Summary

Retrieve timeline events for a campaign.

Prerequisites

  • Authorization: Bearer w91_live_xxx
  • Content-Type: application/json for JSON requests

Endpoint: GET /api/v2/reports/campaigns/{campaignUid}/timeline. Returns status, webhook status, execution, interaction, unsubscribe, and related timeline events where available.

GET/api/v2/reports/campaigns/{campaignUid}/timeline
ParameterTypeRequiredDescription
campaignUidstringRequiredCampaign UID from the campaign list.
senderIdstringOptionalWhatsApp sender phone number.
dateFromstringOptionalYYYY-MM-DD start date.
dateTostringOptionalYYYY-MM-DD end date.
Get campaign timeline
curl "https://graph.whats91.com/api/v2/reports/campaigns/campaign_uid/timeline" \
  -H "Authorization: Bearer w91_live_xxx"
Campaign timeline response
{
  "success": true,
  "data": {
    "campaignUid": "campaign_uid",
    "events": [
      { "type": "execution", "label": "Campaign started", "occurredAt": "2026-06-05T07:55:00.000Z" },
      { "type": "status", "status": "delivered", "count": 80, "occurredAt": "2026-06-05T08:00:00.000Z" },
      { "type": "webhook status", "status": "sent", "occurredAt": "2026-06-05T08:01:00.000Z" },
      { "type": "interaction", "intent": "payment_link_clicked", "occurredAt": "2026-06-05T08:02:00.000Z" },
      { "type": "unsubscribe", "count": 1, "occurredAt": "2026-06-05T08:03:00.000Z" }
    ]
  }
}

SDK Examples

Use these examples as starting points for server-side implementations.

cURL
curl -X GET "https://graph.whats91.com/api/v2/reports/campaigns/{campaignUid}/timeline" \
  -H "Authorization: Bearer w91_live_xxx"
Node.js
const response = await fetch("https://graph.whats91.com/api/v2/reports/campaigns/{campaignUid}/timeline", {
  method: "GET",
  headers: {
    "Authorization": "Bearer w91_live_xxx",
    "Content-Type": "application/json"
  }
});

const data = await response.json();
console.log(data);
PHP
$ch = curl_init("https://graph.whats91.com/api/v2/reports/campaigns/{campaignUid}/timeline");
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer w91_live_xxx",
    "Content-Type: application/json"
  ]
]);

$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests

response = requests.request(
    "GET",
    "https://graph.whats91.com/api/v2/reports/campaigns/{campaignUid}/timeline",
    headers={
        "Authorization": "Bearer w91_live_xxx",
        "Content-Type": "application/json",
    }
)

print(response.json())
C#
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer w91_live_xxx");

var request = new HttpRequestMessage(HttpMethod.Get, "https://graph.whats91.com/api/v2/reports/campaigns/{campaignUid}/timeline");

var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Related APIs