Protected by MagenTrust
    MAGEN
    MAGEN Docs

    API Key Management

    Keeping your Public and Secret keys secure.

    Public API Key: Safe to use in client-side code (browser, mobile apps). Used for /v1/verify and SDK initialization.

    Secret Key: Never expose in client code. Use only on your servers for /v1/validate-token, /v1/analytics, and threshold updates. Store in environment variables or a secrets manager.

    Rotate keys periodically from the dashboard. After rotation, update your server environment and redeploy; client-side public key can be updated without downtime.