> For the complete documentation index, see [llms.txt](https://docs.token-project.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.token-project.eu/storage/ipfs-storage-and-pinning-service/api-reference.md).

# API reference

## /add

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN        |

#### Request Body

| Name                                   | Type | Description    |
| -------------------------------------- | ---- | -------------- |
| path<mark style="color:red;">\*</mark> | file | File to upload |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Name": "test.json",
    "Hash": "QmPcCSG7rDNLB2x6P95MZtEK8FopV82b4997pKLzYyFaLE",
    "Size": "31"
}
```

{% endtab %}
{% endtabs %}

## /get

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/get`

Download IPFS objects.

#### Query Parameters

| Name                                  | Type    | Description                                     |
| ------------------------------------- | ------- | ----------------------------------------------- |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```
Qmdok1E4qxJNDfYHFiWetSPXAixqJsYr8gvYwZMuDbNyvd������������������������������������������������������0000644�0000000�0000000�00000270577�13755241430�017553� 0����������������������������������������������������������������������������������������������������ustar�00����������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������%PDF-1.4
%����
1 0 obj
<</Creator (Mozilla/5.0 \(X11; Linux x86_64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/86.0.4240.198 Safari/537.36)
/Producer (Skia/PDF m86)
/CreationDate (D:20201117135458+00'00')
/ModDate (D:20201117135458+00'00')>>
endobj
3 0 obj
<</ca 1
/BM /Normal>>
endobj
6 0 obj
<</CA 1
/ca 1
/LC 0
(...)
```

{% endtab %}
{% endtabs %}

## /pin/add

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/pin/add`

The proxy pins the given CID in the cluster.

#### Query Parameters

| Name                                  | Type    | Description                     |
| ------------------------------------- | ------- | ------------------------------- |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Pins": [
        "QmPcCSG7rDNLB2x6P95MZtEK8FopV82b4997pKLzYyFaLE"
    ]
}
```

{% endtab %}
{% endtabs %}

## /pin/update

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | String  | Path to old object.                |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Pins": [
        "QmPcCSG7rDNLB2x6P95MZtEK8FopV82b4997pKLzYyFaLE",
        "QmchBjNsmCXys1kQSkzyAS1Phxq3mg5kC3qhuYGPPKDqh8"
    ]
}
```

{% endtab %}
{% endtabs %}

## /pin/rm

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/pin/rm`

The proxy unpins the given CID from cluster.

#### Query Parameters

| Name                                  | Type   | Description                       |
| ------------------------------------- | ------ | --------------------------------- |
| arg<mark style="color:red;">\*</mark> | String | Path to object(s) to be unpinned. |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Pins": [
        "QmchBjNsmCXys1kQSkzyAS1Phxq3mg5kC3qhuYGPPKDqh8"
    ]
}
```

{% endtab %}
{% endtabs %}

## /pin/ls

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/pin/ls`

The proxy lists the pinned items in cluster.

#### Query Parameters

| Name                                     | Type    | Description                                                                                        |
| ---------------------------------------- | ------- | -------------------------------------------------------------------------------------------------- |
| arg<mark style="color:red;">\*</mark>    | String  | Path to object(s) to be listed.                                                                    |
| type<mark style="color:red;">\*</mark>   | String  | The type of pinned keys to list. Can be "direct", "indirect", "recursive", or "all". Default: all. |
| quiet<mark style="color:red;">\*</mark>  | Boolean | Write just hashes of objects.                                                                      |
| stream<mark style="color:red;">\*</mark> | Boolean | Enable streaming of pins as they are discovered.                                                   |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Keys": {
        "QmPcCSG7rDNLB2x6P95MZtEK8FopV82b4997pKLzYyFaLE": {
            "Type": "recursive"
        }
    }
}
```

{% endtab %}
{% endtabs %}

## /repo/stat

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "RepoSize": 121213387,
    "StorageMax": 30000000000
}
```

{% endtab %}
{% endtabs %}

## /repo/gc

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{"Key":{"/":"Qmd1Drph9zkL7TLPfzGFLESjLniuv4n2cMsfXbikdV4QA7"}}
{"Key":{"/":"QmR9xMynmwLqNJkuwXe4aN1EkhkkqUbbTzCCbWxehEKHyk"}}
{"Key":{"/":"bafyreidh4lnv2aaul7mujtovbjk3l2axylqgynq4knkmcrerjtxskizqvm"}}
```

{% endtab %}
{% endtabs %}

## /block/get

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/block/get`

