Download OpenAPI specification:Download
Email Academy API provides the usage of its various tools through an API
Each tool has its own usage limits. This endpoint provides the current usage and limits for the given tool.
| api_key required | string Example: api_key=your-api-key The user's API key |
| tool required | string Enum: "blacklist_checker" "email_verifier" "bounce_code_analyzer" "inbox_tester" "spfdkim_tester" "rdns_tester" "blacklist_monitor" "website_monitor" Example: tool=email_verifier The name of the tool |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/tool-limits?api_key=your-api-key&tool=email_verifier',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "limit": 500,
- "used": 325,
- "period": "monthly"
}Validate an IP or domain through various blacklists
Request parameters for blacklist checker
| host | string The domain or IP |
| api_key | string The user's API key |
{- "api_key": "your-api-key",
- "host": "example.com"
}{- "results": [
- {
- "blacklist": "all.s5h.net",
- "status": "clear"
}, - {
- "blacklist": "dnsbl-3.uceprotect.net",
- "status": "blacklisted"
}, - {
- "blacklist": "web.dnsbl.sorbs.net",
- "status": "clear"
}
]
}Validate an IP or domain through various blacklists
| api_key required | string Example: api_key=your-api-key The user's API key |
| host required | string Example: host=example.com The domain or IP |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist?api_key=your-api-key&host=example.com',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "results": [
- {
- "blacklist": "all.s5h.net",
- "status": "clear"
}, - {
- "blacklist": "dnsbl-3.uceprotect.net",
- "status": "blacklisted"
}, - {
- "blacklist": "web.dnsbl.sorbs.net",
- "status": "clear"
}
]
}Upload a file of IPs and domains for blacklist check
Request parameters for uploading a file
| file required | any <binary> The file containing the IPs and domains |
| api_key required | string The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist/file/check',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('api_key' => 'your-api-key','file'=> new CURLFILE('/path/to/file')),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "file_id": "1628750661SHYNuWITqYoeWc"
}Get a list of files with detailed information of the files
| api_key required | string Example: api_key=your-api-key The user's API key |
| offset | string Example: offset=5 Optional offset for pagination. Defaults to 0 |
| count | string Example: count=15 Optional count for pagination. Defaults to 10 |
| file_id | string Example: file_id=1628750661SHYNuWITqYoeWc Optional file ID filter. Exact file ID must be given. |
| file_name | string Example: file_name=bounce Optional file name filter. The given string will be looked up in the file name. |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist/file/info?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "count": 10,
- "offset": 0,
- "total": 24,
- "results": [
- {
- "file_id": "1628750661SHYNuWITqYoeWc",
- "file_name": "domains.txt",
- "status": "finished",
- "blacklisted": 5,
- "clear": 1,
- "created_at": "2021-01-01 15:04:05",
- "updated_at": "2021-01-01 15:05:02"
}
]
}Download the detailed results of a file
| api_key required | string Example: api_key=your-api-key The user's API key |
| file_id required | string Example: file_id=16163983962328dj5HoZq0DievB7 The ID of the file |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist/file/download-result?api_key=your-api-key&file_id=16163983962328dj5HoZq0DievB7',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "result": "error",
- "error": "File not found"
}Upload a file of email addresses for verification
Request parameters for uploading a file
| file required | any <binary> The file containing the email addresses |
| api_key required | string The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/email-verifier/file/verify',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('api_key' => 'your-api-key','file'=> new CURLFILE('/path/to/file')),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "file_id": 25,
- "error": "",
- "total_rows": 5,
- "unique_emails": 3
}Verify a list of emails
Request parameters for list email verification
| api_key required | string The user's API key |
| emails required | Array of strings Array of email addresses |
{- "api_key": "your-api-key",
}{- "file_id": 2,
- "error": "",
- "total_rows": 5,
- "unique_emails": 5
}Download the results of email verification
| api_key required | string Example: api_key=your-api-key The user's API key |
| file_id required | string Example: file_id=2 File ID |
| report_type | string Enum: "good" "risky" "bad" "" Example: report_type= Report type. If omitted or empty string given, then all results will be downloaded |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/email-verifier/file/download-result?api_key=your-api-key&file_id=111',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "result": "error",
- "error": "File not found"
}Get a list of file information
| api_key required | string Example: api_key=your-api-key The user's API key |
| file_id | string Example: file_id=20 Optional file ID filter |
| count | string Example: count=10 Optional count filter as to how much files to retrieve for pagination |
| offset | string Example: offset=0 Optional offset filter for pagination |
| file_name | string Example: file_name=filename.txt Optional file name filter |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/email-verifier/file/info?api_key=your-api-key&file_id=20',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "count": 0,
- "offset": 0,
- "total": 0,
- "results": [
- {
- "file_id": 0,
- "file_name": "string",
- "status": "string",
- "unique_emails": 0,
- "uploaded_at": "string",
- "started_at": "string",
- "finished_at": "string",
- "updated_at": "string",
- "ea_api_key": "string",
- "percent": 0,
- "verified": 0,
- "unverified": 0,
- "good": 0,
- "bad": 0,
- "risky": 0,
- "reverify": 0,
- "estimated_time_sec": 0,
- "duration_sec": 0
}
]
}Verify an email address
| api_key required | string Example: api_key=your-api-key The user's API key |
| email required |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/email-verifier-single?api_key=your-api-key&[email protected]',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "result": "bad"
}Upload a file of bounce codes for analyzation
Request parameters for uploading a file
| file required | any <binary> The file containing the bounce codes |
| api_key required | string The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/bounce-code-analyzer/file/analyze',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('api_key' => 'your-api-key','file'=> new CURLFILE('/path/to/file')),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "file_id": "1628750661SHYNuWITqYoeWc"
}Get a list of files with detailed information of the files
| api_key required | string Example: api_key=your-api-key The user's API key |
| offset | string Example: offset=5 Optional offset for pagination. Defaults to 0 |
| count | string Example: count=15 Optional count for pagination. Defaults to 10 |
| file_id | string Example: file_id=1628750661SHYNuWITqYoeWc Optional file ID filter. Exact file ID must be given. |
| file_name | string Example: file_name=bounce Optional file name filter. The given string will be looked up in the file name. |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/bounce-code-analyzer/file/info?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "count": 10,
- "offset": 0,
- "total": 24,
- "results": [
- {
- "file_id": "1628750661SHYNuWITqYoeWc",
- "file_name": "bounce_codes.txt",
- "created_at": "2021-01-01 15:04:05",
- "updated_at": "2021-01-01 15:05:02",
- "result": {
- "blacklisted": 10,
- "disabled": 16
}
}
]
}Download the detailed results of a file
| api_key required | string Example: api_key=your-api-key The user's API key |
| file_id required | string Example: file_id=16163983962328dj5HoZq0DievB7 The ID of the file |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/bounce-code-analyzer/file/download-result?api_key=your-api-key&file_id=16163983962328dj5HoZq0DievB7',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "result": "error",
- "error": "File not found"
}Analyze a bounce code
| api_key required | string Example: api_key=your-api-key The user's API key |
| bounce_code required | string Example: bounce_code=550 The bounce code |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://api.emailacademy.com/v1/bounce-code-analyzer?api_key=aAyNqDyJIKgj2zyPq2qqL&bounce_code=550',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "success": true,
- "message": "denied"
}Analyze a bounce code
Request parameters for bounce code analyzer
| bounce_code required | string The bounce code |
| api_key required | string The user's API key |
{- "api_key": "your-api-key",
- "bounce_code": "554 Message not allowed"
}{- "success": true,
- "message": "denied"
}Analyze multiple bounce codes
Request parameters for bounce code analyzer
| bounce_code required | Array of strings The array of bounce codes |
| api_key required | string The user's API key |
{- "api_key": "your-api-key",
- "bounce_code": [
- "550",
- "could not be processed",
- "go away"
]
}{- "success": true,
- "message": [
- "not exist",
- "not exist",
- "sender denied"
]
}Enter IP address to do a reverse DNS (rDNS) lookup.
| api_key required | string Example: api_key=your-api-key The user's API key |
| domain required | string Example: domain=172.217.20.14 IP address |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/rdns?api_key=your-api-key&ip_address=79.172.213.243',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "success": false,
- "hostnames": [ ]
}Enter IP address to do a reverse DNS (rDNS) lookup.
Request parameters for RDNS Tester
| ip_address required | string The IP address |
| api_key required | string The user's API key |
{- "api_key": "your-api-key",
- "ip_address": "172.217.20.14"
}{- "success": false,
- "hostnames": [ ]
}Check if your domain has these email signatures set up and if they are valid
| api_key required | string Example: api_key=your-api-key The user's API key |
| domain required | string Example: domain=mail.fishngo.net The domain |
| dkim_selector required | string Example: dkim_selector=krs._domainkey DKIM selector |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/spf-dkim?api_key=your-api-key&domain=mail.fishngo.net&dkim_selector=krs._domainkey',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "success": false,
- "spf_records": [
- "v=spf1 include:eu.mailgun.org ~all"
], - "dkim_records": [
- "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnmna4Cb3Qtklz8SoskhxBke8YxqX2izBFre9v/anVS8pXENn1VPkLNeocIUxWrugH7iiyOyjYNJemFQkkKPcgF5cat3oSfxzLruvj7bc4TdzIPkB4gWJouw8wikxrKA5v1fWS8z1dxS/w0uHscJs/qaq848gDLSxtWwbRSSSkRQIDAQAB"
], - "dmarc_records": [ ],
- "error_message": "No DMARC record found for _dmarc.mail.fishngo.net"
}Check if your domain has these email signatures set up and if they are valid
Request parameters for SPF & DKIM Tester
| domain required | string The domain |
| dkim_selector required | string DKIM selector |
| api_key required | string The user's API key |
{- "api_key": "your-api-key",
- "domain": "mail.fishngo.net",
- "dkim_selector": "krs._domainkey"
}{- "success": false,
- "spf_records": [
- "v=spf1 include:eu.mailgun.org ~all"
], - "dkim_records": [
- "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnmna4Cb3Qtklz8SoskhxBke8YxqX2izBFre9v/anVS8pXENn1VPkLNeocIUxWrugH7iiyOyjYNJemFQkkKPcgF5cat3oSfxzLruvj7bc4TdzIPkB4gWJouw8wikxrKA5v1fWS8z1dxS/w0uHscJs/qaq848gDLSxtWwbRSSSkRQIDAQAB"
], - "dmarc_records": [ ],
- "error_message": "No DMARC record found for _dmarc.mail.fishngo.net"
}Get the current settings of Blacklist Monitor
| api_key required | string Example: api_key=your-api-key The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist-monitor/settings?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "is_active": 1,
- "phone": "+12345678912",
- "webhook_url": "",
- "updated_at": "2021-08-06T09:50:51Z"
}Update various settings of Blacklist Monitor
Request parameters for updating the settings of Blacklist Monitor. All parameters must be present, blank values will be treated as is, updating the current settings with blank values.
| api_key required | string The user's API key |
| is_active required | boolean Whether to set Blacklist Monitor to active or inactive |
| email required | string The email address where notifications will be sent |
| phone required | string The phone number where notifications will be sent. E.164 formatting is required. |
| webhook_url required | string The webhook url where notifications will be sent. |
{- "api_key": "your-api-key",
- "is_active": true,
- "phone": "+12345678912",
- "webhook_url": ""
}{- "rows_affected": 1
}Update the notification settings for a single domain or IP address
Request parameters for updating the notification settings of a single domain or IP address. All parameters must be present, notification setting values left blank treated as 0.
| api_key required | string The user's API key |
| id required | integer ID of the domain or IP address |
| notification_email required | integer Turn on/off email notification for domain or IP address |
| notification_sms required | integer Turn on/off sms notification for domain or IP address |
| notification_webhook required | integer Turn on/off webhook notification for domain or IP address |
{- "api_key": "your-api-key",
- "id": 2,
- "notification_email": 1,
- "notification_sms": 1,
- "notification_webhook": 0
}{- "rows_affected": 1
}Delete domains or IP addresses from the Blacklist Monitor
Request parameters for deleting domains or IP addresses from Blacklist Monitor
| api_key required | string The user's API key |
| ids required | Array of strings IDs of the Domains or IP addresses to delete |
{- "api_key": "your-api-key",
- "ids": [
- 1,
- 2
]
}{- "rows_affected": 2
}Add domains or IP addresses to the Blacklist Monitor
Request parameters for adding domains or IP addresses to Blacklist Monitor
| api_key required | string The user's API key |
| domains required | Array of strings Domains or IP addresses to add |
{- "api_key": "your-api-key",
- "domains": [
- "example.com",
- "anotherexample.com"
]
}{- "rows_affected": 2
}Get the details of a Blacklist Monitor domain
| api_key required | string Example: api_key=your-api-key The user's API key |
| domain required | string Example: domain=example.com Domain or IP address |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist-monitor/domain?api_key=your-api-key&domain=example.com',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "id": 1,
- "user_id": 1,
- "domain": "example.com",
- "notification_sms": "+12345678912",
- "currently_blacklisted": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}Get a detailed list of Blacklist Monitor domains
| api_key required | string Example: api_key=your-api-key The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/blacklist-monitor/domains?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
[- {
- "id": 1,
- "user_id": 1,
- "domain": "example.com",
- "notification_sms": "+12345678912",
- "currently_blacklisted": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}, - {
- "id": 2,
- "user_id": 2,
- "domain": "anotherexample.com",
- "notification_sms": "+12345678912",
- "currently_blacklisted": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}
]Get the current settings of Website Monitor
| api_key required | string Example: api_key=your-api-key The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/website-monitor/settings?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "is_active": 1,
- "phone": "+12345678912",
- "webhook_url": "",
- "updated_at": "2021-08-06T09:50:51Z"
}Update various settings of Website Monitor
Request parameters for updating the settings of Website Monitor. All parameters must be present, blank values will be treated as is, updating the current settings with blank values.
| api_key required | string The user's API key |
| is_active required | boolean Whether to set Website Monitor to active or inactive |
| email required | string The email address where notifications will be sent |
| phone required | string The phone number where notifications will be sent. E.164 formatting is required. |
| webhook_url required | string The webhook url where notifications will be sent. |
{- "api_key": "your-api-key",
- "is_active": true,
- "phone": "+12345678912",
- "webhook_url": ""
}{- "rows_affected": 1
}Update the notification settings for a single domain
Request parameters for updating the notification settings of a single domain. All parameters must be present, notification setting values left blank treated as 0.
| api_key required | string The user's API key |
| id required | integer ID of the domain |
| notification_email required | integer Turn on/off email notification for domain |
| notification_sms required | integer Turn on/off sms notification for domain |
| notification_webhook required | integer Turn on/off webhook notification for domain |
{- "api_key": "your-api-key",
- "id": 2,
- "notification_email": 1,
- "notification_sms": 1,
- "notification_webhook": 0
}{- "rows_affected": 1
}Delete domains from the Website Monitor
Request parameters for deleting domains from Website Monitor
| api_key required | string The user's API key |
| ids required | Array of strings IDs of the Domains to delete |
{- "api_key": "your-api-key",
- "ids": [
- 1,
- 2
]
}{- "rows_affected": 2
}Add domains to the Website Monitor
Request parameters for adding domains to Website Monitor
| api_key required | string The user's API key |
| domains required | Array of strings Domains to add |
{- "api_key": "your-api-key",
- "domains": [
- "example.com",
- "anotherexample.com"
]
}{- "rows_affected": 2
}Get the details of a Website Monitor domain
| api_key required | string Example: api_key=your-api-key The user's API key |
| domain required | string Example: domain=example.com Domain |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/website-monitor/domain?api_key=your-api-key&domain=example.com',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "id": 1,
- "user_id": 1,
- "domain": "example.com",
- "notification_sms": "+12345678912",
- "currently_down": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}Get a detailed list of Website Monitor domains
| api_key required | string Example: api_key=your-api-key The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/website-monitor/domains?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
[- {
- "id": 1,
- "user_id": 1,
- "domain": "example.com",
- "notification_sms": "+12345678912",
- "currently_down": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}, - {
- "id": 2,
- "user_id": 2,
- "domain": "anotherexample.com",
- "notification_sms": "+12345678912",
- "currently_down": 0,
- "created_at": "2021-01-01 01:04:02",
- "updated_at": "2021-01-02 15:04:05"
}
]Generate an email for the inbox tester
| api_key required | string Example: api_key=your-api-key The user's API key |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/inbox-tester/get-email?api_key=your-api-key',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "email": "[email protected]"
}Inbox tester
| api_key required | string Example: api_key=your-api-key The user's API key |
| email required | string Example: email=email The generated email |
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'api.emailacademy.com/v1/inbox-tester?api_key=your-api-key&email=email',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
{- "email": "[email protected]"
}