Get File Details

This API serves as a powerful tool for retrieving comprehensive information about files stored on the IPFS, a decentralized and distributed file storage protocol.The weightage for this API is 10

API Specification

Get File Details

POST https://api.krypcore.com/api/v0/storagemanageripfs/getFileDetails

Gets the file details from the storage under the given instance.

Headers

NameTypeDescription

Authorization*

String

User Auth Key obtained from Dash

DappId

String

DappId

Request Body

NameTypeDescription

page

Number

Details of uploaded files to be retrieved for the given page No

pageSize

Number

No of uploaded files details to be displayed per page

{
    "Data": {
        "data": [
            {
                "_id": "650d4add128b1b6f75e72b99",
                "apiHits": 0,
                "createdAt": "2023-09-22T08:05:49.876Z",
                "credits": 0,
                "currentFlag": false,
                "fileName": "download.png",
                "fileSize": "5212",
                "instanceID": "INS_ST_19_2023919",
                "instanceKey": "",
                "ipfsHash": "QmbVnEgY9K1Qypb6Rqf81U8SfmoUfYNgTdsJm3JtvSTYKZ",
                "ipfsStorageId": "SM_IPFS_2023922549876127864",
                "pinStatus": true,
                "status": "ACTIVE",
                "storageProtocol": "IPFS",
                "updatedAt": "2023-09-22T08:05:49.876Z",
                "uploadedByUserId": "",
                "version": 0
            },
        ],
        "totalCount": 1
    },
    "Message": "Records fetched successfully",
    "Status": "SUCCESS"
}

Take a look at how you might call this method using our official libraries, or via curl:

curl --location --request POST 'https://api.krypcore.com/api/v0/storagemanageripfs/getFileDetails' \
--header 'Authorization: xxxxxx-xxxx-xxxx-xxxx-xxxxxxx' \
--header 'DappId: xxx_xx_xx_xxxxxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
  "page": 0,
  "pageSize": 10
}'

Last updated