id: api-mailboxvalidator

info:
  name: MailboxValidator API Test
  author: daffainfo
  severity: info
  description: Validate email address to improve deliverability
  reference:
    - https://www.mailboxvalidator.com/api-email-free
    - https://github.com/daffainfo/all-about-apikey/tree/main/mailboxvalidator
  metadata:
    max-request: 1
  tags: token-spray,mailboxvalidator

self-contained: true

http:
  - method: GET
    path:
      - "https://api.mailboxvalidator.com/v1/email/free?email=test@test.com&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"email_address":"test@test.com"'
          - '"error_code":""'
          - '"error_message":""'
        condition: and

# digest: 4b0a00483046022100c9bc4595e017090f609c06810f5e2e332a3cb2da405cee02c59c5d9ab169b60d022100e726c57f677c8c35fa821b9f4ef3d97cd98f55228641e5b71d2e03274a49c8f6:922c64590222798bb761d5b6d8e72950
