I need a Site ID and API keys
Sign up at magentrust.ai and create a site. You'll get a Site ID, a public API key (for client-side), and a secret key (for server-side). Keep the secret key in environment variables only.
- Go to magentrust.ai and sign up or log in.
- Create a new site and add your domain.
- Copy your Site ID, Public Key (pk_live_...), and Secret Key (sk_live_...).
- Add them to your app: public key and Site ID in client env, secret key only on the server.
Example .env
NEXT_PUBLIC_MAGEN_SITE_ID=your_site_id
NEXT_PUBLIC_MAGEN_PUBLIC_KEY=pk_live_...
MAGEN_SECRET_KEY=sk_live_...