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: 4b0a00483046022100941c310a283d36177e004d1ce7149746202f9ffb43e627bf0c7eec97401a1bb6022100d5e3174d245f29265c45e8859b91123b1add8730a977a0aa3b7666b36f4e146d:922c64590222798bb761d5b6d8e72950