Skip to main content
POST
/
broadcasts
Create a new broadcast
curl --request POST \
  --url https://messenger-public-api.cogfy.com/broadcasts \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "type": "text",
  "title": "<string>",
  "content": "<string>",
  "phoneNumberId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contactsQuery": {
    "tags": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      }
    ]
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Body

application/json
type
enum<string>
Available options:
text
title
string
Maximum length: 100
content
string
Maximum length: 1024
phoneNumberId
string<uuid>
contactsQuery
object

Response

id
string<uuid>