{
  "opencollection": "1.0.0",
  "info": {
    "name": "QuickNode IPFS REST Account Pinning API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-api-key",
      "value": "{{x-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Pinning",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Upload and pin a file",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.quicknode.com/ipfs/rest/v1/s3/put-object",
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "Body",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "Key",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "ContentType",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Upload a file via multipart and pin it to IPFS."
        },
        {
          "info": {
            "name": "List pinned objects",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.quicknode.com/ipfs/rest/v1/pinning"
          },
          "docs": "List pinned objects"
        },
        {
          "info": {
            "name": "Pin an existing CID",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.quicknode.com/ipfs/rest/v1/pinning",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Pin an existing CID"
        },
        {
          "info": {
            "name": "Get a pin by request id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.quicknode.com/ipfs/rest/v1/pinning/:requestId",
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a pin by request id"
        },
        {
          "info": {
            "name": "Unpin an object",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.quicknode.com/ipfs/rest/v1/pinning/:requestId",
            "params": [
              {
                "name": "requestId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Unpin an object"
        }
      ]
    }
  ],
  "bundled": true
}