id: api-monday

info:
  name: Monday API Test
  author: daffainfo
  severity: info
  description: Programmatically access and update data inside a monday.com account
  reference:
    - https://api.developer.monday.com/docs
    - https://github.com/daffainfo/all-about-apikey/tree/main/monday
  metadata:
    max-request: 1
  tags: token-spray,monday

self-contained: true

http:
  - raw:
      - |
        POST https://api.monday.com/v2 HTTP/1.1
        Host: api.monday.com
        Authorization: {{token}}
        Content-Type: application/json

        {"query": "query { me { is_guest created_at name id}}"}

    matchers:
      - type: word
        part: body
        words:
          - '"me"'
          - '"name"'
          - '"account_id"'
        condition: and
# digest: 4a0a00473045022100eec6ba5816db3a5b77b6b5173f86f25d91ec71cbe8c74ef084ab5735b725383202206234d4e17d3e62eda75ee2d37224212684788e39053bb68214d7d9677e01d4bb:922c64590222798bb761d5b6d8e72950