Using the 4EVERLAND IPFS Pinning Service API

Stein
4EVERLAND
Published in
3 min readJul 11, 2023

You may already be aware that InterPlanetary File System or IPFS is a distributed storage network where computers from around the world form nodes to share data. To fully benefit from storing data on the IPFS network, it is crucial to pin files and folders to ensure their long-term storage on the network. If a file or folder is not pinned after being uploaded to IPFS, it will be deleted during the next automatic garbage collection process, which is used to maintain resources between nodes on the network.

Once a file is pinned, what should you do if you want to switch to a different pinning provider? If you have pinned a file using a local IPFS node but do not have plans to maintain that node long-term, yet still want the content to be preserved, what should you do?

4EVER Pin was specifically developed for this purpose. Based on the IPFS Pinning Service, it is a standardized specification for developers to build pinning services on top of IPFS, allowing applications to integrate pinning services without needing to understand the unique APIs of those pinning services. This API is commonly referred to as IPFS “PSA” or “Remote Pinning”.

Through our IPFS re-pinning service, we have implemented the IPFS Pinning Service API. This API allows users to view pinned objects, add new objects to be pinned, or remove pinned objects.

4EVER Pin Endpoints

To interact with the 4EVERLAND implementation of the IPFS Pinning Service API, you can use the following API endpoints:

https://api.4everland.dev

Authentication

You need to have an accessToken to authenticate with 4EVERLAND through the Pinning Services API spec. To create an Access Token for 4EVER Pin, you can navigate to the 4EVER Pin page and click on "Access Token". Please note that once created, this Access Token can not be deleted, but can be reset if needed.

Include the Access Token in your API requests as an authorization header:

Authorization: Bearer <access-token>

To get more up-to-date information, you can refer to the IPFS official endpoint documentation.

For more details on how to use the 4EVER Pin service, including available parameters, please consult our complete documentation at https://docs.4everland.org/storage/4ever-pin/pinning-services-api.

About 4EVERLAND

4EVERLAND is a Web 3.0 infrastructure that integrates storage, computing, and network core capabilities. It aims to help the user make a smooth leap from Web 2.0 to Web 3.0 and become the infrastructure for millions of Web 3.0 developers and applications.

Website | Twitter | Telegram | Discord | Reddit | Medium | Email

--

--