← All glossary terms
Glossary

Sequence diagram

GlossaryBy OpenCharts TeamPublished

A sequence diagram is a UML interaction diagram that shows how objects or actors exchange messages over time, with vertical lifelines and horizontal arrows.

In depth

Sequence diagrams are the standard way to document an API call sequence, an authentication handshake, or any interaction where the order of messages matters. The Y-axis is time (top → bottom), the X-axis is participants (lifelines), and arrows are messages with optional labels and return values.

Common patterns include synchronous calls (filled arrowhead), asynchronous calls (open arrowhead), self-calls (looping arrow back to the same lifeline), and activations (the rectangle on a lifeline that shows when an object is doing work).

OpenCharts can model sequence diagrams using its structured node types — participant, message, return, and activation — with auto-layout that keeps lifelines aligned.

Examples

  • OAuth 2.0 authorization code flow
  • Stripe checkout webhook flow
  • MCP client → server tool call sequence

Also known as

UML sequence diagram

Want to put this concept to work in OpenCharts?

Build a sequence diagram

Related terms

Related use cases