id: api-intercom

info:
  name: Intercom API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://developers.intercom.com/building-apps/docs/rest-api-reference
  metadata:
    max-request: 1
  tags: token-spray,intercom

self-contained: true

http:
  - method: GET
    path:
      - "https://api.intercom.io/users"

    headers:
      Authorization: Bearer {{token}}
      Accept: application/json
    matchers:
      - type: word
        part: body
        words:
          - "Access Token Invalid"
        negative: true
# digest: 4a0a00473045022066d746966a8c72773a2a0d6c01385b7bff6768f47edc087ef49b80c0e6885a6e02210091631888bb57515efab100580707b750abf74fe262bbca694dadf111b8a28f6c:922c64590222798bb761d5b6d8e72950