id: api-pastebin

info:
  name: Pastebin API Test
  author: daffainfo
  severity: info
  description: Plain Text Storage
  reference:
    - https://pastebin.com/doc_api
    - https://github.com/daffainfo/all-about-apikey/tree/main/pastebin
  metadata:
    max-request: 1
  tags: token-spray,pastebin

self-contained: true

http:
  - raw:
      - |
        POST https://pastebin.com/api/api_post.php HTTP/1.1
        Host: pastebin.com
        Content-Type: application/x-www-form-urlencoded
        Content-Length: 81

        api_dev_key={{token}}&api_paste_code=test&api_option=paste

    matchers:
      - type: word
        part: body
        words:
          - 'https://pastebin.com/'
# digest: 4b0a00483046022100bf82ae19e5ffdf145fa44bf64fe88cf9186d944f1240a7c0c09df6478a23a0a4022100bd87b7275071c1891c0987b1222aa0b0f22000b17ff9af3f1e2f468b2fe9336d:922c64590222798bb761d5b6d8e72950