Mail Verification

Introduction

Mail verification functions allows you to check if certain mail is valid , reachable, deliverable or of disposable types or not. You can use this function to prevent onboarding user to not use disposable mail

Endpoint

POST
   https://api.oyyi.xyz/v1/mail-verifier

Content-Type: application/json

Parameters

Example

Python
import requestsurl = $BASE_URL/mail-verifierstoken = 'your_bearer_token_here'headers = {'Authorization': f'Bearer {token}'}data = { "email": 'myfakemail@dummy.com'};response = requests.post(url,params=data, headers=headers)print(response.text)
Javascript
const axios = require('axios');const url = $BASE_URL/mail-verifiers;const token = 'your_bearer_token_here';const data = { email: 'myfakemail@dummy.com'};const config = {  headers: {    'Authorization': `Bearer ${token}`,    'Content-Type': 'application/json'  }};axios.post(url, data, config)  .then(response => console.log(response.data))  .catch(error => console.error(error));
Dart
import 'dart:io';import 'package:http/http.dart' as http;void main() async {   final url = Uri.parse('$BASE_URL/mail-verifiers');  final data ={ "email": 'myfakemail@dummy.com'}; final response = await http.post(    Uri.parse(url),    headers: {'Content-Type': 'application/json'},    body: jsonEncode(data),  );}
Laravel
use Illuminate\Http\Client\Response;use Illuminate\Support\Facades\Http;$url = '$BASE_URL/mail-verifiers';$token = 'your_bearer_token_here';$data = ["email" => 'myfakemail@dummy.com'];$response = Http::withHeaders([    'Authorization' => 'Bearer ' . $token,])->post($url,$data);if ($response->successful()) {    $data = $response->json();} else {m    $message = $response->json()['message']m;}
Curl
curl -X POST \  -H {'Authorization: Bearer your_bearer_token_here','Content-type: application/json'} \  -d { "email": 'myfakemail@dummy.com'} \  $BASE_URL/mail-verifiers

Response

Default
{  "data": {    "email": "myfakemail@dummy.com",    "reachable": false,    "username": "myfakemail",    "domain": "dummy.com",    "syntax_valid": true,    "inbox_full": false,    "catch_all_mail": true,    "mail_disabled": false,    "mail_deliverable": false,    "gravatar": null,    "disposable": false,    "role_account": false,    "free_account": false,    "has_mx_records": true  }}