API Keys

Create API keys and understand the difference between public and private keys.

An API key authenticates your requests to the Tuix Email Service. You create and manage keys in the Tuix dashboard under API Keys.

Create an API key

In the dashboard, open your profile at the bottom of the sidebar and choose API Keys from the menu.

Click New API Key in the top right to open the dialog.
Enter a descriptive Key Name, e.g. "production API key".

Choose the type: check Public key for a public key, or leave it unchecked for a private key.

Click Generate Key and copy the value right away.

The key is shown only once. After you close the dialog you cannot see it again. Copy it immediately and store it securely.

Create a new API key in the Tuix dashboard

Public or private?

When creating a key, the Public key checkbox decides whether it is public or private. The table shows the type as Public or Private.

TypeUseAccessExposable
Publicdirectly in the frontendlimited, not all /api endpointsYes
Privateserver-side onlyall API methodsNo

A public key can be used in the browser and exposed, but it cannot reach every endpoint.

A private key has full access and must never reach the browser or client bundles. Use it server-side only.

On this page