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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type | string | application/form-data |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
path* | file | File to upload |
/get
POST
https://api.token-project.eu/ipfs/get
Download IPFS objects.
Query Parameters
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | Path to object(s) to be pinned. |
progress | Boolean | Show progress. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | Path to object(s) to be unpinned. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
size-only | Boolean | Only report RepoSize and StorageMax. |
human | Boolean | Print sizes in human readable format (e.g., 1K 234M 2G). |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
stream-errors | Boolean | Stream errors. |
quiet | Boolean | Write minimal output. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | The base58 multihash of an existing block to get. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type | string | application/form-data |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | The base58 multihash of an existing block to stat. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type | string | application/form-data |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | Key of the object to retrieve, in base58-encoded multihash format. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | The path to resolve. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type | string | application/form-data |
Authorization* | string | Bearer: $TOKEN |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
arg* | String | The object to get. |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
Content-Type | string | application/x-www-form-urlencoded |
Authorization* | string | Bearer: $TOKEN |
Last updated