id: api-improvmx

info:
  name: ImprovMX API Test
  author: daffainfo
  severity: info
  description: API for free email forwarding service
  reference:
    - https://improvmx.com/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/improvmx
  metadata:
    max-request: 1
  tags: token-spray,improvmx

self-contained: true

http:
  - raw:
      - |
        GET https://api.improvmx.com/v3/account HTTP/1.1
        Authorization: Basic {{base64(':' + token)}}
        Host: api.improvmx.com

    host-redirects: true
    max-redirects: 1
    matchers:
      - type: word
        part: body
        words:
          - '"billing_email":'
          - '"cancels_on":'
          - '"company_details":'
        condition: and
# digest: 4a0a00473045022100b667e892c623571313dff87fa637b5833d3a46916f20658c5d7b24bee78107dd02201cac43e22d81a4d309f53feb3ba4c51ad76d1c7bc25d443d3c4878f4ca202ec7:922c64590222798bb761d5b6d8e72950