Authentication
Learn how verification keys work and how to manage them effectively.
Overview
The Contact Form API uses a verification key system for authentication. Each key is associated with an email address and can optionally be restricted to specific domains.
Obtaining a Verification Key
To get a new verification key, send a POST request to the home endpoint:
Endpoint: POST /
Request Parameters:
| Parameter | Required | Description |
|---|---|---|
email
|
Yes | Your email address where the key will be sent |
requestType
|
No | Set to "generateKey" (default) to create a new key |
Response:
Retrieving Existing Keys
If you've lost your keys or want to retrieve all active keys for your email:
Response:
All your active verification keys will be sent to your email.
Key Limits
Key Restrictions
- Maximum keys: 10 active keys per email address
- Deleted keys: Don't count toward the limit
- Status types: Keys can be "active" or "disabled"
- Only active keys: Can be used for API requests
If you try to create more than 10 keys:
Domain Restrictions
Keys can optionally be restricted to specific domains for added security. When a key has use_domain enabled, requests from other domains will be rejected.
Error Response:
Use domain restrictions if your key will only be used from specific domains (e.g., your production website). This prevents unauthorized use of your key from other websites.
Using Your Verification Key
Include your verification key in every API request using the access_key parameter: