API reference
/add
POST
https://api.token-project.eu/ipfs/add
The proxy adds the content to the local IPFS daemon and pins the resulting hash[es] in cluster.
Query Parameters
quiet
Boolean
Write minimal output.
quieter
Boolean
Write only final hash.
silent
Boolean
Write no output.
progress
Boolean
Stream progress data.
trickle
Boolean
Use trickle-dag format for dag generation.
only-hash
Boolean
Only chunk and hash - do not write to disk.
wrap-with-directory
Boolean
Wrap files with a directory object.
chunker
String
Chunking algorithm, size-[bytes], rabin-[min]-[avg]-[max] or buzhash. Default: size-262144.
pin
Boolean
Pin this object when adding. Default: true.
raw-leaves
Boolean
Use raw blocks for leaf nodes. (experimental).
nocopy
Boolean
Add the file using filestore. Implies raw-leaves. (experimental).
fscache
Boolean
Check the filestore for pre-existing blocks. (experimental).
cid-version
Integer
CID version. Defaults to 0 unless an option that depends on CIDv1 is passed (experimental).
hash
String
Hash function to use. Implies CIDv1 if not sha2-256. (experimental). Default: sha2-256.
inline
Boolean
Inline small blocks into CIDs. (experimental).
inline-limit
Integer
Maximum block size to inline. (experimental). Default: 32.
Headers
Content-Type
string
application/form-data
Authorization*
string
Bearer: $TOKEN
Request Body
path*
file
File to upload
/get
POST
https://api.token-project.eu/ipfs/get
Download IPFS objects.
Query Parameters
arg*
String
The path to the IPFS object(s) to be outputted.
output
String
The path where the output should be stored.
archive
Boolean
Output a TAR archive.
compress
Boolean
Compress the output with GZIP compression.
compression-level
Integer
The level of compression (1-9).
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/pin/add
POST
https://api.token-project.eu/ipfs/pin/add
The proxy pins the given CID in the cluster.
Query Parameters
arg*
String
Path to object(s) to be pinned.
progress
Boolean
Show progress.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/pin/update
POST
https://api.token-project.eu/ipfs/pin/update
The proxy updates the given pin to a new one in cluster.
Query Parameters
arg*
String
Path to old object.
arg*
String
Path to a new object to be pinned.
unpin
Boolean
Remove the old pin. Default: true.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/pin/rm
POST
https://api.token-project.eu/ipfs/pin/rm
The proxy unpins the given CID from cluster.
Query Parameters
arg*
String
Path to object(s) to be unpinned.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/pin/ls
POST
https://api.token-project.eu/ipfs/pin/ls
The proxy lists the pinned items in cluster.
Query Parameters
arg*
String
Path to object(s) to be listed.
type*
String
The type of pinned keys to list. Can be "direct", "indirect", "recursive", or "all". Default: all.
quiet*
Boolean
Write just hashes of objects.
stream*
Boolean
Enable streaming of pins as they are discovered.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/repo/stat
POST
https://api.token-project.eu/ipfs/repo/stat
The proxy responds with aggregated /repo/stat from all connected IPFS daemons.
Query Parameters
size-only
Boolean
Only report RepoSize and StorageMax.
human
Boolean
Print sizes in human readable format (e.g., 1K 234M 2G).
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/repo/gc
POST
https://api.token-project.eu/ipfs/repo/gc
The proxy performs garbage collection on all IPFS daemons and responds with collected CIDs.
Query Parameters
stream-errors
Boolean
Stream errors.
quiet
Boolean
Write minimal output.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/block/get
POST
https://api.token-project.eu/ipfs/block/get
Get a raw IPFS block.
Query Parameters
arg*
String
The base58 multihash of an existing block to get.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/block/put
POST
https://api.token-project.eu/ipfs/block/put
Store input as an IPFS block.
Query Parameters
format
String
cid format for blocks to be created with.
mhtype
String
multihash hash function. Default: sha2-256.
mhlen
Integer
multihash hash length. Default: -1.
pin
Boolean
pin added blocks recursively. Default: false.
Headers
Content-Type
string
application/form-data
Authorization*
string
Bearer: $TOKEN
Request Body
data*
file
Any kind of file, or multiple files.
/block/stat
POST
https://api.token-project.eu/ipfs/block/stat
Print information of a raw IPFS block.
Query Parameters
arg*
String
The base58 multihash of an existing block to stat.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/object/stat
POST
https://api.token-project.eu/ipfs/object/stat
Get stats for the DAG node named by.
Query Parameters
arg*
String
Key of the object to retrieve, in base58-encoded multihash format.
human
Boolean
Print sizes in human readable format (e.g., 1K 234M 2G).
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/object/put
POST
https://api.token-project.eu/ipfs/object/put
Store input as a DAG object, print its key.
Query Parameters
inputenc
String
Encoding type of input data. One of: {"protobuf", "json"}. Default: json.
datafieldenc
String
Encoding type of the data field, either "text" or "base64". Default: text.
pin
Boolean
Pin this object when adding.
quiet
Boolean
Write minimal output.
Headers
Content-Type
string
application/form-data
Authorization*
string
Bearer: $TOKEN
Request Body
data*
file
JSON file with format {"Data": "whatever_your_data_is"}
/object/get
POST
https://api.token-project.eu/ipfs/object/get
Get and serialize the DAG node named by.
Query Parameters
arg*
String
Key of the object to retrieve, in base58-encoded multihash format.
data-encoding
String
Encoding type of the data field, either "text" or "base64". Default: text.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/object/data
POST
https://api.token-project.eu/ipfs/object/data
Output the raw bytes of an IPFS object.
Query Parameters
arg*
String
Key of the object to retrieve, in base58-encoded multihash format.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/dag/resolve
POST
https://api.token-project.eu/ipfs/dag/resolve
Resolve ipld block.
Query Parameters
arg*
String
The path to resolve.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/dag/put
POST
https://api.token-project.eu/ipfs/dag/put
Add a dag node to ipfs.
Query Parameters
format
String
Format that the object will be added as. Default: cbor.
input-enc
String
Format that the input object will be. Default: json.
pin
Boolean
Pin this object when adding.
hash
String
Hash function to use.
Headers
Content-Type
string
application/form-data
Authorization*
string
Bearer: $TOKEN
Request Body
object data*
file
JSON file by default.
/dag/get
POST
https://api.token-project.eu/ipfs/dag/get
Get a dag node from ipfs.
Query Parameters
arg*
String
The object to get.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/cat
POST
https://api.token-project.eu/ipfs/cat
Show IPFS object data.
Query Parameters
arg*
String
The path to the IPFS object(s) to be outputted.
offset
Int64
Byte offset to begin reading from.
length
Int64
Maximum number of bytes to read.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
/version
POST
https://api.token-project.eu/ipfs/version
Show ipfs version information.
Query Parameters
number
Boolean
Only show the version number.
commit
Boolean
Show the commit hash.
repo
Boolean
Show repo version.
all
Boolean
Show all version information.
Headers
Content-Type
string
application/x-www-form-urlencoded
Authorization*
string
Bearer: $TOKEN
Last updated