id: api-abstract-phone-validation

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

self-contained: true

http:
  - method: GET
    path:
      - "https://phonevalidation.abstractapi.com/v1/?api_key={{token}}&number=14154582468"

    matchers:
      - type: word
        part: body
        words:
          - '"number":'
          - '"is_valid_number":'
          - '"local_format":'
        condition: and
# digest: 490a00463044022070e39ade023832b6155e37133ab106035f8db7a35105b2024a7305924203d47e02205f5354c4c13a0790ecf5f5c378daeea48982744e539427d790fb36b6e36922e1:922c64590222798bb761d5b6d8e72950