Api
Compose a broadcast (one row, fan-out on read)
Composing is creating: the same idempotent management-plane write-path. One row per announcement, never materialized per subscriber.
Composing is creating: the same idempotent management-plane write-path. One row per announcement, never materialized per subscriber.
Authorization
AdminSession chimely_admin<token>
Server-side admin session cookie, set by POST /admin/api/login.
In: cookie
Path Parameters
env_id*string
Environment TypeID (env_…).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/admin/api/environments/string/broadcasts" \ -H "Content-Type: application/json" \ -d '{ "category": "string" }'{
"category": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "bcast_01h455vb4pex5vsknk084sn02q",
"idempotency_key": "string",
"payload": {
"action_url": "http://example.com",
"body": "string",
"icon_url": "http://example.com",
"title": "string"
}
}{
"category": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "bcast_01h455vb4pex5vsknk084sn02q",
"idempotency_key": "string",
"payload": {
"action_url": "http://example.com",
"body": "string",
"icon_url": "http://example.com",
"title": "string"
}
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}Empty
{
"error": {
"code": "invalid_request",
"message": "string"
}
}{
"error": {
"code": "invalid_request",
"message": "string"
}
}