Copy as Markdown[View as Markdown](/docs/sdk/type-aliases/FlowMessageStepInput.md)

***

# Type Alias: FlowMessageStepInput\<TMessageId>

> **FlowMessageStepInput**<`TMessageId`>: [`FlowStepInput`](/docs/sdk/type-aliases/FlowStepInput.md) & `object`

Defined in: flow-builder.ts:32

Payload for a flow step that references an event, command, or query.

## Type declaration[​](#type-declaration "Direct link to Type declaration")

### message?[​](#message "Direct link to message?")

> `optional` **message**: `object`

#### message.id[​](#messageid "Direct link to message.id")

> **id**: `TMessageId`

#### message.version?[​](#messageversion "Direct link to message.version?")

> `optional` **version**: `string`

### version?[​](#version "Direct link to version?")

> `optional` **version**: `string`

## Type Parameters[​](#type-parameters "Direct link to Type Parameters")

| Type Parameter                  |
| ------------------------------- |
| `TMessageId` *extends* `string` |
