id: api-clockify

info:
  name: Clockify API Test
  author: daffainfo
  severity: info
  description: Clockify's REST-based API can be used to push/pull data to/from it & integrate it with other systems
  reference:
    - https://clockify.me/developers-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/clockify
  metadata:
    max-request: 1
  tags: token-spray,clockify

self-contained: true

http:
  - raw:
      - |
        GET https://api.clockify.me/api/v1/user HTTP/1.1
        Host: api.clockify.me
        X-Api-Key: {{token}}
        Content-Type: application/json

    matchers:
      - type: word
        part: body
        words:
          - '"id":'
          - '"email":'
          - '"name":'
        condition: and
# digest: 4b0a004830460221009a8ecbf71558013b93bb6316403d29c1e8408a2f24616fda5775bb2ace0d2f58022100e4f57efdf29ec5ad215656d6cbf9cbba974dde84419f3a1bb56e30d2ba7aa8ed:922c64590222798bb761d5b6d8e72950