Messages

Messages show the interactions between participants over time.

Syntax

source->target:label
source-->target:label

Message Types

Syntax
Style
Use For

->

Solid arrow

Synchronous request

-->

Dashed arrow

Response / async

Basic Example

@seq
[participants]
  client:Client
  api:API
  db:Database

[messages]
  client->api:GET /users
  api->db:SELECT * FROM users
  db-->api:rows
  api-->client:200 OK [users]
Rendered diagram

Self-Messages

A participant calling itself:

Message Labels

Labels describe the interaction:

Numbered Messages (Coming Soon)

In a future version, you'll be able to add step numbers:

For now, message order is determined by sequence in the file.

Full Example

Rendered diagram

Next Steps

Last updated