UML sequence diagram of a sign-in flow

This sequence diagram shows a user signing in: the user enters an email and password in the web app, which sends POST /login to the API. The API finds the user in the database and verifies the password hash. An alt fragment then shows both outcomes: 200 OK and a session token, or 401 Unauthorized and an error message.

Free to start in your browser. Nothing to install.

Sequence diagram
The Sequence diagram template in FlowShape

What's in it

  • Four lifelines: User, Web app, API, Database
  • Activation bars on Web app, API and Database
  • A self-message: Verify password hash
  • An alt fragment with [credentials valid] and [else]
  • A note: Only the salted hash is stored and compared

UMLSequence

Good for

  • Designing or documenting an API call flow
  • Showing the order of messages between components
  • Reviewing authentication logic with a team

A UML sequence diagram shows participants as vertical lifelines and the messages between them in time order, from top to bottom. Fragments such as alt show alternative paths.

Make it yours

Every shape is editable

Rename, move, restyle or delete anything. Connectors stay attached when shapes move.

In your browser

FlowShape runs in Edge, Chrome or any modern browser. Nothing to install.

Export when you need to

Word, PDF, PowerPoint and Visio (.vsdx).

Start from this template