Create an announcement
Creates an announcement with validated audience targets. When the
new announcement has status: active, a notifications.new event
is emitted to broadcast the message. Requires
announcements:write permission. Rate-limited to 50 calls per minute.
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Body
Audience targeting object - required, validated server-side.
5002000500002562048draft, active, archived 3264Response
Announcement created.
Audience targeting object - validated and normalized server-side
by internal/validate-announcement-targets. Common shape exposes
roles, permissions, products, userIds.
draft, active, archived