🚀 Experience the new and improved APIVoid! Check out what's new

DKIM Validator API: Check and validate DKIM record

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
}
Code analysis

Key Features

Conduct a thorough DKIM record lookup and verification

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.

Check DKIM Configuration

This API performs an analysis of the DKIM record and highlights any misconfiguration found.

Check DKIM Format

Ensure the DKIM record contains all required parameters and all is correctly configured.

Detailed Report

The API returns accurate and complete information about a domain's DKIM record.

Throubleshoot with Ease

Easily troubleshoot DKIM records using our API—verify and correct misconfigured entries.

Common Use Cases

Take a look at some real-world use cases of this API service

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:

Perform DKIM Tests

Test the DKIM record of your domains, verify that all is configured correctly, and fix any issue found.

Monitor Your Customers

With this API you can monitor the DKIM record of your customers for misconfigurations and improvements.

Better Risk Assessment

Ensure a company's domain has a properly configured DKIM record with enforcement enabled.

Domain Analysis Tasks

Scan a list of domains to identify those with correctly configured DKIM records for research purposes.

Use cases

USAGE EXAMPLE

Learn how seamless it is to add and use DKIM Validator API anywhere you want

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);
}

Start using our API services, it takes just a few minutes

Create your account, pick a subscription plan, and make your first API call instantly with your API key—simple as that!

Get started now