---
title: "Publish a message"
method: POST
path: "/drivers/broadcast-message"
tags: ["drivers"]
---

# Publish a message

`POST /drivers/broadcast-message`

Create a new message and broadcast it to drivers via NATS

## Request body

- TypesDriverMessage
  - `event` string — Event Name e.g. `create`
  - `id` string
  - `payload` string — JSON Payload
  - `run_id` string

## Response `200`

Message published successfully

- object

## Other responses

- `400` — Bad request - Invalid payload
- `500` — Internal server error

---

[API](https://skmtc.dev/open-ug/apis/conveyor-ci-api.md) · [All operations](https://skmtc.dev/open-ug/apis/conveyor-ci-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/open-ug/conveyor-ci-api/revisions/4ad35de52cbb/schema)
