Templates / sequenceDiagram
API key rotation
Issuing a new API key, updating the consuming app, and revoking the old key.
Preview
Mermaid 11 renderer
Rendering preview...
Mermaid source
sequenceDiagram
sequenceDiagram
participant Admin
participant Console as Developer console
participant API as Key service
participant Client as Consuming app
Admin->>Console: Request new API key
Console->>API: Generate key (status: active)
API-->>Console: New key
Console-->>Admin: Display new key
Admin->>Client: Update key in config
Admin->>Console: Revoke old key
Console->>API: Set old key status: revokedMore templates
flowchartArchitecture
Microservices architecture
A service map with an API gateway, core services, and shared infrastructure. A solid starting point for README architecture sections.
sequenceDiagramProcess
User login sequence
A login flow with token issuance and a failure branch. Useful for documenting auth endpoints and session behavior.
stateDiagram-v2Process
Order state machine
Lifecycle states for an e-commerce order, from creation to fulfillment, with cancellation and refund paths.