# Architecture

MailSlurp architecture overview. How MailSlurp works and is built.

This document covers some of the system design of MailSlurp.

## Basic API structure

MailSlurp is made out several components hosted in a secure AWS environment in US-West-2. The basic overview of MailSlurp architecture is as follows:

![](/mermaid-gen/architecture.mmd.svg)

## User login

Authentication via SAML SSO IDP looks like this:

![](/mermaid-gen/sso.mmd.svg)

## PII information flow

The only personally identifiable information stored by default in MailSlurp is the user account email address.

- Payments are handled by Stripe (PCI-certified)
- User data may be handled by your own Idp SAML 2.0 identify provider (such as Okta)
- Only the emails that are sent to MailSlurp are stored. If you do not receive PII emails you will not store any PII.

![](/mermaid-gen/pii.mmd.svg)

## More details

For more information please [contact sales](/sales/).
