id: api-circleci

info:
  name: CircleCI API Test
  author: zzeitlin
  severity: info
  reference:
    - https://circleci.com/docs/api/v1
  metadata:
    max-request: 1
  tags: token-spray,circleci

self-contained: true

http:
  - method: GET
    path:
      - "https://circleci.com/api/v1.1/me?circle-token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"admin"'
          - '"login"'
        condition: and
# digest: 4a0a00473045022100f11caac9670e443d1a9dc1486ebb96eaed5dc61caa75873c727f518327a2d1bf022046b55368e96cd03bd4698d41d342c59b5a03255992b46df46a3a77c6312d3ce6:922c64590222798bb761d5b6d8e72950