---
title: "Compose System Broadcast"
method: POST
path: "/api/system-broadcast/compose"
tags: ["System Broadcast"]
---

# Compose System Broadcast

`POST /api/system-broadcast/compose`

Draft an announcement with AI. system_admin only. Publishes NOTHING.

Returns {"body_html": str, "message": str} — the result is loaded into the
composer's editor, where a person reads it, edits it and presses Enviar.
This endpoint has no side effects: no banner, no archive row, no WhatsApp.

The HTML comes back already sanitized against the broadcast allowlist (the
same pass a hand-typed announcement gets), so the caller can render it
without a second thought.

## Headers

- `x-api-token` string, nullable

## Request body

- ComposeRequest — "Gerar com IA": what the admin wants to say, in their own words.
  - `prompt` string, required
  - `severity` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `b65cead3236b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/multigest/apis/multigest-protected-api/changes/api/system-broadcast/compose/post.md)

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc.dev/multigest/apis/multigest-protected-api/revisions/447243444af4?raw)
