id: api-instatus

info:
  name: Instatus API Test
  author: daffainfo
  severity: info
  description: Post to and update maintenance and incidents on your status page through an HTTP REST API
  reference:
    - https://instatus.com/help/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/instatus
  metadata:
    max-request: 1
  tags: token-spray,instatus

self-contained: true

http:
  - method: GET
    path:
      - "https://api.instatus.com/v1/pages"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"subdomain":'
          - '"name":'
          - '"logoUrl":'
        condition: and
# digest: 4a0a00473045022100bbb1cd49260e81197a3cd2031da61ee74db19152c116f3fe461acc441d9fff930220178c8c8a7e28b96fd94046cc2b9ba4b52c0746952ff4d96c45448168fd5c6839:922c64590222798bb761d5b6d8e72950