Skip to content

Fetch all Broadacasts

Get
bash
https://api.bunce.so/v1/broadcast

Returns a paginated list of transactional messages.

Request

Query Parameters

per_page intSpecify how many records you want to retrieve per page. If not specify we use a default value of 20.
cursor stringSpecify exactly what cursor you want to retrieve.
bash
curl --request GET \
  --url 'https://api.bunce.so/v1/broadcast' \
  --header 'Accept: application/json' \
  --header 'X-Authorization: sk_live_************************'
go
import (
	"fmt"
	"net/http"
	"io/ioutil"
)

url := "https://api.bunce.so/v1/broadcast"

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

	req.Header.Add("Accept", "application/json")
	req.Header.Add("X-Authorization", "sk_live_************************")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))
js
import  from 'node-fetch'

let  = 'https://api.bunce.so/v1/messaging/transactional'

let  = {
  : 'GET',
  : {
    : 'application/json',
    'X-Authorization': 'sk_live_************************',
  },
}

(, )
  .then(() => .json())
  .then(() => .())
  .catch(() => .('error:' + ))
php
<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://api.bunce.so/v1/messaging/transactional');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'page' => '1',
  'per_page' => '10'
]));

$request->setHeaders([
  'Accept' => 'application/json',
  'X-Authorization' => 'sk_live_************************'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
java
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.bunce.so/v1/messaging/transactional"))
    .header("Accept", "application/json")
    .header("X-Authorization", "sk_live_************************")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

Response

json
{
    "success": true,
    "data": [
        {
            "id": "9e434864-899c-496a-91f7-37a721d9496f",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:09:05",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e434cc0-a3d6-4c20-86b9-038dffff789c",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:21:16",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e434f08-5f5f-4aa0-b58e-747bc955fe84",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:27:39",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e434fc1-b4b2-4f11-a8f3-b619b4c62a97",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local 334",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:29:40",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e435071-0c10-4761-8722-3affb3d675d9",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local 334",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:31:35",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e4350b5-a230-4952-bfe9-7f40da0cb19a",
            "channel": "sms",
            "subject": "Reset Password OTP from Bunce local 334",
            "title": "",
            "message": "This is a another message from Bunce via SMS from local..testing alone",
            "message_type": "transactional",
            "created_at": "2025-02-21 06:32:20",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e73ddb2-1a6c-4165-8609-e225413f3226",
            "channel": "email",
            "subject": "Broadcast Test",
            "title": "",
            "message": "This is a test broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 09:46:18",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e73de9a-afe4-491c-93b5-d2c4ec39971f",
            "channel": "email",
            "subject": "Broadcast Test",
            "title": "",
            "message": "This is a test broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 09:48:51",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e742517-2f1f-4753-87f5-5ce93c8eec34",
            "channel": "sms",
            "subject": "",
            "title": "",
            "message": "This is a tes SMS broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 13:05:56",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e74432c-36d8-41b3-9325-a0e00cd12e93",
            "channel": "sms",
            "subject": "",
            "title": "",
            "message": "This is a tes SMS broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 14:30:03",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e7443b1-5f8d-4d26-967a-cfa40804d10a",
            "channel": "whatsapp",
            "subject": "Broadcast Test",
            "title": "",
            "message": "This is a test Whatsapp broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 14:31:30",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e7443fd-924c-4fef-b199-240b70d445e1",
            "channel": "whatsapp",
            "subject": "Broadcast Test",
            "title": "",
            "message": "This is a test Whatsapp broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 14:32:20",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        },
        {
            "id": "9e744ee9-3d92-46bc-a94f-590d867ef13e",
            "channel": "push_notification",
            "subject": "",
            "title": "",
            "message": "This is a test Push Notification broadcast message",
            "message_type": "broadcast",
            "created_at": "2025-03-17 15:02:53",
            "total_sent": 0,
            "total_delivered": 0,
            "total_failed": 0,
            "total_complained": null,
            "total_bounced": 0
        }
    ],
    "meta": {
        "has_next_page": false,
        "has_prev_page": false,
        "next_page_cursor": null,
        "prev_page_cursor": null,
        "per_page": 20
    },
    "message": "Broadcasts fetched successfully"
}