v1

latestOpenAPI 3.0.0MIT2026-07-17124105392.5 KB
IPFS » Add

Add a file to IPFS

You need to /ipfs/pin/add an object to avoid it being garbage collected. This usage is being counted in your user account quota.

<p> <span class="hosted">Hosted</span> Endpoint only available for hosted variant. </p>
post/ipfs/add

Response

Returns information about added IPFS object

namestring required

Name of the file

ipfs_hashstring required

IPFS hash of the file

sizestring required

IPFS node size in Bytes

Example response

{
  "name": "README.md",
  "ipfs_hash": "QmZbHqiCxKEVX7QfijzJTkZiSi3WEVTcvANgNAWzDYgZDr",
  "size": "125297"
}