broadcasts
Create broadcast draft
Create a broadcast in draft status. Add recipients and then send or schedule it.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
profileIdstring
accountIdstring
platformstring
Value in
"instagram" | "facebook" | "telegram" | "twitter" | "bluesky" | "reddit" | "whatsapp"namestring
description?string
message?
template?
WhatsApp template (required when platform is whatsapp)
segmentFilters?
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.broadcasts.createBroadcast({ body: { profileId: 'profile_abc123', accountId: 'account_abc123', platform: 'instagram', name: 'Example', },});console.log(data);{
"success": true,
"broadcast": {
"id": "string",
"name": "string",
"description": "string",
"platform": "string",
"accountId": "string",
"status": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}