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