---
title: "Admin Create Message"
method: POST
path: "/admin/messages"
---

# Admin Create Message

`POST /admin/messages`

## Request

- Base URL: `https://api.local-mcp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.local-mcp.com/admin/messages`
- Auth: none declared. Required headers: `x-admin-key`

Crea un nuevo push message para mostrar en el tray.

Body fields:
  message: str (required) — the message body
  min_version, max_version: str (optional) — semver bounds
  active: bool (default true) — if false, the row is created as a draft
                                and NOT broadcast to live tunnels
  broadcast: bool (default true) — explicit override; set false to test
                                   message creation without pushing

Broadcast respects:
  - active flag (no broadcast if active=false)
  - broadcast flag (no broadcast if explicitly false)
  - min_version / max_version bounds when applied to each tunnel's
    last_version (looked up from tunnel_tokens)

Caught in QA admin sweep 2026-04-10: previous version always
broadcast immediately to ALL tunnels regardless of active or version
filters, so an admin testing a draft message would push it to every
live user.

## Headers

- `x-admin-key` string, required

## Request body

- object

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/local-mcp/apis/lmcp-api.md) · [All operations](https://skmtc.dev/local-mcp/apis/lmcp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/local-mcp/apis/lmcp-api/revisions/f1f1c502623a?raw)
