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: 490a004630440220010e94009002269a73e09fb4768b915134e95de8009d9585a35dcc2677ca6624022045b2e14c7e9c9658f0d1ac7693bafb54bb02fd577e8a2b76bc0dd566879fa491:922c64590222798bb761d5b6d8e72950