Get a raw IPFS block.

#### Query Parameters

| Name                                  | Type   | Description                                       |
| ------------------------------------- | ------ | ------------------------------------------------- |
| arg<mark style="color:red;">\*</mark> | String | The base58 multihash of an existing block to get. |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```
��p�B\��    x�U�0��
ly�RX$hՂ�
�
RI��
�Pǂ8a*�)TEmI̈́W�uFG�u���4-�,*-(�� .o*�B����9��oޤ)8��~����g�<�����s�=��s�=wV�����2���rss�1�Fב��;t8]���9bx��>l���C��G��r�C��5�r�w����Y�������)$++;��\�ٴ��#��ƻ'���s��*>^:������Xx�g��3��N�K�w�Z�S�����g$���䌻���k��b1��8�
5��j}F��Z��������qW}>l�ṙ��s��]K�L�뚧Lq��|�����fq��L��a��?�

(...)
```

{% endtab %}
{% endtabs %}

## /block/put

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN        |

#### Request Body

| Name                                   | Type | Description                          |
| -------------------------------------- | ---- | ------------------------------------ |
| data<mark style="color:red;">\*</mark> | file | Any kind of file, or multiple files. |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Key": "QmU5NTBAyCNRGvJBbEo2HRdMAncuTDuvScmw3t6Lc1Cb9F",
    "Size": 2813452
}
```

{% endtab %}
{% endtabs %}

## /block/stat

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/block/stat`

Print information of a raw IPFS block.

#### Query Parameters

| Name                                  | Type   | Description                                        |
| ------------------------------------- | ------ | -------------------------------------------------- |
| arg<mark style="color:red;">\*</mark> | String | The base58 multihash of an existing block to stat. |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Key": "QmU5NTBAyCNRGvJBbEo2HRdMAncuTDuvScmw3t6Lc1Cb9F",
    "Size": 2813452
}
```

{% endtab %}
{% endtabs %}

## /object/stat

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/object/stat`

Get stats for the DAG node named by.

#### Query Parameters

| Name                                  | Type    | Description                                                        |
| ------------------------------------- | ------- | ------------------------------------------------------------------ |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Hash": "QmT7iBKicu3dVybBvxzsnffH3xHqV2Eocgr5WcV5AyCQmn",
    "NumLinks": 0,
    "BlockSize": 11,
    "LinksSize": 2,
    "DataSize": 9,
    "CumulativeSize": 11
}
```

{% endtab %}
{% endtabs %}

## /object/put

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN        |

#### Request Body

| Name                                   | Type | Description                                                |
| -------------------------------------- | ---- | ---------------------------------------------------------- |
| data<mark style="color:red;">\*</mark> | file | JSON file with format {"Data": "whatever\_your\_data\_is"} |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Hash": "QmT7iBKicu3dVybBvxzsnffH3xHqV2Eocgr5WcV5AyCQmn"
}
```

{% endtab %}
{% endtabs %}

## /object/get

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/object/get`

Get and serialize the DAG node named by.

#### Query Parameters

| Name                                  | Type   | Description                                                                |
| ------------------------------------- | ------ | -------------------------------------------------------------------------- |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Links": [],
    "Data": "\b\u0002\u0012\ufffd\ufffd\u0005%PDF-1.4\n%\ufffd\ufffd\ufffd\ufffd\n1 0 obj\n<</Creator (Mozilla/5.0 \\(X11; Linux x86_64\\) AppleWebKit/537.36 \\(KHTML, like Gecko\\) Chrome/86.0.4240.198 Safari/537.36)\n/Producer (Skia/PDF m86)\n/CreationDate (D:20201117135458+00'00')\n/ModDate (D:20201117135458+00'00')>>\nendobj\n3 0 obj\n<</ca 1\n/BM /Normal>>\nendobj\n6 0 obj\n<</CA 1\n/ca 1\n/LC 0\n/LJ 1\n/LW 1\n/ML 4\n/SA true\n/BM /Normal>>\nendobj\n7 0 obj\n<</ca .8471\n/BM /Normal>>\nendobj\n8 0 obj\n<</Type /XObject\n/Subtype /Form\n/Resources <</ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n/ExtGState <</G6 6 0 R>>>>\n/BBox [0 0 101 104]\n/Group <</Type /Group\n/S /Transparency\n/I true>>\n/Filter /FlateDecode\n/Length 289>> stream\nx\ufffdmR\ufffdn\ufffd0\f\ufffd\ufffd\u0015\ufffd\u000b\ufffd\u0015\ufffd\ufffd\ufffd\u0005\ufffd\ufffd\u000e\ufffd\u0000\ufffd\ufffd\ufffd\u0014H:\ufffd\ufffdCI\ufffd\ufffd\u0000\ufffd`\ufffd\ufffd\ufffd\ufffd$\ufffdW\ufffd\ufffdr\u000e\ufffd\ufffdH\u0012\ufffd(...)"
}
```

{% endtab %}
{% endtabs %}

## /object/data

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/object/data`

