id: api-jumpcloud

info:
  name: JumpCloud API Test
  author: zzeitlin
  severity: info
  reference:
    - https://docs.jumpcloud.com/1.0/authentication-and-authorization/api-key
  metadata:
    max-request: 1
  tags: token-spray,jumpcloud

self-contained: true

http:
  - method: GET
    path:
      - "https://console.jumpcloud.com/api/systems"

    headers:
      X-Api-Key: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - '"_id":'
          - '"agentServer":'
        condition: and

# digest: 4a0a00473045022100e395470a83648eb14625518d6cc511e00a46ee8a2b83858ccdd9793fda5cab5d02200d2b5dd6e14ae4018b021a4065896b508a5b3953de86090e7c4e53a82e6b460b:922c64590222798bb761d5b6d8e72950
