---
title: "Trigger message event"
method: POST
path: "/message-events/{id}"
tags: ["Inspect"]
---

# Trigger message event

`POST /message-events/{id}`

## Request

- Base URL: `http://localhost:8090/inspect-api`
- URL: `http://localhost:8090/inspect-api/message-events/{id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/docs/message-events/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `messageEventId` string, required

## Request body

- TriggerMessageRequest: Request that is used for triggering a message
  - `createTestDefinition` boolean: Whether a test definition needs to be created for the message request. Only used when triggering a message for a definition

## Response `200`

Indicates the message event is found and triggered.

- TriggerResultDTO
  - `instanceId` string
  - `instanceType` string

## Other responses

- `404`: Indicates the message event was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/revisions/5c72eb80b6c5?raw)
