Templates / sequenceDiagram

API key rotation

Issuing a new API key, updating the consuming app, and revoking the old key.

Open in studio

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: revoked

More templates