### Catch-all Detection Configuration Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Provides an example of how to enable catch-all detection in the Mailboxlayer API request by appending the 'catch_all=1' parameter. This helps identify mailboxes that accept all incoming emails. ```http https://apilayer.net/api/check ? access_key = YOUR_ACCESS_KEY & email = support@apilayer.com & catch_all = 1 ``` -------------------------------- ### Mailboxlayer API Response Example Source: https://docs.apilayer.com/mailboxlayer/docs/quickstart-guide This is an example of a JSON response received after making an email validation request to the Mailboxlayer API. It includes various fields indicating the validity, deliverability, and characteristics of the email address. ```JSON { "email": "support@apilayer.com", "format_valid": true, "mx_found": true, "smtp_check": true, "disposable": false, "free": false, "score": 0.8 } ``` -------------------------------- ### API Error Response Example Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started An example of an error response from the Mailboxlayer API, triggered when essential parameters like an email address are missing. It includes a success status, error code, error type, and an informational message. ```json { "success": false, "error": { "code": 210, "type": "no_email_address_supplied", "info": "Please specify an email address. [Example: support@apilayer.com]" } } ``` -------------------------------- ### Authenticate with Mailboxlayer API Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started This example shows how to construct the base API endpoint URL by appending your personal API Access Key for authentication. This is the first step to accessing Mailboxlayer's data and features. ```http http://apilayer.net/api/bulk_check?access_key=YOUR_ACCESS_KEY ``` -------------------------------- ### JSONP Callback Example for Mailboxlayer API Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Demonstrates how to use JSONP callbacks with the Mailboxlayer API. By appending `callback=CALLBACK_FUNCTION` to an API endpoint, the response is wrapped in the specified JavaScript function. This is useful for cross-domain requests. ```http http://apilayer.net/api/validate?callback=CALLBACK_FUNCTION ``` -------------------------------- ### JSONP Callback Response Example for Mailboxlayer API Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Illustrates the structure of a response when using JSONP callbacks with the Mailboxlayer API. The JSON data is enclosed within the function name specified in the `callback` parameter. ```javascript CALLBACK_FUNCTION ({ "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.net", "format_valid": true, "smtp_check": true, "role": true, "disposable": false, "free": false, "score": 0.8 }) ``` -------------------------------- ### Email Syntax Validation Example Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Demonstrates how the Mailboxlayer API validates email syntax according to RFC standards. The 'format_valid' field in the JSON response indicates whether the email's format is correct. ```json { "email": "user@example.com", "format_valid": true } ``` -------------------------------- ### Make a Single Email Validation Request Source: https://docs.apilayer.com/mailboxlayer/docs/quickstart-guide This example demonstrates how to perform a single email validation check using the Mailboxlayer API. It requires an API access key and the email address to be validated. The response provides detailed validation results. ```HTTP https://apilayer.net/api/check ?access_key=YOUR_ACCESS_KEY &email=support@apilayer.com ``` -------------------------------- ### API Error Handling Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Understand the structure of error responses from the Mailboxlayer API, including error codes, types, and informational messages. ```APIDOC ## API Error Response ### Description When an API request fails, Mailboxlayer returns a JSON object containing error details. ### Response Example ```json { "success": false, "error": { "code": 210, "type": "no_email_address_supplied", "info": "Please specify an email address. [Example: support@apilayer.com]" } } ``` ### Common API Errors - **code**: 210, **type**: `no_email_address_supplied` - No email address was provided in the request. - **code**: 400, **type**: `invalid_access_key` - The provided access key is invalid or has been deactivated. - **code**: 401, **type**: `access_key_missing` - The access key parameter is missing from the request. - **code**: 403, **type**: `rate_limit_reached` - The number of requests has exceeded the allowed limit for your subscription plan. ``` -------------------------------- ### JSON Formatting Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started The Mailboxlayer API provides a built-in JSON formatter for enhanced readability. To enable this, append `format=1` to any valid API request URL. ```APIDOC ## GET /api/bulk_check ### Description Performs a bulk check on multiple email addresses using the Mailboxlayer API with JSON formatting enabled. ### Method GET ### Endpoint http://apilayer.net/api/bulk_check ### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **emails** (array of strings) - Required - A comma-separated list of email addresses to check. - **format** (integer) - Optional - Set to `1` to enable JSON formatting for the response. Use only for debugging. ### Request Example ``` http://apilayer.net/api/bulk_check?access_key=YOUR_ACCESS_KEY&emails=test1@example.com,test2@example.com&format=1 ``` ### Response #### Success Response (200) - **email** (string) - The checked email address. - **did_you_mean** (string) - Suggested correction if the email is invalid. - **user** (string) - The user part of the email address. - **domain** (string) - The domain part of the email address. - **format_valid** (boolean) - Indicates if the email format is valid. - **smtp_check** (boolean) - Indicates if an SMTP check was performed. - **role** (boolean) - Indicates if the email is a role-based email (e.g., support@). - **disposable** (boolean) - Indicates if the email is from a disposable email provider. - **free** (boolean) - Indicates if the email is a free email address. - **score** (number) - A score indicating the deliverability of the email. #### Response Example ```json { "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.net", "format_valid": true, "smtp_check": true, "role": true, "disposable": false, "free": false, "score": 0.8 } ``` ``` -------------------------------- ### Email Validation API Source: https://docs.apilayer.com/mailboxlayer/docs/quickstart-guide This endpoint allows you to validate a single email address by sending a GET request with your access key and the email to check. ```APIDOC ## GET /api/check ### Description Validates a single email address. ### Method GET ### Endpoint `https://apilayer.net/api/check` ### Parameters #### Query Parameters - **access_key** (string) - Required - Your API Access Key. - **email** (string) - Required - The email address to validate. - **smtp** (boolean) - Optional - Enables/disables SMTP checking. Defaults to true. - **format** (integer) - Optional - Set to `1` for prettified JSON (debugging only). Defaults to 0. - **callback** (string) - Optional - Specifies a JSONP callback function name. ### Request Example ``` https://apilayer.net/api/check?access_key=YOUR_ACCESS_KEY&email=support@apilayer.com ``` ### Response #### Success Response (200) - **email** (string) - The exact email address requested. - **did_you_mean** (string) - Suggests a corrected version if a typo was detected. - **user** (string) - The local part before the "@" symbol. - **domain** (string) - The domain part after the "@" symbol. - **format_valid** (boolean) - `true` if the email syntax is valid. - **mx_found** (boolean) - `true` if MX records were found for the domain. - **smtp_check** (boolean) - `true` if the mailbox exists and accepts mail. - **catch_all** (boolean) - `true` if the domain accepts all emails. - **role** (boolean) - `true` if the address is a role-based email (e.g., support@). - **disposable** (boolean) - `true` if the address is from a disposable service. - **free** (boolean) - `true` if the domain belongs to a free provider like Gmail. - **score** (number) - Numeric value (0–1) representing quality and deliverability. #### Response Example ```json { "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.com", "format_valid": true, "mx_found": true, "smtp_check": true, "catch_all": false, "role": true, "disposable": false, "free": false, "score": 0.8 } ``` ``` -------------------------------- ### JSONP Callbacks Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started The Mailboxlayer API supports JSONP callbacks. To use this feature, append `callback=CALLBACK_FUNCTION` to any API endpoint. The result set will be returned as the specified callback function. ```APIDOC ## GET /api/validate ### Description Validates an email address using the Mailboxlayer API with JSONP callback support. ### Method GET ### Endpoint http://apilayer.net/api/validate ### Query Parameters - **callback** (string) - Required - The name of the JavaScript function to be called with the response. - **access_key** (string) - Required - Your Mailboxlayer API access key. ### Request Example ``` http://apilayer.net/api/validate?access_key=YOUR_ACCESS_KEY&email=test@example.com&callback=MyCallbackFunction ``` ### Response #### Success Response (200) - **callback** (string) - The name of the callback function. - **email** (string) - The validated email address. - **did_you_mean** (string) - Suggested correction if the email is invalid. - **user** (string) - The user part of the email address. - **domain** (string) - The domain part of the email address. - **format_valid** (boolean) - Indicates if the email format is valid. - **smtp_check** (boolean) - Indicates if an SMTP check was performed. - **role** (boolean) - Indicates if the email is a role-based email (e.g., support@). - **disposable** (boolean) - Indicates if the email is from a disposable email provider. - **free** (boolean) - Indicates if the email is a free email address. - **score** (number) - A score indicating the deliverability of the email. #### Response Example ``` MyCallbackFunction ({ "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.net", "format_valid": true, "smtp_check": true, "role": true, "disposable": false, "free": false, "score": 0.8 }) ``` ``` -------------------------------- ### Perform Bulk Email Validation Source: https://docs.apilayer.com/mailboxlayer/docs/quickstart-guide This example shows how to validate multiple email addresses simultaneously using the Mailboxlayer API's bulk check endpoint. This feature is available for Pro and Enterprise plans and requires your API access key and a comma-separated list of emails. ```HTTP https://apilayer.net/api/bulk_check ?access_key=YOUR_ACCESS_KEY &emails=user1@domain.com,user2@gmail.com ``` -------------------------------- ### Typo Check and Suggestions Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools The API can detect potential typos in the domain part of an email address and provide a suggestion for the correct email. ```APIDOC ## GET /api/check ### Description Checks for typos in the email domain and provides a suggestion if a typo is detected. ### Method GET ### Endpoint /api/check ### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to check. ### Response #### Success Response (200) - **email** (string) - The original email address. - **did_you_mean** (string) - A suggested correction for the email address if a typo was found, otherwise null. #### Response Example ```json { "email": "user@gnail.com", "did_you_mean": "user@gmail.com" } ``` ``` -------------------------------- ### Bulk Email Validation API (Pro & Enterprise) Source: https://docs.apilayer.com/mailboxlayer/docs/quickstart-guide This endpoint allows for bulk email validation for higher-tier plans, accepting a comma-separated list of emails. ```APIDOC ## POST /api/bulk_check ### Description Validates multiple email addresses in a single request. Available for Pro & Enterprise plans. ### Method POST ### Endpoint `https://apilayer.net/api/bulk_check` ### Parameters #### Query Parameters - **access_key** (string) - Required - Your API Access Key. - **emails** (string) - Required - A comma-separated list of email addresses to validate. - **smtp** (boolean) - Optional - Enables/disables SMTP checking. Defaults to true. - **format** (integer) - Optional - Set to `1` for prettified JSON (debugging only). Defaults to 0. - **callback** (string) - Optional - Specifies a JSONP callback function name. ### Request Example ``` https://apilayer.net/api/bulk_check?access_key=YOUR_ACCESS_KEY&emails=user1@domain.com,user2@gmail.com ``` ### Response #### Success Response (200) The response will include a JSON array of validation results, with each object containing the same fields as the single email validation response. #### Response Example ```json [ { "email": "user1@domain.com", "did_you_mean": "", "user": "user1", "domain": "domain.com", "format_valid": true, "mx_found": true, "smtp_check": true, "catch_all": false, "role": false, "disposable": false, "free": false, "score": 0.7 }, { "email": "user2@gmail.com", "did_you_mean": "", "user": "user2", "domain": "gmail.com", "format_valid": true, "mx_found": true, "smtp_check": true, "catch_all": false, "role": false, "disposable": false, "free": true, "score": 0.9 } ] ``` ``` -------------------------------- ### Real-time Verification (MX Record and SMTP Check) Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Performs real-time verification by checking for MX records of the domain and attempting an SMTP connection to verify the existence of the email address. ```APIDOC ## GET /api/check ### Description Verifies an email address in real-time by checking MX records and performing an SMTP check. ### Method GET ### Endpoint /api/check ### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to verify. ### Response #### Success Response (200) - **mx_found** (boolean) - Indicates if MX records were found for the domain. - **smtp_check** (boolean) - Indicates if the SMTP check was successful, suggesting the email address exists. #### Response Example ```json { "email": "user@example.com", "mx_found": true, "smtp_check": true } ``` ``` -------------------------------- ### Enable JSON Formatting in Mailboxlayer API Request Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Shows how to enable the built-in JSON formatter for the Mailboxlayer API by adding `format=1` to the request URL. This is primarily for debugging purposes and enhances response readability. ```http http://apilayer.net/api/bulk_check ? access_key = YOUR_ACCESS_KEY [...] & format = 1 ``` -------------------------------- ### GET /api/bulk_check Source: https://docs.apilayer.com/mailboxlayer/docs/code-examples This endpoint allows you to verify an email address. It uses a GET request to the /api/bulk_check endpoint with the access key and email address as parameters. ```APIDOC ## GET /api/bulk_check ### Description Verifies an email address using a GET request. ### Method GET ### Endpoint /api/bulk_check ### Parameters #### Query Parameters - **access_key** (string) - Required - Your API access key. - **email** (string) - Required - The email address to verify. ### Request Example (Example request not available in the provided text) ### Response #### Success Response (200) - **format_valid** (boolean) - Indicates if the email format is valid. - **smtp_check** (boolean) - Indicates if the SMTP check passed. - **score** (number) - The validation score. #### Response Example (Example response not available in the provided text) ``` -------------------------------- ### Bulk Email Address Check API Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Check multiple email addresses simultaneously by appending a comma-separated list of emails to the bulk_check endpoint. ```APIDOC ## GET /api/bulk_check ### Description Validates multiple email addresses in a single request. Available on Pro Plus & Enterprise Plus plans. ### Method GET ### Endpoint https://apilayer.net/api/bulk_check ### Parameters #### Query Parameters - **access_key** (string) - Required - Your API Access Key. - **emails** (string) - Required - A comma-separated list of email addresses to validate (up to 25 for Pro Plus, 100 for Enterprise Plus). ### Request Example ```json { "example": "https://apilayer.net/api/bulk_check?access_key=YOUR_ACCESS_KEY&emails=support@apilayer.com,support1@apilayer.com,support2@mailboxlayer.com" } ``` ### Response #### Success Response (200) The response contains an object for each email address in the request, with the same structure as the single email validation response. #### Response Example ```json { "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.net", "format_valid": true, "mx_found": true, "smtp_check": true, "catch_all": false, "role": true, "disposable": false, "free": false, "score": 0.8 } ``` ``` -------------------------------- ### Catch-all Detection Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Detects if an email address is part of a catch-all mailbox, where all emails sent to the domain are accepted regardless of the local part. This feature is available on paid plans and is inactive by default. ```APIDOC ## GET /api/check ### Description Detects if the email address is a catch-all address. This feature is available on paid plans and can be enabled by setting the `catch_all` parameter to 1. ### Method GET ### Endpoint /api/check ### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to verify. - **catch_all** (integer) - Optional - Set to 1 to enable catch-all detection. Defaults to 0. ### Response #### Success Response (200) - **catch_all** (boolean or null) - Indicates if the email address is a catch-all address. Returns `true` if it is, `false` if it is not, and `null` if the feature is inactive or not applicable. #### Response Example ```json { "email": "support@example.com", "catch_all": true } ``` ``` -------------------------------- ### Typo Detection and Suggestions Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Shows how the Mailboxlayer API detects potential typos in email domains and provides suggestions. The 'did_you_mean' field in the JSON response contains the suggested correction. ```json { "email": "user@gnail.com", "did_you_mean": "user@gmail.com" } ``` -------------------------------- ### Bulk Email Address Check Request Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started Shows how to perform bulk email address checks by appending multiple comma-separated email addresses to the API's base URL. This feature is available on higher-tier plans. ```http https://apilayer.net/api/bulk_check ? access_key = YOUR_ACCESS_KEY & emails = support@apilayer.com, support1@apilayer.com, support2@mailboxlayer.com, ... ``` -------------------------------- ### Catch-all Detection Result Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Shows the JSON response from the Mailboxlayer API indicating whether an email address is part of a catch-all mailbox. The 'catch_all' field returns true or false. ```json { "email": "catchall@example.com", "catch_all": true } ``` -------------------------------- ### MX Record Found Check Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Illustrates the Mailboxlayer API's check for Mail Exchanger (MX) records to determine if a domain is configured to receive email. The 'mx_found' field indicates the result. ```json { "email": "user@example.com", "mx_found": true } ``` -------------------------------- ### Mailboxlayer API Standard Response Source: https://docs.apilayer.com/mailboxlayer/docs/getting-started A typical JSON response object from the Mailboxlayer API after validating an email address. It includes various details about the email, such as validity, MX record status, SMTP check results, and whether it's a free or disposable address. ```json { "email": "support@apilayer.com", "did_you_mean": "", "user": "support", "domain": "apilayer.net", "format_valid": true, "mx_found": true, "smtp_check": true, "catch_all": false, "role": true, "disposable": false, "free": false, "score": 0.8 } ``` -------------------------------- ### Email Syntax Check Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools The Mailboxlayer API performs a standard email syntax check to verify compliance with RFC 5322 and RFC 5321 standards. It checks both the local and domain parts of the email address. ```APIDOC ## GET /api/check ### Description Verifies the syntax of an email address against standard email format rules. ### Method GET ### Endpoint /api/check ### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to verify. ### Response #### Success Response (200) - **format_valid** (boolean) - Indicates if the email address syntax is valid. #### Response Example ```json { "email": "user@example.com", "format_valid": true } ``` ``` -------------------------------- ### Verify Email Address using PHP (cURL) Source: https://docs.apilayer.com/mailboxlayer/docs/code-examples This snippet demonstrates how to verify an email address using the Mailboxlayer API with PHP and the cURL library. It requires an API access key and an email address as input. The output is a JSON object containing validation results. ```php // set API Access Key $access_key = 'YOUR_ACCESS_KEY'; // set email address $email_address = 'support@apilayer.com'; // Initialize CURL: $ch = curl_init('http://apilayer.net/api/bulk_check?access_key='.$access_key.'&email='.$email_address.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Store the data: $json = curl_exec($ch); curl_close($ch); // Decode JSON response: $validationResult = json_decode($json, true); // Access and use your preferred validation result objects $validationResult['format_valid']; $validationResult['smtp_check']; $validationResult['score']; ``` -------------------------------- ### Verify Email Address using JavaScript (jQuery.ajax) Source: https://docs.apilayer.com/mailboxlayer/docs/code-examples This snippet shows how to verify an email address using the Mailboxlayer API with JavaScript and jQuery.ajax. It requires an API access key and an email address. The results are logged to the console. JSONP is an optional data type for this request. ```javascript // set endpoint and your access key var access_key = 'YOUR_ACCESS_KEY'; var email_address = 'support@apilayer.com'; // verify email address via AJAX call $.ajax({ url: 'http://apilayer.net/api/bulk_check?access_key=' + access_key + '&email=' + email_address, dataType: 'jsonp', success: function(json) { // Access and use your preferred validation result objects console.log(json.format_valid); console.log(json.smtp_check); console.log(json.score); } }); ``` -------------------------------- ### SMTP Verification Check Source: https://docs.apilayer.com/mailboxlayer/docs/api-validation-tools Details the Mailboxlayer API's SMTP check to verify if an email address actually exists on the mail server. The 'smtp_check' field in the JSON response reflects the success of this check. ```json { "email": "user@example.com", "smtp_check": true } ``` -------------------------------- ### Mailboxlayer API Endpoints Source: https://docs.apilayer.com/mailboxlayer/docs/mailboxlayer-api-v-1-0-0 This section details the available endpoints for the Mailboxlayer API, including validation and bulk validation operations. ```APIDOC ## GET /validate ### Description Validates a single email address. ### Method GET ### Endpoint https://apilayer.net/api/validate ### Parameters #### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to validate. ### Request Example ``` https://apilayer.net/api/validate?access_key=YOUR_ACCESS_KEY&email=test@example.com ``` ### Response #### Success Response (200) - **email** (string) - The validated email address. - **valid_syntax** (boolean) - Indicates if the email syntax is valid. - **domain_valid** (boolean) - Indicates if the domain is valid. - **mx_found** (boolean) - Indicates if MX records were found for the domain. - **smtp_check** (boolean) - Indicates if an SMTP check was performed. - **deliverable** (boolean) - Indicates if the email address is deliverable. - **catch_all** (boolean) - Indicates if the mailbox is configured to catch all mail. - **disposable** (boolean) - Indicates if the email address is disposable. - **role_account** (boolean) - Indicates if the email address is a role account. - **free** (boolean) - Indicates if the email address is a free email address. - **user** (string) - The username part of the email. - **domain** (string) - The domain part of the email. - **dispose** (string) - The disposable type if applicable. - **type** (string) - The type of email account (e.g., 'personal', 'role'). - **score** (integer) - A score reflecting the quality of the email address. #### Response Example ```json { "email": "test@example.com", "valid_syntax": true, "domain_valid": true, "mx_found": true, "smtp_check": true, "deliverable": true, "catch_all": false, "disposable": false, "role_account": false, "free": false, "user": "test", "domain": "example.com", "dispose": null, "type": "personal", "score": 100 } ``` ## GET /bulk_validate ### Description Validates multiple email addresses in a single request. ### Method GET ### Endpoint https://apilayer.net/api/bulk_validate ### Parameters #### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **emails** (string) - Required - A comma-separated list of email addresses to validate. ### Request Example ``` https://apilayer.net/api/bulk_validate?access_key=YOUR_ACCESS_KEY&emails=test1@example.com,test2@example.com ``` ### Response #### Success Response (200) - **result** (object) - An object containing validation results for each email. - **email_address** (object) - Validation details for a specific email. - **email** (string) - The validated email address. - **valid_syntax** (boolean) - Indicates if the email syntax is valid. - **domain_valid** (boolean) - Indicates if the domain is valid. - **mx_found** (boolean) - Indicates if MX records were found for the domain. - **smtp_check** (boolean) - Indicates if an SMTP check was performed. - **deliverable** (boolean) - Indicates if the email address is deliverable. - **catch_all** (boolean) - Indicates if the mailbox is configured to catch all mail. - **disposable** (boolean) - Indicates if the email address is disposable. - **role_account** (boolean) - Indicates if the email address is a role account. - **free** (boolean) - Indicates if the email address is a free email address. - **user** (string) - The username part of the email. - **domain** (string) - The domain part of the email. - **dispose** (string) - The disposable type if applicable. - **type** (string) - The type of email account (e.g., 'personal', 'role'). - **score** (integer) - A score reflecting the quality of the email address. #### Response Example ```json { "result": { "test1@example.com": { "email": "test1@example.com", "valid_syntax": true, "domain_valid": true, "mx_found": true, "smtp_check": true, "deliverable": true, "catch_all": false, "disposable": false, "role_account": false, "free": false, "user": "test1", "domain": "example.com", "dispose": null, "type": "personal", "score": 100 }, "test2@example.com": { "email": "test2@example.com", "valid_syntax": false, "domain_valid": false, "mx_found": false, "smtp_check": false, "deliverable": false, "catch_all": false, "disposable": false, "role_account": false, "free": false, "user": "test2", "domain": "example.com", "dispose": null, "type": "personal", "score": 0 } } } ``` ``` -------------------------------- ### Mailboxlayer API - Email Validation Source: https://docs.apilayer.com/mailboxlayer/docs/api-documentation The Mailboxlayer API offers a simple REST-based JSON API to thoroughly check and verify email addresses at the point of entry. It checks syntax, existence using MX-Records and SMTP, detects catch-all mailboxes, and filters disposable or free email addresses. ```APIDOC ## POST /check ### Description Validate a single email address with full metadata. ### Method POST ### Endpoint /check ### Parameters #### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. - **email** (string) - Required - The email address to validate. ### Request Example ```json { "access_key": "YOUR_ACCESS_KEY", "email": "test@example.com" } ``` ### Response #### Success Response (200) - **email** (string) - The validated email address. - **did_you_mean** (string) - Suggested correction if a typo is detected. - **user** (string) - The user part of the email address. - **domain** (string) - The domain part of the email address. - **is_valid_format** (boolean) - Whether the email address has a valid format. - **is_mx_found** (boolean) - Whether MX records were found for the domain. - **is_smtp_valid** (boolean) - Whether the SMTP server accepted the email address. - **smtp_error** (string) - Any SMTP error message encountered. - **catch_all** (boolean) - Whether the mailbox is a catch-all address. - **role_address** (boolean) - Whether the email address is a role-based address (e.g., admin@). - **free_email** (boolean) - Whether the email address is from a free email provider. - **disposable_email** (boolean) - Whether the email address is from a disposable email provider. - **deliverability** (float) - A score indicating the deliverability of the email address. #### Response Example ```json { "email": "test@example.com", "did_you_mean": null, "user": "test", "domain": "example.com", "is_valid_format": true, "is_mx_found": true, "is_smtp_valid": true, "smtp_error": null, "catch_all": false, "role_address": false, "free_email": false, "disposable_email": false, "deliverability": 0.95 } ``` ``` -------------------------------- ### Mailboxlayer API - Bulk Email Validation Source: https://docs.apilayer.com/mailboxlayer/docs/api-documentation Validate multiple email addresses in a single request. This endpoint is available on Pro Plus and Enterprise Plus plans. ```APIDOC ## POST /bulk_check ### Description Validate multiple email addresses in one request. ### Method POST ### Endpoint /bulk_check ### Parameters #### Query Parameters - **access_key** (string) - Required - Your Mailboxlayer API access key. #### Request Body - **emails** (array of strings) - Required - An array of email addresses to validate. ### Request Example ```json { "access_key": "YOUR_ACCESS_KEY", "emails": [ "test1@example.com", "test2@example.com" ] } ``` ### Response #### Success Response (200) - **email_data** (array of objects) - An array containing validation results for each email address. - Each object in the array will have the same structure as the response for the `/check` endpoint. #### Response Example ```json { "email_data": [ { "email": "test1@example.com", "did_you_mean": null, "user": "test1", "domain": "example.com", "is_valid_format": true, "is_mx_found": true, "is_smtp_valid": true, "smtp_error": null, "catch_all": false, "role_address": false, "free_email": false, "disposable_email": false, "deliverability": 0.95 }, { "email": "test2@example.com", "did_you_mean": null, "user": "test2", "domain": "example.com", "is_valid_format": true, "is_mx_found": true, "is_smtp_valid": true, "smtp_error": null, "catch_all": false, "role_address": false, "free_email": false, "disposable_email": false, "deliverability": 0.92 } ] } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.