PollinationX
  • Welcome to PX
  • INTRODUCTION
    • Start Here
    • FAQ
    • Library
  • OVERVIEW
    • PX dApp
      • PX dApp User Guide
    • PX Storage NFTs
    • Supported Networks & Storages
    • Fees
  • DEVELOPER SECTION
    • PX Architecture
    • PX Processes
    • PX Nodes
    • PX API Reference
      • Auth
      • Upload
      • Download
    • PX SDK
      • Quick start
    • PX GitHub
Powered by GitBook
On this page
  • Download file
  • Download file
  1. DEVELOPER SECTION
  2. PX API Reference

Download

This API allows you to download a file from the decentralized storage using its Content Identifier (CID)

PreviousUploadNextPX SDK

Last updated 1 year ago

Good to know: Consider the size of the file you are downloading and the network conditions. Larger files may take longer to download, so ensure that your application handles file downloads efficiently and provides progress indications if needed.

Download file

Download file

POST /api/v1/get

API endpoint and JWT token is available in api response.

Query Parameters

Name
Type
Description

arg*

String

The Content Identifier (CID) of the file you want to download from the decentralized storage system

Headers

Name
Type
Description

Authorization*

Bearer <jwt token>

he authentication token required to access the API.

Binary image

{ error: Error message }

The provided CID ("Hash") in api response can be used to interact with the decentralized storage system to retrieve or manipulate the file as needed.

Authenticate user