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