{
    "info": {
        "_postman_id": "70bc38aa-cb17-4ca4-a755-cf07300bdd31",
        "name": "IsEmailSpam API",
        "description": "Check an email address against the IsEmailSpam blacklist or report a spam email address or domain. Set the collection variables before sending a request.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Check an email address",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "Accept",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}/api/check?api_key={{api_key}}&email={{email}}",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "check"
                    ],
                    "query": [
                        {
                            "key": "api_key",
                            "value": "{{api_key}}"
                        },
                        {
                            "key": "email",
                            "value": "{{email}}"
                        }
                    ]
                },
                "description": "Checks the configured email address and its sender domain against the blacklist."
            },
            "response": []
        },
        {
            "name": "Report a spam email address",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Accept",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "api_key",
                            "value": "{{api_key}}",
                            "type": "text"
                        },
                        {
                            "key": "email",
                            "value": "{{email}}",
                            "type": "text"
                        }
                    ]
                },
                "url": {
                    "raw": "{{base_url}}/api/report",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "report"
                    ]
                },
                "description": "Reports the configured email address as spam."
            },
            "response": []
        },
        {
            "name": "Report a spam domain",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Accept",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "api_key",
                            "value": "{{api_key}}",
                            "type": "text"
                        },
                        {
                            "key": "domain",
                            "value": "{{domain}}",
                            "type": "text"
                        }
                    ]
                },
                "url": {
                    "raw": "{{base_url}}/api/report",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "report"
                    ]
                },
                "description": "Reports the configured sender domain as spam."
            },
            "response": []
        }
    ],
    "variable": [
        {
            "key": "base_url",
            "value": "https://isemailspam.com",
            "type": "string"
        },
        {
            "key": "api_key",
            "value": "your_key",
            "type": "string"
        },
        {
            "key": "email",
            "value": "email_to_check@example.com",
            "type": "string"
        },
        {
            "key": "domain",
            "value": "spam-domain.example",
            "type": "string"
        }
    ]
}
