API reference
Create a draft broadcast
Requires a `write`-scope key (capability `broadcast:compose`). Optionally seeds blocks from a known `templateId`.
POST
/api/broadcastsAuthorizationBearer <token>
A Stet API key (prefix bk_), created under Settings → API keys. The whole API requires the Growth plan or higher; keys are scoped read or write — composing and sending require write.
In: header
Header Parameters
Idempotency-Key?string
Optional client-generated key (UUID). Replaying a request with the same key returns the original result instead of repeating the side effect.
Format
uuidtitle?string
Default
""Length
length <= 200sendingProfileIdstring
Length
1 <= lengthaudienceIds?array<string>
Must be saved-kind audiences owned by this workspace; a one-time group can't be targeted here.
Default
[]templateId?string
Optional starter-template id; unknown ids 400.
Length
1 <= lengthResponse Body
curl -X POST "https://app.stethq.com/api/broadcasts" \ -H "Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "sendingProfileId": "string" }'{
"id": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}