id: api-pinata

info:
  name: Pinata API Test
  author: daffainfo
  severity: info
  description: IPFS Pinning Services API
  reference:
    - https://docs.pinata.cloud/
    - https://github.com/daffainfo/all-about-apikey/tree/main/pinata
  metadata:
    max-request: 1
  tags: token-spray,pinata

self-contained: true

http:
  - raw:
      - |
        GET https://api.pinata.cloud/data/pinList?status=pinned HTTP/1.1
        Host: api.pinata.cloud
        pinata_api_key: {{token}}
        pinata_secret_api_key: {{secret}}

    matchers:
      - type: word
        part: body
        words:
          - '"id"'
          - '"ipfs_pin_hash"'
        condition: and

# digest: 4a0a0047304502210084b17cc869f96b2fa7f8b058f8230f387233d015d16b030c2756f417e6544bd8022007dab03aa667aa18ef1acdb45d0029325ab854b1d82b75a297cbb2c307ab85c8:922c64590222798bb761d5b6d8e72950
