Logo
NeoArc Studio

Messages and Payloads

Document async API messages with payload schemas, headers, correlation IDs, protocol bindings, and realistic examples. Apply message traits for cross-cutting concerns.

Messages define the structure and semantics of data exchanged through async API channels. Each message documents its payload schema, headers, correlation mechanism, protocol-specific bindings, and concrete examples.

Message Structure

PropertyDescription
NameMessage identifier (e.g. OrderCreatedEvent)
Payload SchemaReference to a schema definition that describes the message body
Content TypeMIME type of the payload (JSON, Avro, Protobuf, XML, Binary, Plain Text, CloudEvents)
Headers SchemaReference to a schema definition for message headers
Correlation IDExpression for extracting the correlation identifier from the message
Protocol BindingsProtocol-specific message properties (Kafka key schema, AMQP encoding, etc.)
ExamplesConcrete JSON examples with headers and payload
TraitsReusable message traits for cross-cutting header and binding patterns
DeprecatedMark messages as deprecated with migration guidance

Payload Schemas

Message payloads reference schemas defined in the Schema Editor. This keeps message structures consistent with your data model and enables end-to-end data lineage from event payloads to database entities.

Example: Order Event Payload Schema

Example: Shared Event Headers Schema

Correlation IDs

Correlation IDs enable distributed tracing across services. Each message can define a correlation ID with a location expression that tells consumers where to find the identifier.

{
  "correlationId": {
    "description": "UUID correlation identifier propagated across service boundaries",
    "location": "$message.header#/correlationId"
  }
}

Message Examples

Each message can include multiple examples with name, summary, headers JSON, and payload JSON. Examples are displayed with syntax highlighting in the published viewer.

Order Created Event

Payment Processed Event

Inventory Updated Event

Message Traits

Message traits define reusable cross-cutting properties that apply to multiple messages. Common use cases include standard headers for correlation, auditing, and CloudEvents envelopes.

Trait PropertyDescription
Headers SchemaShared header schema applied to all messages using this trait
Correlation IDStandard correlation ID configuration
Content TypeDefault content type override
Protocol BindingsShared protocol-specific message bindings
TagsCategorisation tags inherited by messages

Supported Content Types

Content TypeUse Case
application/jsonStandard JSON payloads (most common)
application/avroApache Avro serialised messages (with Schema Registry)
application/protobufProtocol Buffers serialised messages
application/xmlXML-formatted messages
application/octet-streamBinary payloads
text/plainPlain text messages
application/cloudevents+jsonCloudEvents JSON envelope format