Spam Test API Documentation

API Documentation

  • Seamlessly integrate our spam filter and delivery test tools into your own products and applications using the GlockApps Spam Test API.

    The API is available on all subscription plans and in the pay-per-test plan. The users of free accounts don’t have access to the API.

    All API requests utilizing REST methods resulting in JSON or XML output.

    Every API request requires the use of the apikey parameter, which is located in your account settings.

    API Workflow

    1. Perform data GETs/PUTs/POSTs/DELETEs to https://spamtest.glockapps.com/api/v1/
    2. All POST methods must have Content-Type: application/x-www-form-urlencoded
    3. Return data in the JSON or XML format

    The HTTP status indicates whether an operation failed or succeeded, with extra information included in the HTTP response body.

    All APIs return standard error code formats.

    Unexpected query parameters are ignored.

  • Error Responses

    Error in URL (wrong method name)

    {
        "errorCode": 400,
        "errorText": "Bad Request"
    }
    

    500 Server Internal Error:

    {
        "errorCode": 500,
        "error": {
            "EParsingException": {
                "ClassName": "EParsingException",
                "Address": "0F52AC00",
                "Message": "Server exception message"
            }
        }
    }
    

    API Errors

    {
        "errorCode": 400,
        "error": {
            "code": 14,
            "msg": "Missing 'ApiKey' parameter"
        }
    }
    
    errorCode code msg
    401 1 Invalid API key
    403 2 Your account was deactivated
    404 3 No test is found for the provided id
    400 4 No more API points are available
    404 6 Header is not found for the specified ID
    404 8 No IP address is found
    400 9 No more IP addresses are allowed in the IP reputation monitor
    400 10 Duplicate IP is not allowed
    403 12 IP reputation monitor is not allowed for your plan
    405 13 Method not allowed
    400 14 Missing ‘%’ parameter
  • GET GetProviders

    There are two classifications of test email addresses by groups:

    1) test email addresses are grouped by mailbox providers, for example, the Gmail group, the Hotmail group, the AOL group etc. There can be a different number of email addresses in each group. Each group has the number that matches the number of ProviderGroup.

    2) test email addresses are grouped by the location and spam filters: Spam Filter Check, Popular US, Business US, Canada, Europe Poland, Europe Czech, Europe France etc. Such groups have their unique ID’s (GroupID) which are returned by the GET GetProviders API method.

    The returned GroupID are used to calculate the Groups parameter for the POST CreateTest method.

    Data is returned in the JSON or XML formats.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetProviders

    Parameters

    apikey required
    string (User ApiKey)
    Example of a JSON Response:
    {
    	ID: 0,
    	"Groups": [
    		{
    		"GroupID": 1,
    		"GroupName": "Primary Webmail",
    		"Domains": [
    		"inbox.com",
    		"gmx.com",
    		"outlook.com",
    		"aol.com",
    		"yahoo.com",
    		"gmail.com",
    		"aol.com"
    		]
    		},
    	{...},
    	{
    		"GroupID": 2048,
    		"GroupName": "Spam Filter Check",
    		"Domains": [
    		"SpamAssassin",
    		"Google Spam Filter (G Suite)",
    		"Barracuda"
    		]
    	}
    	]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetProviders/xml

    Example of an XML Response:
    <GetProviders>
    <ID>0</ID>
    	<Groups>
    		<GroupID>1</GroupID>
    		<GroupName>Primary Webmail</GroupName>
    		<Domains>inbox.com</Domains>
    		<Domains>gmx.com</Domains>
    		<Domains>outlook.com</Domains>
    		<Domains>aol.com</Domains>
    		<Domains>yahoo.com</Domains>
    		<Domains>gmail.com</Domains>
    		<Domains>aol.com</Domains>
    	</Groups>
    	<Groups>...</Groups>
    	<Groups>
    		<GroupID>2048</GroupID>
    		<GroupName>Spam Filter Check</GroupName>
    		<Domains>SpamAssassin</Domains>
    		<Domains>Google Spam Filter (G Suite)</Domains>
    		<Domains>Barracuda</Domains>
    	</Groups>
    </GetProviders>
    
  • GET GetProviders v2

    The GET GetProviders v2 API method allows to customize the seed list based on individual email addresses. Using this API method, you can select test email accounts individually rather than groups of mailbox providers.

    GET GetProviders v2 returns a list of supported mailbox providers and their GroupID used in the CreateTest v2 method.

    The returned GroupID are used to calculate the Groups parameter for the POST CreateTest v2 method.

    Data is returned in the JSON or XML formats.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetProviders?apikey={apikey}&v=2

    Parameters

    apikey required
    string (User ApiKey)
    v required
    =2
    Example of a JSON Response:
    {
      "Groups": [
        {
          "GroupID": 2048,
          "GroupName": "Spam Filter Check",
          "ISPs": [
            {
              "id": 2,
              "name": "SpamAssassin",
              "domain": "SpamAssassin"
            },
            {
              "id": 3,
              "name": "Google Spam Filter",
              "domain": "Google Spam Filter"
            },
            {
              "id": 12,
              "name": "Barracuda",
              "domain": "Barracuda"
            }
          ]
        },
        {
          "GroupID": 256,
          "GroupName": "Europe Czech",
          "ISPs": [
            {
              "id": 4,
              "name": "Seznam.cz",
              "domain": "seznam.cz"
            }
          ]
        },
        {
          "GroupID": 64,
          "GroupName": "Europe France",
          "ISPs": [
            {
              "id": 5,
              "name": "Laposte.net (FR)",
              "domain": "laposte.net"
            },
            {
              "id": 11,
              "name": "Netcourrier.com (FR)",
              "domain": "netcourrier.com"
            },
            {
              "id": 27,
              "name": "Openmailbox.org",
              "domain": "openmailbox.org"
            },
            {
              "id": 37,
              "name": "Outlook (FR)",
              "domain": "outlook.fr"
            }
          ]
        },
        {
          "GroupID": 1,
          "GroupName": "Popular US",
          "ISPs": [
            {
              "id": 6,
              "name": "Apple",
              "domain": "icloud.com"
            },
            {
              "id": 15,
              "name": "Outlook",
              "domain": "outlook.com"
            },
            {
              "id": 16,
              "name": "AOL",
              "domain": "aol.com"
            },
            {
              "id": 17,
              "name": "Yahoo (Global)",
              "domain": "yahoo.com"
            },
            {
              "id": 20,
              "name": "Gmail",
              "domain": "gmail.com"
            },
            {
              "id": 30,
              "name": "Hotmail",
              "domain": "hotmail.com"
            }
          ]
        },
        {
          "GroupID": 32,
          "GroupName": "Europe Germany",
          "ISPs": [
            {
              "id": 7,
              "name": "Gmx.de",
              "domain": "gmx.de"
            },
            {
              "id": 9,
              "name": "Web.de",
              "domain": "web.de"
            },
            {
              "id": 10,
              "name": "Freenet.de",
              "domain": "freenet.de"
            },
            {
              "id": 25,
              "name": "Eclipso.de",
              "domain": "eclipso.de"
            },
            {
              "id": 39,
              "name": "Outlook (DE)",
              "domain": "outlook.de"
            }
          ]
        },
        {
          "GroupID": 8,
          "GroupName": "Business US",
          "ISPs": [
            {
              "id": 8,
              "name": "Gmx.com (Global)",
              "domain": "gmx.com"
            },
            {
              "id": 13,
              "name": "Zoho.com",
              "domain": "zoho.com"
            },
            {
              "id": 14,
              "name": "Godaddy",
              "domain": "GoDaddy"
            },
            {
              "id": 19,
              "name": "Mail.com",
              "domain": "mail.com"
            },
            {
              "id": 26,
              "name": "Exchange (Office365)",
              "domain": "office365.com"
            }
          ]
        },
        {
          "GroupID": 4,
          "GroupName": "Canada",
          "ISPs": [
            {
              "id": 18,
              "name": "Yahoo (Canada)",
              "domain": "yahoo.ca"
            }
          ]
        },
        {
          "GroupID": 512,
          "GroupName": "Russia",
          "ISPs": [
            {
              "id": 21,
              "name": "Mail.ru",
              "domain": "mail.ru"
            },
            {
              "id": 22,
              "name": "Yandex.ru",
              "domain": "yandex.ru"
            }
          ]
        },
        {
          "GroupID": 16,
          "GroupName": "Europe UK",
          "ISPs": [
            {
              "id": 24,
              "name": "Yahoo (UK)",
              "domain": "yahoo.co.uk"
            }
          ]
        },
        {
          "GroupID": 128,
          "GroupName": "Europe Italy",
          "ISPs": [
            {
              "id": 28,
              "name": "Libero.it",
              "domain": "libero.it"
            },
            {
              "id": 29,
              "name": "Virgilio.it",
              "domain": "virgilio.it"
            }
          ]
        },
        {
          "GroupID": 4096,
          "GroupName": "Brazil",
          "ISPs": [
            {
              "id": 31,
              "name": "BOL Mail (BR)",
              "domain": "bol.com.br"
            },
            {
              "id": 32,
              "name": "Yahoo (BR)",
              "domain": "yahoo.com.br"
            },
            {
              "id": 33,
              "name": "Outlook (BR)",
              "domain": "outlook.com.br"
            },
            {
              "id": 34,
              "name": "Gmail (BR)",
              "domain": "gmail.com"
            },
            {
              "id": 35,
              "name": "Locaweb (BR)",
              "domain": "vendasrd.com.br"
            }
          ]
        }
      ]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetProviders/xml?apikey={apikey}&v=2

    Example of an XML Response:
    <?xml version="1.0" encoding="UTF-8"?>
    <GetProviders>
        <Groups>
            <GroupID>2048</GroupID>
            <GroupName>Spam Filter Check</GroupName>
            <ISPs>
                <id>2</id>
                <name>SpamAssassin</name>
                <domain>SpamAssassin</domain>
            </ISPs>
            <ISPs>
                <id>3</id>
                <name>Google Spam Filter</name>
                <domain>Google Spam Filter</domain>
            </ISPs>
            <ISPs>
                <id>12</id>
                <name>Barracuda</name>
                <domain>Barracuda</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>256</GroupID>
            <GroupName>Europe Czech</GroupName>
            <ISPs>
                <id>4</id>
                <name>Seznam.cz</name>
                <domain>seznam.cz</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>64</GroupID>
            <GroupName>Europe France</GroupName>
            <ISPs>
                <id>5</id>
                <name>Laposte.net (FR)</name>
                <domain>laposte.net</domain>
            </ISPs>
            <ISPs>
                <id>11</id>
                <name>Netcourrier.com (FR)</name>
                <domain>netcourrier.com</domain>
            </ISPs>
            <ISPs>
                <id>27</id>
                <name>Openmailbox.org</name>
                <domain>openmailbox.org</domain>
            </ISPs>
            <ISPs>
                <id>37</id>
                <name>Outlook (FR)</name>
                <domain>outlook.fr</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>1</GroupID>
            <GroupName>Popular US</GroupName>
            <ISPs>
                <id>6</id>
                <name>Apple</name>
                <domain>icloud.com</domain>
            </ISPs>
            <ISPs>
                <id>15</id>
                <name>Outlook</name>
                <domain>outlook.com</domain>
            </ISPs>
            <ISPs>
                <id>16</id>
                <name>AOL</name>
                <domain>aol.com</domain>
            </ISPs>
            <ISPs>
                <id>17</id>
                <name>Yahoo (Global)</name>
                <domain>yahoo.com</domain>
            </ISPs>
            <ISPs>
                <id>20</id>
                <name>Gmail</name>
                <domain>gmail.com</domain>
            </ISPs>
            <ISPs>
                <id>30</id>
                <name>Hotmail</name>
                <domain>hotmail.com</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>32</GroupID>
            <GroupName>Europe Germany</GroupName>
            <ISPs>
                <id>7</id>
                <name>Gmx.de</name>
                <domain>gmx.de</domain>
            </ISPs>
            <ISPs>
                <id>9</id>
                <name>Web.de</name>
                <domain>web.de</domain>
            </ISPs>
            <ISPs>
                <id>10</id>
                <name>Freenet.de</name>
                <domain>freenet.de</domain>
            </ISPs>
            <ISPs>
                <id>25</id>
                <name>Eclipso.de</name>
                <domain>eclipso.de</domain>
            </ISPs>
            <ISPs>
                <id>39</id>
                <name>Outlook (DE)</name>
                <domain>outlook.de</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>8</GroupID>
            <GroupName>Business US</GroupName>
            <ISPs>
                <id>8</id>
                <name>Gmx.com (Global)</name>
                <domain>gmx.com</domain>
            </ISPs>
            <ISPs>
                <id>13</id>
                <name>Zoho.com</name>
                <domain>zoho.com</domain>
            </ISPs>
            <ISPs>
                <id>14</id>
                <name>Godaddy</name>
                <domain>GoDaddy</domain>
            </ISPs>
            <ISPs>
                <id>19</id>
                <name>Mail.com</name>
                <domain>mail.com</domain>
            </ISPs>
            <ISPs>
                <id>26</id>
                <name>Exchange (Office365)</name>
                <domain>office365.com</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>4</GroupID>
            <GroupName>Canada</GroupName>
            <ISPs>
                <id>18</id>
                <name>Yahoo (Canada)</name>
                <domain>yahoo.ca</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>512</GroupID>
            <GroupName>Russia</GroupName>
            <ISPs>
                <id>21</id>
                <name>Mail.ru</name>
                <domain>mail.ru</domain>
            </ISPs>
            <ISPs>
                <id>22</id>
                <name>Yandex.ru</name>
                <domain>yandex.ru</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>16</GroupID>
            <GroupName>Europe UK</GroupName>
            <ISPs>
                <id>24</id>
                <name>Yahoo (UK)</name>
                <domain>yahoo.co.uk</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>128</GroupID>
            <GroupName>Europe Italy</GroupName>
            <ISPs>
                <id>28</id>
                <name>Libero.it</name>
                <domain>libero.it</domain>
            </ISPs>
            <ISPs>
                <id>29</id>
                <name>Virgilio.it</name>
                <domain>virgilio.it</domain>
            </ISPs>
        </Groups>
        <Groups>
            <GroupID>4096</GroupID>
            <GroupName>Brazil</GroupName>
            <ISPs>
                <id>31</id>
                <name>BOL Mail (BR)</name>
                <domain>bol.com.br</domain>
            </ISPs>
            <ISPs>
                <id>32</id>
                <name>Yahoo (BR)</name>
                <domain>yahoo.com.br</domain>
            </ISPs>
            <ISPs>
                <id>33</id>
                <name>Outlook (BR)</name>
                <domain>outlook.com.br</domain>
            </ISPs>
            <ISPs>
                <id>34</id>
                <name>Gmail (BR)</name>
                <domain>gmail.com</domain>
            </ISPs>
            <ISPs>
                <id>35</id>
                <name>Locaweb (BR)</name>
                <domain>vendasrd.com.br</domain>
            </ISPs>
        </Groups>
    </GetProviders>
    
  • POST CreateTest

    Creates an email delivery and spam filtering test.

    The groups parameter for the POST CreateTest method is calculated by summarizing the GroupID returned by the GET GetProviders API method. The received number (integer) will be the groups parameter for the POST CreateTest method.

    Resource URL:POST https://spamtest.glockapps.com/api/v1/CreateTest

    Parameters

    apikey required
    string (User ApiKey)
    groups required
    integer (bitmask of groups)
    ExternalUserID
    optional string (External User ID)
    MailFrom
    optional string
    Subject
    optional string
    Note
    optional string
    Example of a JSON Response:
    {
    	TestID: "a9a6657p48976138166de32772b1bf40",
    	InsertHeader: "X-API-Campaign-id: a9a6657p-48976138-166de327-72b1bf40",
            InsertInBody: "id: a9a6657p-48976138-166de327-72b1bf40",
    	SeedList: [
    	"abc@ispdomain.com",
            ...
    	],
    	TotalCheck: 42,
    	TotalInDay: 42,
    	TotalInMonth: 42,
    	FreePoints: 0,
    	PaidPoints: 958
    }
    

    XML Resource URL:POST https://spamtest.glockapps.com/api/v1/CreateTest/xml

    Example of an XML Response:
    <CreateTest>
    	<TestID>1bb91f73e9d31ea2830a5e73ce3ed328</TestID>
    	<InsertHeader>
    		X-API-Campaign-id: 1bb91f73-e9d31ea2-830a5e73-ce3ed328
    	</InsertHeader>
    	<InsertInBody>
    		id: 1bb91f73-e9d31ea2-830a5e73-ce3ed328
    	</InsertInBody>
    	<SeedList>abc@ispdomain.com</SeedList>
               ...
    	<TotalCheck>40</TotalCheck>
    	<TotalInDay>40</TotalInDay>
    	<TotalInMonth>40</TotalInMonth>
    	<FreePoints>0</FreePoints>
    	<PaidPoints>960</PaidPoints>
    </CreateTest>
    
  • POST CreateTest v2

    Creates an email delivery and spam filtering test with email addresses returned via the GET GetProviders v2 method.

    Resource URL:POST https://spamtest.glockapps.com/api/v1/CreateTest

    sample: https://spamtest.glockapps.com/api/v1/CreateTest?apikey={APIKEY}&groups=0&providers=6,15,16,17&v=2

    Parameters

    apikey required
    string (User ApiKey)
    groups required
    =0
    Providers
    list of comma separated ids of mailbox providers returned via method GetProviders v2 (look for the numbers after id: instead of providerId)
    ExternalUserID
    optional string (External User ID)
    MailFrom
    optional string
    Subject
    optional string
    Note
    optional string
    Example of a JSON Response:
    {
    	TestID: "a9a6657p48976138166de32772b1bf40",
    	InsertHeader: "X-API-Campaign-id: a9a6657p-48976138-166de327-72b1bf40",
            InsertInBody: "id: a9a6657p-48976138-166de327-72b1bf40",
    	SeedList: [
    	"abc@ispdomain.com",
            ...
    	],
    	TotalCheck: 42,
    	TotalInDay: 42,
    	TotalInMonth: 42,
    	FreePoints: 0,
    	PaidPoints: 958
    }
    

    XML Resource URL:POST https://spamtest.glockapps.com/api/v1/CreateTest/xml

    Example of an XML Response:
    <CreateTest>
    	<TestID>1bb91f73e9d31ea2830a5e73ce3ed328</TestID>
    	<InsertHeader>
    		X-API-Campaign-id: 1bb91f73-e9d31ea2-830a5e73-ce3ed328
    	</InsertHeader>
    	<InsertInBody>
    		id: 1bb91f73-e9d31ea2-830a5e73-ce3ed328
    	</InsertInBody>
    	<SeedList>abc@ispdomain.com</SeedList>
               ...
    	<TotalCheck>40</TotalCheck>
    	<TotalInDay>40</TotalInDay>
    	<TotalInMonth>40</TotalInMonth>
    	<FreePoints>0</FreePoints>
    	<PaidPoints>960</PaidPoints>
    </CreateTest>
    
  • GET GetTestList

    Returns the full list of tests for the given user. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetTestList

    Parameters

    apikey required
    string (User ApiKey)
    ExternalUserID
    optional string (External User ID)
    DateFrom
    optional 2014-12-31 format: YYYY-MM-DD
    DateTo
    optional 2015-12-31 format: YYYY-MM-DD
    OrderBy
    optional (Created, Subject, MailFrom, Finished) ASC DESC
    limit
    optional integer used to specify request page size
    offset
    optional integer used to specify request starting offset
    hideEmpty
    optional integer used to skip a test without data (waiting for data)
    autoid
    optional integer used to specify a recurring test id to retrieve the test list for the selected recurring test
    Example of a JSON Response:
    {
      "Count": 2,
      "Items": [
        {
          "TestId": "xxxxx8ecbf2062bfa02de87f25c0b43c",
          "Finished": false,
          "Date": "2016-04-07T12:48:06",
          "Subject": "Paradise",
          "From": "Glocksoft <support@example.com>",
          "ReturnPath": "support@example.com",
          "SenderIP": "69.164.196.115",
          "SenderScore": "100",
          "SenderHostName": "glockdb.com",
          "ReverseIP": "69.164.196.115",
          "Helo": "mail.glockdb.com",
          "ReverseHelo": "69.164.196.115",
          "IPListed": false,
          "IPTestFinished": true,
          "ExternalUserID": "1",
          "Meta": "",
          "Stats": {
            "Inbox": 25,
            "Other": 1,
            "Spam": 3,
            "NotDelivered": 1,
            "InboxRate": 86.66,
            "SpamRate": 10,
            "BounceRate": 3.33
          }
        },
        {
          "TestId": "b139aeda1c2914e3b579aafd3ceeb1bd",
          "Finished": false,
          "Date": "2015-12-08T07:53:46",
          "Subject": "Music lover",
          "From": "Send via SMTP server: mail.example.com",
          "ReturnPath": "bounce@example.com",
          "SenderIP": "67.20.55.31",
          "SenderScore": "65",
          "SenderHostName": "mail.example.com",
          "ReverseIP": "67.20.55.31",
          "Helo": "server.example.com",
          "ReverseHelo": "67.20.55.31",
          "IPListed": false,
          "IPTestFinished": true,
          "ExternalUserID": "1",
          "Meta": "",
          "Stats": {
            "Inbox": 19,
            "Other": 2,
            "Spam": 3,
            "NotDelivered": 2,
            "InboxRate": 80.76,
            "SpamRate": 11.53,
            "BounceRate": 7.69
          }
        }
      ]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetTestList/xml

    Example of an XML Response:
    <GetTestList>
    <Count>2</Count>
    <Items>
        <TestId>xxxxxeda1c2914e3b579aafd3ceeb1bd</TestId>
        <Finished>false</Finished>
        <Date>2015-12-08T07:53:46</Date>
        <Subject>Music lover</Subject>
        <From>Send via SMTP server: mail.glocksoft.com</From>
        <ReturnPath>bounce@glocksoft.com</ReturnPath>
        <SenderIP>67.20.55.31</SenderIP>
        <SenderScore>65</SenderScore>
        <SenderHostName>mail.glocksoft.com</SenderHostName>
        <ReverseIP>67.20.55.31</ReverseIP>
        <Helo>server.glocksoft.com</Helo>
        <ReverseHelo>67.20.55.31</ReverseHelo>
        <IPListed>false</IPListed>
        <IPTestFinished>true</IPTestFinished>
        <ExternalUserID>1</ExternalUserID>
        <Meta/>
        <Stats>
            <Inbox>19</Inbox>
            <Other>2</Other>
            <Spam>3</Spam>
            <NotDelivered>2</NotDelivered>
            <InboxRate>80.76</InboxRate>
            <SpamRate>11.53</SpamRate>
            <BounceRate>7.69</BounceRate>
        </Stats>
    </Items>
    <Items>
        <TestId>xxxxx8ecbf2062bfa02de87f25c0b43c</TestId>
        <Finished>false</Finished>
        <Date>2016-04-07T12:48:06</Date>
        <Subject>Paradise</Subject>
        <From>Send via SMTP server: mail.glocksoft.com</From>
        <ReturnPath>support@glocksoft.com</ReturnPath>
        <SenderIP>69.164.196.115</SenderIP>
        <SenderScore>100</SenderScore>
        <SenderHostName>glockdb.com</SenderHostName>
        <ReverseIP>69.164.196.115</ReverseIP>
        <Helo>mail.glockdb.com</Helo>
        <ReverseHelo>69.164.196.115</ReverseHelo>
        <IPListed>false</IPListed>
        <IPTestFinished>true</IPTestFinished>
        <ExternalUserID>1</ExternalUserID>
        <Meta/>
        <Stats>
            <Inbox>25</Inbox>
            <Other>1</Other>
            <Spam>3</Spam>
            <NotDelivered>1</NotDelivered>
            <InboxRate>86.66</InboxRate>
            <SpamRate>10</SpamRate>
            <BounceRate>3.33</BounceRate>
        </Stats>
    </Items>
    </GetTestList>
    
  • GET GetTestResult

    Returns the delivery and spam filtering result of one test. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetTestResult?apikey={APIKEY}&TestID={TestID}

    Parameters

    apikey required
    string (User ApiKey)
    TestId required
    string
    Example of a JSON Response:
    {
        "TestID": "b50032db50387d83400597fa74bb91d8",
        "Created": "2016-04-15T10:28:04",
        "Finished": false,
        "DKIM": "pass",
        "SPF": "pass",
        "Subject": "Fwd: Save $499.00 on BEHAVE registration - ending soon!",
        "MailFrom": "\"Test User\" <example@gmail.com>",
        "Inboxes": [
            {
                "ISP": "AOL",
                "iType": "Inbox",
                "Received": "2016-04-15T10:28:50",
                "Visible": true,
                "HeaderID": "1cd03228e43de750c7820280e09456c3",
                "Delay": "00:00:01"
            },
    ...
            {
                "ISP": "Zoho.com",
                "iType": "Inbox",
                "Received": "2016-04-15T10:28:53",
                "Visible": true,
                "HeaderID": "aa7d4376877419658f23c768f883190b",
                "Delay": "00:00:04"
            }
        ],
        "SpamAssassin": {
            "Active": true,
            "Finished": true,
            "Score": -0.8,
            "Headers": [
                {
                    "Score": -0.7,
                    "Tag": "RCVD_IN_DNSWL_LOW",
                    "Description": "RBL: Sender listed at http://www.dnswl.org/, low  trust [74.125.82.65 listed in list.dnswl.org]"
                },
                {
                    "Score": 0,
                    "Tag": "FREEMAIL_FROM",
                    "Description": "Sender email is commonly abused enduser mail provider  (example[at]gmail.com)"
                },
                {
                    "Score": 0,
                    "Tag": "SPF_PASS",
                    "Description": "SPF: sender matches SPF record "
                },
                {
                    "Score": 0,
                    "Tag": "RCVD_IN_MSPIKE_H3",
                    "Description": "RBL: Good reputation (+3)  [74.125.82.65 listed in wl.mailspike.net]"
                },
                {
                    "Score": 0,
                    "Tag": "HTML_MESSAGE",
                    "Description": "BODY: HTML included in message "
                },
                {
                    "Score": -0.1,
                    "Tag": "DKIM_VALID_AU",
                    "Description": "Message has a valid DKIM or DK signature from author's  domain"
                },
                {
                    "Score": 0.1,
                    "Tag": "DKIM_SIGNED",
                    "Description": "Message has a DKIM or DK signature, not necessarily  valid"
                },
                {
                    "Score": -0.1,
                    "Tag": "DKIM_VALID",
                    "Description": "Message has at least one valid DKIM or DK signature "
                },
                {
                    "Score": 0,
                    "Tag": "RCVD_IN_MSPIKE_WL",
                    "Description": "Mailspike good senders "
                },
                {
                    "Score": 0,
                    "Tag": "LOTS_OF_MONEY",
                    "Description": "Huge... sums of money"
                }
            ]
        },
        "GoogleApps": {
            "Active": true,
            "Finished": true,
            "Spam": false,
            "Phishy": false
        },
        "Barracuda": {
            "Active": true,
            "Score": 2.6,
            "Headers": [
                {
                    "Score": 2.1,
                    "Tag": "BSF_SC3_MV0439",
                    "Description": "        META: Custom rule MV0439 "
                },
                {
                    "Score": 0,
                    "Tag": "HTML_MESSAGE",
                    "Description": "          BODY: HTML included in message "
                },
                {
                    "Score": 0.5,
                    "Tag": "BSF_SC0_SA079d",
                    "Description": "        META: Custom Rule SA079d "
                },
                {
                    "Score": 0,
                    "Tag": "BSF_SC0_MISMATCH_TO",
                    "Description": "   HEADER: Envelope rcpt doesn't match header"
                }
            ],
            "Reason": "",
            "ReasonExtra": ""
        },
        "SenderIP": "74.125.82.66",
        "SenderScore": "90",
        "SenderHostName": "mail-wm0-f66.google.com",
        "Helo": "mail-wm0-f66.google.com",
        "ReturnPath": "example@gmail.com",
        "ReverseHelo": "74.125.82.66",
        "ReverseIP": "74.125.82.66",
        "DNSBL": {
            "finished": true,
            "ipListed": true,
            "dnsbl": [
                {
                    "Server": "dnsbl.anticaptcha.net",
                    "Status": 1,
                    "txt": "Please see <a target=\"_blank\" href=\"http://dnsbl.anticaptcha.net/check/?ip=74.125.82.66\">http://dnsbl.anticaptcha.net/check/?ip=74.125.82.66</a>"
                },
                {
                    "Server": "ips.backscatterer.org",
                    "Status": 1,
                    "txt": "Sorry 74.125.82.66 is blacklisted at <a target=\"_blank\" href=\"http://www.backscatterer.org/?ip=74.125.82.66\">http://www.backscatterer.org/?ip=74.125.82.66</a>"
                },
                {
                    "Server": "spam.dnsbl.sorbs.net",
                    "Status": 1,
                    "txt": "Spam Received See: <a target=\"_blank\" href=\"http://www.sorbs.net/lookup.shtml?74.125.82.66\">http://www.sorbs.net/lookup.shtml?74.125.82.66</a>"
                }
            ]
        },
        "ExternalUserID": "",
        "Meta": "",
        "Stats": {
            "Inbox": 22,
            "Other": 1,
            "Spam": 6,
            "NotDelivered": 2,
            "InboxRate": 74.19,
            "SpamRate": 19.35,
            "BounceRate": 6.45
        }
    }
    

    Note: in the API, the Inbox rate includes the Tabs (Other) rate while in the reports the Inbox rate and Tabs rate are separated.

    InboxRate=(Inbox+Other)*100/Total,
         where Total = Inbox+Other+Spam+NotDelivered
         Other includes emails delivered in Promotional, Newsletter or Unknown folders

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetTestResult/xml

  • POST GetTestsResults

    Returns the results of the delivery and spam filtering tests. Data is returned in the XML or JSON format (max 50 items). If the numner of tests is greater than 50, only the reports of the first 50 tests are returned.

    Resource URL:POST https://spamtest.glockapps.com/api/v1/GetTestsResults

    Parameters

    apikey required
    required string (User ApiKey)
    ids required
    comma separated testid (max 50 items)
    Example of a JSON Response:
    [
        {
            "TestID": "1271a7029c9df08643b631b02cf9e116",
            "Created": "2015-12-30T16:58:15",
            "Finished": false,
            "DKIM": "pass",
            "SPF": "pass",
            "Subject": "Deadline -> Ends at Midnight Tonight",
            "MailFrom": "\"Tennessee State\" <membership@example.org>",
            "Inboxes": [
                {
                    "ISP": "AOL",
                    "iType": "Spam",
                    "Received": "2015-12-30T17:06:03",
                    "Visible": true,
                    "HeaderID": "08d44f159609fc91e09ed77a79cf5dac",
                    "Delay": "00:00:02"
                },
     ...
                {
                    "ISP": "Zoho.com",
                    "iType": "Inbox",
                    "Received": "2015-12-30T17:06:10",
                    "Visible": true,
                    "HeaderID": "3156e1ab31baada7869f68c7c8590099",
                    "Delay": "00:00:01"
                }
            ],
            "SpamAssassin": {
                "Active": true,
                "Finished": true,
                "Score": 0,
                "Headers": [
                    {
                        "Score": 0,
                        "Tag": "HEADER_FROM_DIFFERENT_DOMAINS",
                        "Description": "From and EnvelopeFrom 2nd level mail  domains are different"
                    },
                    {
                        "Score": 0,
                        "Tag": "T_RP_MATCHES_RCVD",
                        "Description": "Envelope sender domain matches handover relay  domain"
                    },
                    {
                        "Score": 0,
                        "Tag": "SPF_PASS",
                        "Description": "SPF: sender matches SPF record "
                    },
                    {
                        "Score": 0,
                        "Tag": "HTML_MESSAGE",
                        "Description": "BODY: HTML included in message "
                    },
                    {
                        "Score": 0.1,
                        "Tag": "DKIM_SIGNED",
                        "Description": "Message has a DKIM or DK signature, not necessarily  valid"
                    },
                    {
                        "Score": -0.1,
                        "Tag": "DKIM_VALID",
                        "Description": "Message has at least one valid DKIM or DK signature"
                    }
                ]
            },
            "GoogleApps": {
                "Active": true,
                "Finished": true,
                "Spam": false,
                "Phishy": false
            },
            "Barracuda": {
                "Active": true,
                "Score": 0,
                "Headers": [],
                "Reason": "",
                "ReasonExtra": ""
            },
            "SenderIP": "XX.159.65.XX",
            "SenderScore": "99",
            "SenderHostName": "vmta1x.example.com",
            "Helo": "vmta1x.example.com",
            "ReturnPath": "bounce@example.com",
            "ReverseHelo": "XX.159.65.XX",
            "ReverseIP": "XX.159.65.XX",
            "DNSBL": {
                "finished": true,
                "ipListed": false,
                "dnsbl": []
            },
            "ExternalUserID": "",
            "Meta": "",
            "Stats": {
                "Inbox": 18,
                "Other": 1,
                "Spam": 3,
                "NotDelivered": 5,
                "InboxRate": 70.37,
                "SpamRate": 11.11,
                "BounceRate": 18.51
            }
        },
        {
            "TestID": "2ef248c04979d6b3a7b283ec3dc32cca",
            "Created": "2015-12-30T16:50:39",
            "Finished": false,
            "DKIM": "",
            "SPF": "",
            "Subject": "Deadline Ends Today",
            "MailFrom": "\"Tennessee State\" <membership@example.org>",
            "Inboxes": [
                {
                    "ISP": "AOL",
                    "iType": "X",
                    "Received": "",
                    "Visible": true,
                    "HeaderID": "cfcd208495d565ef66e7dff9f98764da",
                    "Delay": ""
                },
    ...
                {
                    "ISP": "Zoho.com",
                    "iType": "Inbox",
                    "Received": "2015-12-30T16:58:04",
                    "Visible": true,
                    "HeaderID": "0df9b7bb2859008c54e1d5d9522d16be",
                    "Delay": "00:00:03"
                }
            ],
            "SpamAssassin": {
                "Active": false,
                "Finished": false,
                "Score": 0,
                "Headers": []
            },
            "GoogleApps": {
                "Active": false,
                "Finished": false,
                "Spam": false,
                "Phishy": false
            },
            "Barracuda": {
                "Active": true,
                "Score": 0,
                "Headers": [],
                "Reason": "",
                "ReasonExtra": ""
            },
            "SenderIP": "xx.159.65.xx",
            "SenderScore": "99",
            "SenderHostName": "vmta1x.example.com",
            "Helo": "vmta1x.example.com",
            "ReturnPath": "bounce@example.com",
            "ReverseHelo": "xx.159.65.xx",
            "ReverseIP": "xx.159.65.xx",
            "DNSBL": {
                "finished": true,
                "ipListed": false,
                "dnsbl": []
            },
            "ExternalUserID": "",
            "Meta": "",
            "Stats": {
                "Inbox": 1,
                "Other": 0,
                "Spam": 0,
                "NotDelivered": 27,
                "InboxRate": 3.57,
                "SpamRate": 0,
                "BounceRate": 96.42
            }
        }
    ]
    

    Note: in the API, the Inbox rate includes the Tabs (Other) rate while in the reports the Inbox rate and Tabs rate are separated.

    InboxRate=(Inbox+Other)*100/Total,
         where Total = Inbox+Other+Spam+NotDelivered
         Other includes emails delivered in Promotional, Newsletter or Unknown folders

    XML Resource URL:POST https://spamtest.glockapps.com/api/v1/GetTestsResults/xml

  • GET GetHeaders

    Returns the headers of a tested email message. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetHeaders

    Parameters

    apikey required
    string (User ApiKey)
    id required
    string (Header id)
    Example of a JSON Response:
    {
      "HeaderID": "1cd03228e43de750c7820280e09456c3",
      "Headers": [
        {
          "Name": "Return-Path",
          "Value": "<example@gmail.com>"
        },
        {
          "Name": "Received",
          "Value": "from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mtaiw-mbc05.mx.aol.com (Internet Inbound) with ESMTPS id 252D170000083 for <marispurinsh@aol.com>; Fri, 15 Apr 2016 06:28:50 -0400 (EDT)"
        },
    ...
        {
          "Name": "X-AOL-SPF",
          "Value": "domain : gmail.com SPF : pass"
        }
      ]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetHeaders/xml

    Example of an XML Response:
    <GetHeaders>
        <HeaderID>1cd03228e43de750c7820280e09456c3</HeaderID>
        <Headers>
            <Name>Return-Path</Name>
            <Value>
                <example@gmail.com>
                </Value>
            </Headers>
            <Headers>
                <Name>Received</Name>
                <Value>
    from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mtaiw-mbc05.mx.aol.com (Internet Inbound) with ESMTPS id 252D170000083 for 
                    <xxx@aol.com>; Fri, 15 Apr 2016 06:28:50 -0400 (EDT)
    
                 </Value>
             </Headers>
    ...
        <Headers>
            <Name>X-AOL-SPF</Name>
            <Value>domain : gmail.com SPF : pass</Value>
        </Headers>
    </GetHeaders>
    
  • GET GetSeedList

    Returns a full list of seed emails addresses. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetSeedList

    Parameters

    apikey required
    string (User ApiKey)
    testid required
    string (Test id)
    Example of a JSON Response:
    {
    TestID: "5c04925674920eb58467fb52ce4ef728",
    InsertHeader: "X-API-Campaign-id: 5c049256-74920eb5-8467fb52-ce4ef728",
    InsertInBody: "id: 5c049256-74920eb5-8467fb52-ce4ef728",
    SeedList: [
    	"email@domain.com",
    	...
    	],
    TotalCheck: 76,
    TotalInDay: 0,
    TotalInMonth: 0,
    FreePoints: 0,
    PaidPoints: 0
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetSeedList/xml

    Example of an XML Response:
    <GetSeedList>
    	<TestID>5c04925674920eb58467fb52ce4ef728</TestID>
    	<InsertHeader>
    		X-API-Campaign-id: 5c049256-74920eb5-8467fb52-ce4ef728
    	</InsertHeader>
    	<InsertInBody>id: 5c049256-74920eb5-8467fb52-ce4ef728</InsertInBody>
    	<SeedList>email@domain.com</SeedList>
    	...
    	<TotalCheck>76</TotalCheck>
    	<TotalInDay>0</TotalInDay>
    	<TotalInMonth>0</TotalInMonth>
    	<FreePoints>0</FreePoints>
    	<PaidPoints>0</PaidPoints>
    </GetSeedList>
    
  • POST AddIPToMonitor

    Adds an IP address to the IP Reputation Monitor.

    Resource URL:POST https://spamtest.glockapps.com/api/v1/AddIPToMonitor

    Parameters

    apikey required
    string (User ApiKey)
    IP required
    string (IP Address)
    Alert
    optional integer (1-send alert, 0 – do not send alert)
    Note
    optional string (IP label, note, description)

    Success : Status Code:200 OK

    Example of a JSON Response:
    {
       "ID": 223,
       "UserID": 75,
       "IP": "xx.120.103.xx",
       "SenderScore": "n/a",
       "CheckedTimes": 0,
       "LastChecked": "",
       "ListedIn": [],
       "Listed": 0,
       "SendAlert": 0,
       "Note": "mail.example.com",
       "Created": 135305937764,
       "Modified": 135305937764
    }
    

    XML Resource URL:POST https://spamtest.glockapps.com/api/v1/AddIPToMonitor/xml

    Example of an XML Response:
    <AddIPToMonitor>
       <ID>223</ID>
       <UserID>75</UserID>
       <IP>xx.120.103.xx</IP>
       <SenderScore>n/a</SenderScore>
       <CheckedTimes>0</CheckedTimes>
       <LastChecked></LastChecked>
       <Listed>0</Listed>
       <SendAlert>0</SendAlert>
       <Note>mail.example.com</Note>
       <Created>135305937815</Created>
       <Modified>135305937815</Modified>
    </AddIPToMonitor>
    
  • POST AddNoteToIP

    Adds a note to an IP address.

    Resource URL:POST https://spamtest.glockapps.com/api/v1/AddNoteToIP

    Parameters

    apikey required
    string (User ApiKey)
    IP required
    string (IP Address)
    Note
    optional string (IP label, note, description)

    Success : Status Code:200 OK

    Example of a JSON Response:
    {
       "ID": 223,
       "UserID": 75,
       "IP": "xx.120.103.xx",
       "SenderScore": "n/a",
       "CheckedTimes": 0,
       "LastChecked": "",
       "ListedIn": [],
       "Listed": 0,
       "SendAlert": 0,
       "Note": "NEW NOTE",
       "Created": 135305937764,
       "Modified": 135305937764
    }
    

    XML Resource URL:POST https://spamtest.glockapps.com/api/v1/AddNoteToIP/xml

    Example of an XML Response:
    <AddIPToMonitor>
       <ID>223</ID>
       <UserID>75</UserID>
       <IP>xx.120.103.xx</IP>
       <SenderScore>n/a</SenderScore>
       <CheckedTimes>0</CheckedTimes>
       <LastChecked></LastChecked>
       <Listed>0</Listed>
       <SendAlert>0</SendAlert>
       <Note>NEW NOTE</Note>
       <Created>135305937815</Created>
       <Modified>135305937815</Modified>
    </AddIPToMonitor>
    
  • DELETE DeleteIPFromMonitor

    Deletes an IP address from the IP Reputation Monitor.

    Resource URL:DELETE https://spamtest.glockapps.com/api/v1/DeleteIPFromMonitor

    Parameters

    apikey required
    string (User ApiKey)
    IP required
    string (IP Address)

    XML Resource URL:DELETE https://spamtest.glockapps.com/api/v1/DeleteIPFromMonitor/xml

    Success : Status Code:200 OK

  • GET GetIPMonitored

    Returns a full list of monitored IP addresses. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetIPMonitored

    Parameters

    apikey required
    string (User ApiKey)
    showdetails
    optional integer (1 – show listed list)
    Example of a JSON Response:
    {
    	Count: 2,
    		Items: [
    	{
    		IP: "46.53.160.244",
    		LastChecked: "2015-07-29T06:45:15",
    		Listed: 1,
    		SendAlert: 0,
    		ListedCount: 4,
    		Note: "bla bla"
    		},
    	{
    		IP: "209.167.231.175",
    		LastChecked: "2015-07-29T07:15:05",
    		Listed: 0,
    		SendAlert: 0,
    		ListedCount: 0,
    		Note: "e175.en25.com"
    		}
    	]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetIPMonitored/xml

    Example of an XML Response:
    <GetIPMonitored>
    <Count>2</Count>
    	<Items>
    		<IP>46.53.160.244</IP>
    		<LastChecked>2015-07-29T06:45:15</LastChecked>
    		<Listed>1</Listed>
    		<SendAlert>0</SendAlert>
    		<ListedCount>4</ListedCount>
    		<Note>bla bla</Note>
    	</Items>
    	<Items>
    		<IP>209.167.231.175</IP>
    		<LastChecked>2015-07-29T07:15:05</LastChecked>
    		<Listed>0</Listed>
    		<SendAlert>0</SendAlert>
    		<ListedCount>0</ListedCount>
    		<Note>e175.en25.com</Note>
    	</Items>
    </GetIPMonitored>
    
  • GET GetIPResult

    Returns the result of monitoring a specific IP address. Data is returned in the XML or JSON format.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/GetIPResult

    Parameters

    apikey required
    required string (User ApiKey)
    IP required
    string (IP Address)
    listed
    integer (1 – show only listed)
    Example of a JSON Response:
    {
      "IP": "xx.120.103.xx",
      "Note": "mail.example.com",
      "SenderScore": "6",
      "LastChecked": "2016-04-15T05:57:40",
      "Status": 2,
      "Listed": 1,
      "ListedCount": 5,
      "ListedIn": [
        {
          "Server": "zen.spamhaus.org",
          "Status": 1,
          "txt": "<a target=\"_blank\" href=\"https://www.spamhaus.org/query/ip/xx.120.103.xx\">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>"
        },
        {
          "Server": "xbl.spamhaus.org",
          "Status": 1,
          "txt": "<a target=\"_blank\" href=\"https://www.spamhaus.org/query/ip/xx.120.103.xx\">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>"
        },
        {
          "Server": "cbl.abuseat.org",
          "Status": 1,
          "txt": "Blocked - see <a target=\"_blank\" href=\"http://www.abuseat.org/lookup.cgi?ip=xx.120.103.xx\">http://www.abuseat.org/lookup.cgi?ip=xx.120.103.xx</a>"
        },
        {
          "Server": "bad.psky.me",
          "Status": 1,
          "txt": "Bad Reputation. See <a target=\"_blank\" href=\"http://psky.me?xx.120.103.xx\">http://psky.me?xx.120.103.xx</a>"
        },
        {
          "Server": "cidr.bl.mcafee.com",
          "Status": 1,
          "txt": "<a target=\"_blank\" href=\"https://www.spamhaus.org/query/ip/xx.120.103.xx\">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>"
        },
        {
          "Server": "rbl.schulte.org",
          "Status": 0,
          "txt": ""
        },
    ...
        {
          "Server": "dnsbl-1.uceprotect.net",
          "Status": 0,
          "txt": ""
        }
      ]
    }
    

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetIPResult/xml

    Example of XML Response:
    <GetIPResult>
        <IP>xx.120.103.xx</IP>
        <Note>mail.example.com</Note>
        <SenderScore>6</SenderScore>
        <LastChecked>2016-04-15T05:57:40</LastChecked>
        <Status>2</Status>
        <Listed>1</Listed>
        <ListedCount>5</ListedCount>
        <ListedIn>
            <Server>zen.spamhaus.org</Server>
            <Status>1</Status>
            <txt>
                <a target="_blank" href="https://www.spamhaus.org/query/ip/xx.120.103.xx">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>
            </txt>
        </ListedIn>
        <ListedIn>
            <Server>xbl.spamhaus.org</Server>
            <Status>1</Status>
            <txt>
                <a target="_blank" href="https://www.spamhaus.org/query/ip/xx.120.103.xx">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>
            </txt>
        </ListedIn>
        <ListedIn>
            <Server>cbl.abuseat.org</Server>
            <Status>1</Status>
            <txt>
    Blocked - see 
                <a target="_blank" href="http://www.abuseat.org/lookup.cgi?ip=xx.120.103.xx">http://www.abuseat.org/lookup.cgi?ip=xx.120.103.xx</a>
            </txt>
        </ListedIn>
        <ListedIn>
            <Server>bad.psky.me</Server>
            <Status>1</Status>
            <txt>
    Bad Reputation. See 
                <a target="_blank" href="http://psky.me?xx.120.103.xx">http://psky.me?xx.120.103.xx</a>
            </txt>
        </ListedIn>
        <ListedIn>
            <Server>cidr.bl.mcafee.com</Server>
            <Status>1</Status>
            <txt>
                <a target="_blank" href="https://www.spamhaus.org/query/ip/xx.120.103.xx">https://www.spamhaus.org/query/ip/xx.120.103.xx</a>
            </txt>
        </ListedIn>
        <ListedIn>
            <Server>rbl.schulte.org</Server>
            <Status>0</Status>
            <txt/>
        </ListedIn>
    ...
        <ListedIn>
            <Server>dnsbl-1.uceprotect.net</Server>
            <Status>0</Status>
            <txt/>
        </ListedIn>
    </GetIPResult>
    
  • GET Email

    Returns the RAW HTML code of a tested email message.

    Resource URL:GET https://spamtest.glockapps.com/api/v1/Email/{TestId}?apikey={apikey}

    Request Details

    apikey required
    required string (User ApiKey)
    TestId required
    string
    Response:
    RAW HTML code of a tested email
      
  • GET GetEmailInfo

    Returns the Content Analysis information. Data is returned in the XML or JSON format.

    Resource URL:GET spamtest.glockapps.com/api/v1/GetEmailInfo?testId={testid}&apikey={apikey}

    Request Details

    apikey required
    required string (User ApiKey)
    TestId required
    string
    Example of a JSON Response:
    {
    ID: 191091,
    testId: "ccf2f12065a2046dda00a9b49ab02143",
    userId: 223,
    links: {
    count: 1,
    links: [
    {
    link: "https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI",
    type: "img",
    anchor: "",
    statusCode: 200,
    responseText: "HTTP/1.1 200 OK",
    finalUrl: "https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI",
    time: "206.21ms",
    redirCount: 0,
    contentLength: 43,
    contentType: "image/gif"
    }
    ]
    },
    spamInfo: [ ],
    htmlErrors: [
    {
    msg: "the <head> tag must contain a title",
    line: 1,
    col: 258
    }
    ],
    linksStatus: 2,
    msgSize: 11143,
    htmlSize: 6015,
    plainSize: 39,
    imagesSize: 43,
    imagesCount: 1,
    html: " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta name="viewport" content="width=device-width,initial-scale=1"> <!--[if gte mso 9]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml> <![endif]--> <style type="text/css">* a:hover{cursor:pointer;}</style> <style>body {-webkit-animation:bugfix infinite 1s;}@-webkit-keyframes bugfix {from {position:relative;}to {position:relative;}}</style> </head> <body style="word-wrap:normal;word-break:break-word"> <style>a {word-wrap:normal;word-break:break-word;}.background-contain {background-size:contain;}@media only screen and (max-width:600px) {.container {-webkit-text-size-adjust:none !important;}.container,.palm-one-whole {width:100% !important;min-width:100% !important;}.palm-one-half {width:50% !important;min-width:50% !important;box-sizing:border-box;}blockquote .container,blockquote .container div,blockquote .container table {width:auto !important;min-width:0 !important;position:relative !important;}img {max-width:100%;}.border-outer,.border-middle,.border-inner,.inner,[title="separator"] {width:100% !important;}.innercell {padding:8px !important;}.palm-block {display:block !important;}td.palm-one-whole {display:inline-block !important;padding:0;}td.palm-one-whole:first-child:not(:only-child) {margin-bottom:16px;}td.hostname {padding-top:3px !important;}}@media only screen and (min-width:601px) {.preview-card {max-width:600px !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (max-device-width:640px),only screen and (max-device-width:667px),only screen and (max-width:480px){.container {width:100% !important;min-width:100% !important;}.p,.small,li,font[size="2"],font[size="3"] {font-size:1em !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (min-device-width :1224px) {.message-wrapper {padding-top:6px;}.apple-only[style] {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.no-apple {display:none !important;}form {font-size:inherit;}input[type="text"] {height:43px;padding-left:4px !important;}button:hover {cursor:pointer;}}@media only screen and (min-device-width :1224px) {.apple-mail-form {display:block !important;background-color:white !important;}}* [office365] .outlook-com-hidden {display:none !important;}* [office365] .outlook-com-button {display:block;}* [office365] .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass {width:100%;}.ExternalClass .outlook-com-button {display:block;}.ExternalClass button {height:auto;}.ExternalClass .outlook-com-hidden {display:none !important;}.ExternalClass .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxarrow {display:none !important;}.ExternalClass cite >div + div {padding:0 0 4px 0;}.ExternalClass .h1 {padding-bottom:5px;}.ExternalClass .h2 {padding-bottom:5px;}.ExternalClass .h3 {padding-bottom:5px;}.ExternalClass [lang="brand-pinterest"] {width:280px !important;}</style> <!--[if (gte mso 9)|(IE)]> <style> a, body { font-family: 'Calibri', Arial, sans-serif; } img { border: none !important; -ms-interpolation-mode:bicubic; } td { mso-line-height-rule:exactly !important; } .mso-card-inner table { border-collapse: collapse !important; mso-table-lspace:0pt; mso-table-rspace:0pt; vertical-align: top; } .outlook-com-only { display: none !important; font-size: 0 !important; } #mso-one-whole { width: 100% !important; } .border-outer, .border-middle, .border-inner { border: none !important; } .border-middle, .border-inner { width: 100% !important; } .mso-border-outer, .mso-border-middle, .mso-border-inner { padding: 1px; } .mso-border-outer { background-color: rgb(245, 255, 255); } .mso-border-middle { background-color: rgb(223, 246, 255); } .mso-border-inner { background-color: rgb(153, 176, 225); } </style> <![endif]--> <table class="container" lang="container" dir="ltr" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%"> <tr> <td valign="top" class="message-wrapper" style="color:#222;font-family:arial,sans-serif"> <!--[if mso]><table border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate;"><tr><td valign="top"><![endif]--> <div><br></div><div>id: ccf2f120-65a2046d-da00a9b4-9ab02143</div><div><br></div><div><br></div><div></div><img align="left" width="0" height="0" style="border:0;width:0px;height:0px" src="https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI" alt=""> <!--[if mso]></td></tr></table><![endif]--> </td> </tr> </table> </body> </html> ",
    plain: "id: ccf2f120-65a2046d-da00a9b4-9ab02143",
    created: "2018-01-09T11:24:38"
    }
      

    XML Resource URL:GET https://spamtest.glockapps.com/api/v1/GetEmailInfo/xml?testId=[testid]&apikey=[apikey]

    Example of an XML Response:
    <GetEmailInfo>
    <ID>191091</ID>
    <testId>ccf2f12065a2046dda00a9b49ab02143</testId>
    <userId>223</userId>
    <links>
    <count>1</count>
    <links>
    <link>
    https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI
    </link>
    <type>img</type>
    <anchor/>
    <statusCode>200</statusCode>
    <responseText>HTTP/1.1 200 OK</responseText>
    <finalUrl>
    https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI
    </finalUrl>
    <time>206.21ms</time>
    <redirCount>0</redirCount>
    <contentLength>43</contentLength>
    <contentType>image/gif</contentType>
    </links>
    </links>
    <htmlErrors>
    <msg>the <head> tag must contain a title</msg>
    <line>1</line>
    <col>258</col>
    </htmlErrors>
    <linksStatus>2</linksStatus>
    <msgSize>11143</msgSize>
    <htmlSize>6015</htmlSize>
    <plainSize>39</plainSize>
    <imagesSize>43</imagesSize>
    <imagesCount>1</imagesCount>
    <html>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta name="viewport" content="width=device-width,initial-scale=1"> <!--[if gte mso 9]>
     <xml>
     <o:OfficeDocumentSettings>
     <o:AllowPNG/>
     <o:PixelsPerInch>96</o:PixelsPerInch>
     </o:OfficeDocumentSettings>
     </xml>
     <![endif]--> <style type="text/css">* a:hover{cursor:pointer;}</style> <style>body {-webkit-animation:bugfix infinite 1s;}@-webkit-keyframes bugfix {from {position:relative;}to {position:relative;}}</style> </head> <body style="word-wrap:normal;word-break:break-word"> <style>a {word-wrap:normal;word-break:break-word;}.background-contain {background-size:contain;}@media only screen and (max-width:600px) {.container {-webkit-text-size-adjust:none !important;}.container,.palm-one-whole {width:100% !important;min-width:100% !important;}.palm-one-half {width:50% !important;min-width:50% !important;box-sizing:border-box;}blockquote .container,blockquote .container div,blockquote .container table {width:auto !important;min-width:0 !important;position:relative !important;}img {max-width:100%;}.border-outer,.border-middle,.border-inner,.inner,[title="separator"] {width:100% !important;}.innercell {padding:8px !important;}.palm-block {display:block !important;}td.palm-one-whole {display:inline-block !important;padding:0;}td.palm-one-whole:first-child:not(:only-child) {margin-bottom:16px;}td.hostname {padding-top:3px !important;}}@media only screen and (min-width:601px) {.preview-card {max-width:600px !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (max-device-width:640px),only screen and (max-device-width:667px),only screen and (max-width:480px){.container {width:100% !important;min-width:100% !important;}.p,.small,li,font[size="2"],font[size="3"] {font-size:1em !important;}}@media only screen and (min-device-width :320px) and (max-device-width :568px),only screen and (min-device-width :768px) and (max-device-width :1024px),only screen and (min-device-width :1224px) {.message-wrapper {padding-top:6px;}.apple-only[style] {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.no-apple {display:none !important;}form {font-size:inherit;}input[type="text"] {height:43px;padding-left:4px !important;}button:hover {cursor:pointer;}}@media only screen and (min-device-width :1224px) {.apple-mail-form {display:block !important;background-color:white !important;}}* [office365] .outlook-com-hidden {display:none !important;}* [office365] .outlook-com-button {display:block;}* [office365] .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass {width:100%;}.ExternalClass .outlook-com-button {display:block;}.ExternalClass button {height:auto;}.ExternalClass .outlook-com-hidden {display:none !important;}.ExternalClass .outlook-com-only {display:block !important;max-height:none !important;line-height:normal !important;overflow:visible !important;height:auto !important;width:100% !important;position:relative !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxlabels {display:none !important;}.ExternalClass .ecxarrow {display:none !important;}.ExternalClass cite >div + div {padding:0 0 4px 0;}.ExternalClass .h1 {padding-bottom:5px;}.ExternalClass .h2 {padding-bottom:5px;}.ExternalClass .h3 {padding-bottom:5px;}.ExternalClass [lang="brand-pinterest"] {width:280px !important;}</style> <!--[if (gte mso 9)|(IE)]>
     
     <style>
     a, body {
     font-family: 'Calibri', Arial, sans-serif;
     }
     
     img {
     border: none !important;
     -ms-interpolation-mode:bicubic;
     }
     
     td {
     mso-line-height-rule:exactly !important;
     }
     
     .mso-card-inner table {
     border-collapse: collapse !important;
     mso-table-lspace:0pt;
     mso-table-rspace:0pt;
     vertical-align: top;
     }
     
     .outlook-com-only {
     display: none !important;
     font-size: 0 !important;
     }
     
     #mso-one-whole {
     width: 100% !important;
     }
     
     
     
     .border-outer,
     .border-middle,
     .border-inner {
     border: none !important;
     }
     
     .border-middle,
     .border-inner {
     width: 100% !important;
     }
     
     .mso-border-outer,
     .mso-border-middle,
     .mso-border-inner {
     padding: 1px;
     }
     
     .mso-border-outer { background-color: rgb(245, 255, 255); }
     .mso-border-middle { background-color: rgb(223, 246, 255); }
     .mso-border-inner { background-color: rgb(153, 176, 225); }
     
     </style>
     
     <![endif]--> <table class="container" lang="container" dir="ltr" border="0" cellpadding="0" cellspacing="0" valign="top" style="width:100%"> <tr> <td valign="top" class="message-wrapper" style="color:#222;font-family:arial,sans-serif"> <!--[if mso]><table border="0" cellpadding="0" cellspacing="0" valign="top" style="border-collapse:separate;"><tr><td valign="top"><![endif]--> <div><br></div><div>id: ccf2f120-65a2046d-da00a9b4-9ab02143</div><div><br></div><div><br></div><div></div><img align="left" width="0" height="0" style="border:0;width:0px;height:0px" src="https://track.mixmax.com/api/track/v2/nw1ywkXEXZn8NF63h/i02bj5CbpFWbnBUYuVmcpN3blNnI" alt=""> <!--[if mso]></td></tr></table><![endif]--> </td> </tr> </table> </body> </html>
    </html>
    <plain>id: ccf2f120-65a2046d-da00a9b4-9ab02143</plain>
    <created>2018-01-09T11:24:38</created>
    </GetEmailInfo>
      

Trusted by well known companies all over the world

EasyMail7 customers