Authentication
Authentication
Section titled “Authentication”Send your secret API key with every request:
X-API-Key: sk-your_api_keyExample:
curl https://tempmailhush.com/api/v1/domains \ -H "X-API-Key: sk-your_api_key"Key handling
Section titled “Key handling”- 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.
Missing or invalid keys
Section titled “Missing or invalid keys”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.