Skip to content

Get Broadcast ​

GEThttps://api.repliz.com/public/broadcast

Retrieve your broadcasts, newest first, with how far each one got.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): broadcast:read (or broadcast:write)
  • Access Tier: Premium+

Parameters ​

ParameterTypeRequiredDescription
pagenumberYesPage to return, starting from 1.
limitnumberYesItems per page, from 1 to 100, for example 20.
accountIdsstring[]NoOnly broadcasts of these accounts, as _ids from Get Account. Send each one as accountIds[]=ID. All accounts when left out.
statusstringNoprocess, done, or canceled. Every broadcast when left out.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/broadcast?page=1&limit=20" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/broadcast', {
  params: {
    page: 1,
    limit: 20,
  },
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/broadcast?page=1&limit=20', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

FieldTypeDescription
_idstringID of the broadcast.
platformstringfacebook, instagram, tiktok, or telegram.
accountIdstringThe account it goes out from.
accountobjectThat account: _id, name, username, picture, type, and isConnected. null when it was deleted.
audiencestringunreplied or all, the list the chats were picked from.
delaynumberSeconds between two messages.
textstringThe text as it was written, with {name} and spintax. Each recipient gets their own version.
mediaobjecttype (image or video), url, thumbnail, duration, and mimetype. Left out when it only sends text.
statusstringprocess while it sends, done once every recipient was handled, or canceled.
totalnumberChats it goes to.
sentnumberChats that got it so far.
skippednumberChats that were skipped, see reason in Get Broadcast Recipient.
failednumberChats where the platform refused the message.
finishedAtstringWhen it ended. Left out while it sends.
expiredAtstringWhen the broadcast and its recipients are deleted, 30 days after the last send.
createdAtstringWhen it started.
json
{
  "docs": [
    {
      "_id": "6927e1c2e4b0a1f2c3d4e5f6",
      "platform": "instagram",
      "audience": "unreplied",
      "text": "{Halo|Hai} {name}, maaf baru sempat balas 🙏 Ada yang bisa kami bantu?",
      "delay": 5,
      "status": "process",
      "total": 120,
      "sent": 64,
      "skipped": 3,
      "failed": 1,
      "accountId": "680affa5ce12f2f72916f67e",
      "account": {
        "_id": "680affa5ce12f2f72916f67e",
        "name": "Kopi Kita",
        "username": "kopikita.id",
        "picture": "https://scontent.cdninstagram.com/v/t51.2885-19/kopikita.jpg",
        "type": "instagram",
        "isConnected": true
      },
      "userId": "680aff8bce12f2f72916f67a",
      "expiredAt": "2026-12-27T08:10:00.000Z",
      "createdAt": "2026-11-27T08:00:00.000Z",
      "updatedAt": "2026-11-27T08:05:20.000Z"
    }
  ],
  "totalDocs": 1,
  "limit": 20,
  "page": 1,
  "totalPages": 1,
  "hasNextPage": false,
  "hasPrevPage": false
}
json
{
  "code": 401,
  "message": "unauthorized"
}