Skip to content

Authentication

Send your secret API key with every request:

X-API-Key: sk-your_api_key

Example:

Terminal window
curl https://tempmailhush.com/api/v1/domains \
-H "X-API-Key: sk-your_api_key"
  • Store API keys in environment variables or a secret manager.
  • Do not place secret keys in browser JavaScript.
  • Rotate a key if it is exposed in logs, screenshots, support tickets, or a public repository.

Requests without a valid key return an authorization error. Create a new key from your account page if you no longer have access to the original key.