id: api-intigriti-researcher

info:
  name: Intigriti-Researcher API Test
  author: 0xpugal
  severity: info
  description: The Intigriti researcher API can be used to query information about Programs you have access to via our platform and Program activities you have access to via our platform
  reference:
    - https://kb.intigriti.com/en/articles/8529303-intigriti-researcher-api
  metadata:
    verified: true
    max-request: 1
  tags: token-spray,intigriti

self-contained: true

http:
  - method: GET
    path:
      - "https://api.intigriti.com/external/researcher/v1/programs"

    headers:
      Authorization: Bearer {{token}}
      Content-Type: application/json

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"records"'
          - '"webLinks"'
          - '"detail"'
          - '"handle"'
          - '"value"'
          - '"status"'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e14e31b3a81101d66544359bc53769cd6986009ce48738ed75ee755ff6e490c702202dffc25ba89071286872ea85e59787c4ef59e5aa6c3856100bf279cae319b38a:922c64590222798bb761d5b6d8e72950