Authen
tication
SignupGuard uses API keys to authenticate requests. Every API call must include a valid API key in the request headers.
Getting Your API Key
After creating an account, your API key is available in your dashboard. There are two types of API keys:
sg-StandardStandard API key for all plans. Provides access to all available endpoints within your plan's limits.
sge-EnterpriseEnterprise API key for high-volume usage. Includes elevated rate limits and priority support.
Using Your API Key
Include your API key in the X-sg-apikey header with every request. Do not include your API key in query parameters or request bodies.
Example request with API key
curl
curl -X GET "https://signupguard.io/api/v1/disposable/check/[email protected]" \
-H "X-sg-apikey: sg-your-api-key-here"Header Format
| Header | Value |
|---|---|
X-sg-apikey | Your API key (e.g., sg-aBcDeFgHiJkLmNoPqRsTu...) |
Security Best Practices
- Never expose your API key in client-side code. Always call the SignupGuard API from your backend server. Embedding keys in JavaScript, mobile apps, or browser requests exposes them to anyone inspecting your source.
- Use environment variables. Store your API key in environment variables or a secrets manager. Never hard-code it in your source files.
- Rotate your key if compromised. If your API key is accidentally leaked, regenerate it immediately from your dashboard.
- Use separate keys for staging and production. If available on your plan, use different keys for different environments to isolate usage tracking.
Authentication Errors
If your API key is missing, invalid, or expired, you will receive one of the following error responses:
Missing API Key — 403
{
"success": false,
"message": "API key required"
}Invalid API Key — 403
{
"success": false,
"message": "Invalid API key"
}