id: api-clearbit

info:
  name: Clearbit API Test
  author: daffainfo
  severity: info
  description: Search for company logos and embed them in your projects
  reference:
    - https://clearbit.com/docs
    - https://github.com/daffainfo/all-about-apikey/tree/main/clearbit
  metadata:
    max-request: 1
  tags: token-spray,clearbit

self-contained: true

http:
  - raw:
      - |
        GET https://person.clearbit.com/v2/combined/find?email=alex@clearbit.com HTTP/1.1
        Authorization: Basic {{base64(token + ':')}}
        Host: person.clearbit.com

    matchers:
      - type: word
        part: body
        words:
          - '"person":'
          - '"id":'
          - '"name":'
        condition: and
# digest: 4b0a00483046022100f15f2345aeb780e083ad8bc17dcb3023c3b76c180119a46b021b409c4e74bab9022100ee628614fed435a0af2e0bbb7fe1d017de62fc143534746bfff9bb45896c3b1a:922c64590222798bb761d5b6d8e72950