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

Request Body

{
    "Data": {
        "data": [
            {
                "_id": "650d4add128b1b6f75e72b99",
                "apiHits": 0,
                "createdAt": "2023-09-22T08:05:49.876Z",
                "credits": 0,
                "currentFlag": false,
                "fileName": "download.png",
                "fileSize": "5212",
                "fileURL": "https://ipfs-gateway.node.krypcore.io/api/v0/ipfs/b0c27263-efba-4cfa-83e6-xxxxxxxxxxxx/ipfs/QmW6Vavg8DMvobsvA2wjYNktaCEYp7bxdmxxxxxxxxxxxxx",
                "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