---
agentTools:
  projectIndex: https://thenftbrewery.readme.io/llms.txt
---

# Secure Asset Upload Arweave

This API is used to securely upload an asset to the Arweave. <br><br> <b>Required Parameters</b> :- <br><br> <b>file</b> - Upload the asset file.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "NFTB APIs",
    "version": "1.0.0",
    "description": ""
  },
  "servers": [
    {
      "url": "https://dev.api.thenftbrewery.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "jwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "arweaveUpload": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1/ipfs/SecureAssetUploadArweave": {
      "post": {
        "summary": "Secure Asset Upload Arweave",
        "tags": [
          "Asset"
        ],
        "description": "This API is used to securely upload an asset to the Arweave. <br><br> <b>Required Parameters</b> :- <br><br> <b>file</b> - Upload the asset file.",
        "security": [
          {
            "jwt": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/arweaveUpload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "AssetId  & AssetHash"
          },
          "400": {
            "description": "Bad Request Errors"
          },
          "404": {
            "description": "Email Not Exist <br> authCode does not exist"
          },
          "406": {
            "description": "Non Authenticated User <br> Please Provide Valid Email Address"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 98,
      "1": 154,
      "2": 22,
      "3": 185,
      "4": 157,
      "5": 178,
      "6": 247,
      "7": 0,
      "8": 49,
      "9": 249,
      "10": 105,
      "11": 121
    }
  }
}
```