🚀 Experience the new and improved APIVoid! Check out what's new
A JSON API to check if the DKIM record is present and valid. Use this API to verify the DKIM record configuration, ensuring your DKIM record is correctly configured. If you don't specify a selector (it is optional), the API will try up to 500 common DKIM selectors.
Consumes 5 credits per API call
# Example Curl request from the command line:
curl -X POST "https://api.apivoid.com/v2/dkim-validator" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY_HERE" \
-d '{"host": "stripe.com"}'
# Example JSON output for a 200 HTTP status code:
{
"selector": "s2",
"host": "stripe.com",
"dkim_host": "s2._domainkey.stripe.com",
"cname_target": "s2.domainkey.u2680008.wl009.sendgrid.net",
"has_dkim_record": true,
"dkim_record": "k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDR/9Km49dOTJZfnn/mL4N3Pv6RDxVq7VmN+/fYUcy3LUv2Vczz7TQFe071srBQWAOCpEQLAXJbRJYp+ltcW8IGECRGYLabp6un7lWDO4TVTXNwe+YKgCwSnNv8fREDXa44KU2zYp3rkaAmm2EaXrZLCupKQ8hR3ZcIJqzmdl1iUwIDAQAB",
"dkim_records_count": 1,
"version": "DKIM1",
"key_type": "rsa",
"issues_found": [
{
"code": "V_TAG_NOT_FOUND",
"type": "warning",
"message": "The v tag is missing"
},
{
"code": "WEAK_PUBLIC_KEY_BITS",
"type": "warning",
"message": "Public key uses weak 1024 bits"
}
],
"valid": true,
"elapsed_ms": 196
}
Key Features
Businesses and startups use this DKIM Validator API to lookup and test DKIM record of domains, check if DKIM is correctly configured or if there are warnings or errors that should be fixed.
This API performs an analysis of the DKIM record and highlights any misconfiguration found.
Ensure the DKIM record contains all required parameters and all is correctly configured.
The API returns accurate and complete information about a domain's DKIM record.
Easily troubleshoot DKIM records using our API—verify and correct misconfigured entries.
Common Use Cases
Our API can be used in many ways, from cybersecurity tasks to domain analysis/research tasks. Here we showcase the most popular use cases according to our customers usage:
Test the DKIM record of your domains, verify that all is configured correctly, and fix any issue found.
With this API you can monitor the DKIM record of your customers for misconfigurations and improvements.
Ensure a company's domain has a properly configured DKIM record with enforcement enabled.
Scan a list of domains to identify those with correctly configured DKIM records for research purposes.
USAGE EXAMPLE
All it takes is a HTTPS POST request with JSON payload to our endpoint, and you’ll receive the response within seconds, usually within 1-5 seconds. Here are a few code examples to use the API:
$host = 'stripe.com';
$apiUrl = 'https://api.apivoid.com/v2/dkim-validator';
$apiKey = 'your_api_key_here';
$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['host' => $host]));
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($httpCode === 200) {
$responseData = json_decode($response, true);
print_r($responseData);
}
Create your account, pick a subscription plan, and make your first API call instantly with your API key—simple as that!
Get started now