Output the raw bytes of an IPFS object.

#### Query Parameters

| Name                                  | Type   | Description                                                        |
| ------------------------------------- | ------ | ------------------------------------------------------------------ |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```
��%PDF-1.4
%����
1 0 obj
<</Creator (Mozilla/5.0 \(X11; Linux x86_64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/86.0.4240.198 Safari/537.36)
/Producer (Skia/PDF m86)
/CreationDate (D:20201117135458+00'00')
/ModDate (D:20201117135458+00'00')>>
endobj
3 0 obj
<</ca 1
/BM /Normal>>
(...)
```

{% endtab %}
{% endtabs %}

## /dag/resolve

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/dag/resolve`

Resolve ipld block.

#### Query Parameters

| Name                                  | Type   | Description          |
| ------------------------------------- | ------ | -------------------- |
| arg<mark style="color:red;">\*</mark> | String | The path to resolve. |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Cid": {
        "/": "bafyreidh4lnv2aaul7mujtovbjk3l2axylqgynq4knkmcrerjtxskizqvm"
    },
    "RemPath": ""
}
```

{% endtab %}
{% endtabs %}

## /dag/put

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN        |

#### Request Body

| Name                                          | Type | Description           |
| --------------------------------------------- | ---- | --------------------- |
| object data<mark style="color:red;">\*</mark> | file | JSON file by default. |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Cid": {
        "/": "bafyreidh4lnv2aaul7mujtovbjk3l2axylqgynq4knkmcrerjtxskizqvm"
    }
}
```

{% endtab %}
{% endtabs %}

## /dag/get

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/dag/get`

Get a dag node from ipfs.

#### Query Parameters

| Name                                  | Type   | Description        |
| ------------------------------------- | ------ | ------------------ |
| arg<mark style="color:red;">\*</mark> | String | The object to get. |

#### Headers

| Name                                            | Type   | Description                       |
| ----------------------------------------------- | ------ | --------------------------------- |
| Content-Type                                    | string | application/x-www-form-urlencoded |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "info": {
        "_id": "73ed9a82-1fd9-4b9c-9a8c-da4675a24fd",
    "protocolProfileBehavior": {}
}
```

{% endtab %}
{% endtabs %}

## /cat

<mark style="color:green;">`POST`</mark> `https://api.token-project.eu/ipfs/cat`

Show IPFS object data.

#### Query Parameters

| Name                                  | Type   | Description                                     |
| ------------------------------------- | ------ | ----------------------------------------------- |
| arg<mark style="color:red;">\*</mark> | 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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```
%PDF-1.4
%����
1 0 obj
<</Creator (Mozilla/5.0 \(X11; Linux x86_64\) AppleWebKit/537.36 \(KHTML, like Gecko\) Chrome/86.0.4240.198 Safari/537.36)
/Producer (Skia/PDF m86)
/CreationDate (D:20201117135458+00'00')
/ModDate (D:20201117135458+00'00')>>
endobj
3 0 obj
<</ca 1
/BM /Normal>>
endobj
6 0 obj
<</CA 1
/ca 1
/LC 0
/LJ 1
/LW 1
/ML 4
(...)
```

{% endtab %}
{% endtabs %}

## /version

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | string | Bearer: $TOKEN                    |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "Version": "0.4.23",
    "Commit": "5b1687d",
    "Repo": "7",
    "System": "amd64/linux",
    "Golang": "go1.12.16"
}
```

{% endtab %}
{% endtabs %}
