id: api-abstract-email-validation

info:
  name: Abstract Api Email Validation Test
  author: daffainfo
  severity: info
  description: Improve your delivery rate and clean your email lists with Abstract's industry-leading email verification API
  reference:
    - https://www.abstractapi.com/api/email-verification-validation-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-email-validation
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://emailvalidation.abstractapi.com/v1/?api_key={{token}}&email=johnsmith@gmail.com"

    matchers:
      - type: word
        part: body
        words:
          - '"email":'
          - '"autocorrect":'
          - '"is_valid_format":'
        condition: and
# digest: 490a0046304402201d324f9a9146dea9a01325b98ebf88529fcebaeb3675ac75bd35fe36b93fdd1202203f435542e02bb55de355cfe4c137da7355d5dd413dbdae51aa4d60a4f4621e86:922c64590222798bb761d5b6d8e72950