Skip to main content
The cNGN API encrypts every response payload to an Ed25519 public key you upload to your dashboard. This guide creates the key pair and copies the public key, on any operating system.
1

Generate the key pair

The command prompts you for:
  • Save location: press Enter to accept the default (~/.ssh/id_ed25519), or provide a dedicated path such as ~/.ssh/cngn_api_key
  • Passphrase: optional; press Enter to skip
This produces two files: the private key (id_ed25519) and the public key (id_ed25519.pub).
If you set a passphrase, your integration needs it to load the private key when decrypting responses. For server-side automation, most teams skip the passphrase and rely on filesystem permissions and secret management instead.
2

Copy the public key

3

Upload it to your dashboard

Paste the copied public key into the SSH public key field on the API Key tab of your dashboard settings. Full walkthrough: Generating API Keys.

Public vs. private key

Your private key must remain protected at all times and never be disclosed to anyone. If it’s ever exposed, generate a new pair and update the dashboard immediately.
Next: use the private key to decrypt responses in Encrypting & Decrypting Requests.