HTTP API

Generated on 2019-11-05, from go-ipfs v0.4.22.

When an IPFS node is running as a daemon, it exposes an HTTP API that allows you to control the node and run the same commands you can from the command line.

In many cases, using this API this is preferable to embedding IPFS directly in your program — it allows you to maintain peer connections that are longer lived than your app and you can keep a single IPFS node running instead of several if your app can be launched multiple times. In fact, the ipfs CLI commands use this API when operating in online mode.

Getting started

Alignment with CLI Commands

The HTTP API under /api/v0/ is an RPC-style API over HTTP, not a REST API.

Every command usable from the CLI is also available through the HTTP API. For example:

> ipfs swarm peers
/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ
/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx
/ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z

> curl http://127.0.0.1:5001/api/v0/swarm/peers
{
  "Strings": [
    "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
    "/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx",
    "/ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z",
  ]
}

Arguments

Arguments are added through the special query string key “arg”:

> curl "http://127.0.0.1:5001/api/v0/swarm/disconnect?arg=/ip4/54.93.113.247/tcp/48131/ipfs/QmUDS3nsBD1X4XK5Jo836fed7SErTyTuQzRqWaiQAyBYMP"
{
  "Strings": [
    "disconnect QmUDS3nsBD1X4XK5Jo836fed7SErTyTuQzRqWaiQAyBYMP success",
  ]
}

Note that it can be used multiple times to signify multiple arguments.

Flags

Flags are added through the query string. For example, the --encoding=json flag is the &encoding=json query parameter below:

> curl "http://127.0.0.1:5001/api/v0/object/get?arg=QmaaqrHyAQm7gALkRW8DcfGX3u8q9rWKnxEMmf7m9z515w&encoding=json"
{
  "Links": [
    {
      "Name": "index.html",
      "Hash": "QmYftndCvcEiuSZRX7njywX2AGSeHY2ASa7VryCq1mKwEw",
      "Size": 1700
    },
    {
      "Name": "static",
      "Hash": "QmdtWFiasJeh2ymW3TD2cLHYxn1ryTuWoNpwieFyJriGTS",
      "Size": 2428803
    }
  ],
  "Data": "CAE="
}

HTTP Status Codes

Status codes used at the RPC layer are simple:

In other words, 500 means that the function does exist, it just failed internally for some reason. To know that reason, you have to look at the “application layer” error (commands lib error).

HTTP Commands

/api/v0/add

Add a file or directory to ipfs.

Arguments

Request Body

Argument “path” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Bytes": "<int64>",
  "Hash": "<string>",
  "Name": "<string>",
  "Size": "<string>"
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/add?recursive=<value>&dereference-args=<value>&stdin-name=<value>&hidden=<value>&quiet=<value>&quieter=<value>&silent=<value>&progress=<value>&trickle=<value>&only-hash=<value>&wrap-with-directory=<value>&chunker=size-262144&pin=true&raw-leaves=<value>&nocopy=<value>&fscache=<value>&cid-version=<value>&hash=sha2-256&inline=<value>&inline-limit=32"


/api/v0/bitswap/ledger

Show the current ledger for a peer.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Exchanged": "<uint64>",
  "Peer": "<string>",
  "Recv": "<uint64>",
  "Sent": "<uint64>",
  "Value": "<float64>"
}

cURL Example

curl "http://localhost:5001/api/v0/bitswap/ledger?arg=<peer>"


/api/v0/bitswap/reprovide

Trigger reprovider.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/bitswap/reprovide"


/api/v0/bitswap/stat

Show some diagnostic information on the bitswap agent.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "BlocksReceived": "<uint64>",
  "BlocksSent": "<uint64>",
  "DataReceived": "<uint64>",
  "DataSent": "<uint64>",
  "DupBlksReceived": "<uint64>",
  "DupDataReceived": "<uint64>",
  "MessagesReceived": "<uint64>",
  "Peers": [
    "<string>"
  ],
  "ProvideBufLen": "<int>",
  "Wantlist": [
    {
      "/": "<cid-string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bitswap/stat?verbose=<value>&human=<value>"


/api/v0/bitswap/wantlist

Show blocks currently on the wantlist.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Keys": [
    {
      "/": "<cid-string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bitswap/wantlist?peer=<value>"


/api/v0/block/get

Get a raw IPFS block.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/block/get?arg=<key>"


/api/v0/block/put

Store input as an IPFS block.

Arguments

Request Body

Argument “data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Key": "<string>",
  "Size": "<int>"
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/block/put?format=<value>&mhtype=sha2-256&mhlen=-1&pin=false"


/api/v0/block/rm

Remove IPFS block(s).

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Error": "<string>",
  "Hash": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/block/rm?arg=<hash>&force=<value>&quiet=<value>"


/api/v0/block/stat

Print information of a raw IPFS block.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Key": "<string>",
  "Size": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/block/stat?arg=<key>"


/api/v0/bootstrap

Show or edit the list of bootstrap peers.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap"


/api/v0/bootstrap/add

Add peers to the bootstrap list.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap/add?arg=<peer>&default=<value>"


/api/v0/bootstrap/add/default

Add default peers to the bootstrap list.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap/add/default"


/api/v0/bootstrap/list

Show peers in the bootstrap list.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap/list"


/api/v0/bootstrap/rm

Remove peers from the bootstrap list.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap/rm?arg=<peer>&all=<value>"


/api/v0/bootstrap/rm/all

Remove all peers from the bootstrap list.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/bootstrap/rm/all"


/api/v0/cat

Show IPFS object data.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/cat?arg=<ipfs-path>&offset=<value>&length=<value>"


/api/v0/cid/base32

Convert CIDs to Base32 CID version 1.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "CidStr": "<string>",
  "ErrorMsg": "<string>",
  "Formatted": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/cid/base32?arg=<cid>"


/api/v0/cid/bases

List available multibase encodings.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

[
  {
    "Code": "<int>",
    "Name": "<string>"
  }
]

cURL Example

curl "http://localhost:5001/api/v0/cid/bases?prefix=<value>&numeric=<value>"


/api/v0/cid/codecs

List available CID codecs.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

[
  {
    "Code": "<int>",
    "Name": "<string>"
  }
]

cURL Example

curl "http://localhost:5001/api/v0/cid/codecs?numeric=<value>"


/api/v0/cid/format

Format and convert a CID in various useful ways.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "CidStr": "<string>",
  "ErrorMsg": "<string>",
  "Formatted": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/cid/format?arg=<cid>&f=%s&v=<value>&b=<value>"


/api/v0/cid/hashes

List available multihashes.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

[
  {
    "Code": "<int>",
    "Name": "<string>"
  }
]

cURL Example

curl "http://localhost:5001/api/v0/cid/hashes?numeric=<value>"


/api/v0/commands

List all available commands.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Name": "<string>",
  "Options": [
    {
      "Names": [
        "<string>"
      ]
    }
  ],
  "Subcommands": [
    {
      "Name": "<string>",
      "Options": [
        {
          "Names": [
            "<string>"
          ]
        }
      ],
      "Subcommands": [
        "..."
      ]
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/commands?flags=<value>"


/api/v0/config

Get and set ipfs config values.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Key": "<string>",
  "Value": "<object>"
}

cURL Example

curl "http://localhost:5001/api/v0/config?arg=<key>&arg=<value>&bool=<value>&json=<value>"


/api/v0/config/edit

Open the config file for editing in $EDITOR.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/config/edit"


/api/v0/config/profile/apply

Apply profile to config.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "NewCfg": {
    "<string>": "<object>"
  },
  "OldCfg": {
    "<string>": "<object>"
  }
}

cURL Example

curl "http://localhost:5001/api/v0/config/profile/apply?arg=<profile>&dry-run=<value>"


/api/v0/config/replace

Replace the config with .

Arguments

Request Body

Argument “file” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/config/replace"


/api/v0/config/show

Output config file contents.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "<string>": "<object>"
}

cURL Example

curl "http://localhost:5001/api/v0/config/show"


/api/v0/dag/get

Get a dag node from ipfs.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/dag/get?arg=<ref>"


/api/v0/dag/put

Add a dag node to ipfs.

Arguments

Request Body

Argument “object data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Cid": {
    "/": "<cid-string>"
  }
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/dag/put?format=cbor&input-enc=json&pin=<value>&hash=<value>"


/api/v0/dag/resolve

Resolve ipld block

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Cid": {
    "/": "<cid-string>"
  },
  "RemPath": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/dag/resolve?arg=<ref>"


/api/v0/dht/findpeer

Find the multiaddresses associated with a Peer ID.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/findpeer?arg=<peerID>&verbose=<value>"


/api/v0/dht/findprovs

Find peers that can provide a specific value, given a key.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/findprovs?arg=<key>&verbose=<value>&num-providers=20"


/api/v0/dht/get

Given a key, query the routing system for its best value.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/get?arg=<key>&verbose=<value>"


/api/v0/dht/provide

Announce to the network that you are providing given values.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/provide?arg=<key>&verbose=<value>&recursive=<value>"


/api/v0/dht/put

Write a key/value pair to the routing system.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/put?arg=<key>&arg=<value>&verbose=<value>"


/api/v0/dht/query

Find the closest Peer IDs to a given Peer ID by querying the DHT.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Extra": "<string>",
  "ID": "<peer-id>",
  "Responses": [
    {
      "Addrs": [
        "<multiaddr-string>"
      ],
      "ID": "peer-id"
    }
  ],
  "Type": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/dht/query?arg=<peerID>&verbose=<value>"


/api/v0/diag/cmds

List commands run on this IPFS node.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

[
  {
    "Active": "<bool>",
    "Args": [
      "<string>"
    ],
    "Command": "<string>",
    "EndTime": "<timestamp>",
    "ID": "<int>",
    "Options": {
      "<string>": "<object>"
    },
    "StartTime": "<timestamp>"
  }
]

cURL Example

curl "http://localhost:5001/api/v0/diag/cmds?verbose=<value>"


/api/v0/diag/cmds/clear

Clear inactive requests from the log.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/diag/cmds/clear"


/api/v0/diag/cmds/set-time

Set how long to keep inactive requests in the log.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/diag/cmds/set-time?arg=<time>"


/api/v0/diag/sys

Print system diagnostic information.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/diag/sys"


/api/v0/dns

Resolve DNS links.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Path": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/dns?arg=<domain-name>&recursive=true"


/api/v0/file/ls

List directory contents for Unix filesystem objects.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Arguments": {
    "<string>": "<string>"
  },
  "Objects": {
    "<string>": {
      "Hash": "<string>",
      "Links": [
        {
          "Hash": "<string>",
          "Name": "<string>",
          "Size": "<uint64>",
          "Type": "<string>"
        }
      ],
      "Size": "<uint64>",
      "Type": "<string>"
    }
  }
}

cURL Example

curl "http://localhost:5001/api/v0/file/ls?arg=<ipfs-path>"


/api/v0/files/chcid

Change the cid version or hash function of the root node of a given path.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/chcid?arg=<path>&cid-version=<value>&hash=<value>"


/api/v0/files/cp

Copy files into mfs.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/cp?arg=<source>&arg=<dest>"


/api/v0/files/flush

Flush a given path’s data to disk.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Cid": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/files/flush?arg=<path>"


/api/v0/files/ls

List directories in the local mutable namespace.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Entries": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<int64>",
      "Type": "<int>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/files/ls?arg=<path>&l=<value>&U=<value>"


/api/v0/files/mkdir

Make directories.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/mkdir?arg=<path>&parents=<value>&cid-version=<value>&hash=<value>"


/api/v0/files/mv

Move files.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/mv?arg=<source>&arg=<dest>"


/api/v0/files/read

Read a file in a given mfs.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/read?arg=<path>&offset=<value>&count=<value>"


/api/v0/files/rm

Remove a file.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/files/rm?arg=<path>&recursive=<value>&force=<value>"


/api/v0/files/stat

Display file status.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Blocks": "<int>",
  "CumulativeSize": "<uint64>",
  "Hash": "<string>",
  "Local": "<bool>",
  "Size": "<uint64>",
  "SizeLocal": "<uint64>",
  "Type": "<string>",
  "WithLocality": "<bool>"
}

cURL Example

curl "http://localhost:5001/api/v0/files/stat?arg=<path>&format=<hash> Size: <size> CumulativeSize: <cumulsize> ChildBlocks: <childs> Type: <type>&hash=<value>&size=<value>&with-local=<value>"


/api/v0/files/write

Write to a mutable file in a given filesystem.

Arguments

Request Body

Argument “data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/files/write?arg=<path>&offset=<value>&create=<value>&parents=<value>&truncate=<value>&count=<value>&raw-leaves=<value>&cid-version=<value>&hash=<value>"


/api/v0/filestore/dups

List blocks that are both in the filestore and standard block storage.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Err": "<string>",
  "Ref": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/filestore/dups"


/api/v0/filestore/ls

List objects in filestore.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "ErrorMsg": "<string>",
  "FilePath": "<string>",
  "Key": {
    "/": "<cid-string>"
  },
  "Offset": "<uint64>",
  "Size": "<uint64>",
  "Status": "<int32>"
}

cURL Example

curl "http://localhost:5001/api/v0/filestore/ls?arg=<obj>&file-order=<value>"


/api/v0/filestore/verify

Verify objects in filestore.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "ErrorMsg": "<string>",
  "FilePath": "<string>",
  "Key": {
    "/": "<cid-string>"
  },
  "Offset": "<uint64>",
  "Size": "<uint64>",
  "Status": "<int32>"
}

cURL Example

curl "http://localhost:5001/api/v0/filestore/verify?arg=<obj>&file-order=<value>"


/api/v0/get

Download IPFS objects.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/get?arg=<ipfs-path>&output=<value>&archive=<value>&compress=<value>&compression-level=<value>"


/api/v0/id

Show ipfs node id info.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Addresses": [
    "<string>"
  ],
  "AgentVersion": "<string>",
  "ID": "<string>",
  "ProtocolVersion": "<string>",
  "PublicKey": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/id?arg=<peerid>&format=<value>"


/api/v0/key/gen

Create a new keypair

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Id": "<string>",
  "Name": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/key/gen?arg=<name>&type=<value>&size=<value>"


/api/v0/key/list

List all local keypairs

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Keys": [
    {
      "Id": "<string>",
      "Name": "<string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/key/list?l=<value>"


/api/v0/key/rename

Rename a keypair

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Id": "<string>",
  "Now": "<string>",
  "Overwrite": "<bool>",
  "Was": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/key/rename?arg=<name>&arg=<newName>&force=<value>"


/api/v0/key/rm

Remove a keypair

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Keys": [
    {
      "Id": "<string>",
      "Name": "<string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/key/rm?arg=<name>&l=<value>"


/api/v0/log/level

Change the logging level.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Message": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/log/level?arg=<subsystem>&arg=<level>"


/api/v0/log/ls

List the logging subsystems.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/log/ls"


/api/v0/log/tail

Read the event log.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/log/tail"


/api/v0/ls

List directory contents for Unix filesystem objects.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Objects": [
    {
      "Hash": "<string>",
      "Links": [
        {
          "Hash": "<string>",
          "Name": "<string>",
          "Size": "<uint64>",
          "Target": "<string>",
          "Type": "<int32>"
        }
      ]
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/ls?arg=<ipfs-path>&headers=<value>&resolve-type=true&size=true&stream=<value>"


/api/v0/mount

Mounts IPFS to the filesystem (read-only).

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "FuseAllowOther": "<bool>",
  "IPFS": "<string>",
  "IPNS": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/mount?ipfs-path=<value>&ipns-path=<value>"


/api/v0/name/publish

Publish IPNS names.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Name": "<string>",
  "Value": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/name/publish?arg=<ipfs-path>&resolve=true&lifetime=24h&allow-offline=<value>&ttl=<value>&key=self&quieter=<value>"


/api/v0/name/pubsub/cancel

Cancel a name subscription

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Canceled": "<bool>"
}

cURL Example

curl "http://localhost:5001/api/v0/name/pubsub/cancel?arg=<name>"


/api/v0/name/pubsub/state

Query the state of IPNS pubsub

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Enabled": "<bool>"
}

cURL Example

curl "http://localhost:5001/api/v0/name/pubsub/state"


/api/v0/name/pubsub/subs

Show current name subscriptions

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/name/pubsub/subs"


/api/v0/name/resolve

Resolve IPNS names.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Path": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/name/resolve?arg=<name>&recursive=true&nocache=<value>&dht-record-count=<value>&dht-timeout=<value>&stream=<value>"


/api/v0/object/data

Output the raw bytes of an IPFS object.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/object/data?arg=<key>"


/api/v0/object/diff

Display the diff between two ipfs objects.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Changes": [
    {
      "After": {
        "/": "<cid-string>"
      },
      "Before": {
        "/": "<cid-string>"
      },
      "Path": "<string>",
      "Type": "<int>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/diff?arg=<obj_a>&arg=<obj_b>&verbose=<value>"


/api/v0/object/get

Get and serialize the DAG node named by .

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Data": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/get?arg=<key>&data-encoding=text"


Output the links pointed to by the specified object.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/links?arg=<key>&headers=<value>"


/api/v0/object/new

Create a new object from an ipfs template.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/new?arg=<template>"


Add a link to a given object.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/patch/add-link?arg=<root>&arg=<name>&arg=<ref>&create=<value>"


/api/v0/object/patch/append-data

Append data to the data segment of a dag node.

Arguments

Request Body

Argument “data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/object/patch/append-data?arg=<root>"


Remove a link from a given object.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/object/patch/rm-link?arg=<root>&arg=<name>"


/api/v0/object/patch/set-data

Set the data field of an IPFS object.

Arguments

Request Body

Argument “data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/object/patch/set-data?arg=<root>"


/api/v0/object/put

Store input as a DAG object, print its key.

Arguments

Request Body

Argument “data” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Hash": "<string>",
  "Links": [
    {
      "Hash": "<string>",
      "Name": "<string>",
      "Size": "<uint64>"
    }
  ]
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/object/put?inputenc=json&datafieldenc=text&pin=<value>&quiet=<value>"


/api/v0/object/stat

Get stats for the DAG node named by .

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "BlockSize": "<int>",
  "CumulativeSize": "<int>",
  "DataSize": "<int>",
  "Hash": "<string>",
  "LinksSize": "<int>",
  "NumLinks": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/object/stat?arg=<key>&human=<value>"


/api/v0/p2p/close

Stop listening for new connections to forward.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

"<int>"

cURL Example

curl "http://localhost:5001/api/v0/p2p/close?all=<value>&protocol=<value>&listen-address=<value>&target-address=<value>"


/api/v0/p2p/forward

Forward connections to libp2p service

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/p2p/forward?arg=<protocol>&arg=<listen-address>&arg=<target-address>&allow-custom-protocol=<value>"


/api/v0/p2p/listen

Create libp2p service

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/p2p/listen?arg=<protocol>&arg=<target-address>&allow-custom-protocol=<value>&report-peer-id=<value>"


/api/v0/p2p/ls

List active p2p listeners.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Listeners": [
    {
      "ListenAddress": "<string>",
      "Protocol": "<string>",
      "TargetAddress": "<string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/p2p/ls?headers=<value>"


/api/v0/p2p/stream/close

Close active p2p stream.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/p2p/stream/close?arg=<id>&all=<value>"


/api/v0/p2p/stream/ls

List active p2p streams.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Streams": [
    {
      "HandlerID": "<string>",
      "OriginAddress": "<string>",
      "Protocol": "<string>",
      "TargetAddress": "<string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/p2p/stream/ls?headers=<value>"


/api/v0/pin/add

Pin objects to local storage.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Pins": [
    "<string>"
  ],
  "Progress": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/pin/add?arg=<ipfs-path>&recursive=true&progress=<value>"


/api/v0/pin/ls

List objects pinned to local storage.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Keys": {
    "<string>": {
      "Type": "<string>"
    }
  }
}

cURL Example

curl "http://localhost:5001/api/v0/pin/ls?arg=<ipfs-path>&type=all&quiet=<value>"


/api/v0/pin/rm

Remove pinned objects from local storage.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Pins": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/pin/rm?arg=<ipfs-path>&recursive=true"


/api/v0/pin/update

Update a recursive pin

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Pins": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/pin/update?arg=<from-path>&arg=<to-path>&unpin=true"


/api/v0/pin/verify

Verify that recursive pins are complete.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Cid": "<string>",
  "PinStatus": {
    "BadNodes": [
      {
        "Cid": "<string>",
        "Err": "<string>"
      }
    ],
    "Ok": "<bool>"
  }
}

cURL Example

curl "http://localhost:5001/api/v0/pin/verify?verbose=<value>&quiet=<value>"


/api/v0/ping

Send echo request packets to IPFS hosts.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Success": "<bool>",
  "Text": "<string>",
  "Time": "<duration-ns>"
}

cURL Example

curl "http://localhost:5001/api/v0/ping?arg=<peer ID>&count=10"


/api/v0/pubsub/ls

List subscribed topics by name.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/pubsub/ls"


/api/v0/pubsub/peers

List peers we are currently pubsubbing with.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/pubsub/peers?arg=<topic>"


/api/v0/pubsub/pub

Publish a message to a given pubsub topic.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/pubsub/pub?arg=<topic>&arg=<data>"


/api/v0/pubsub/sub

Subscribe to messages on a given topic.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "data": "<base64-string>",
  "from": "<base64-string>",
  "seqno": "<base64-string>",
  "topicIDs": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/pubsub/sub?arg=<topic>&discover=<value>"


/api/v0/refs

List links (references) from an object.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Err": "<string>",
  "Ref": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/refs?arg=<ipfs-path>&format=<dst>&edges=<value>&unique=<value>&recursive=<value>&max-depth=-1"


/api/v0/refs/local

List all local references.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Err": "<string>",
  "Ref": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/refs/local"


/api/v0/repo/fsck

Remove repo lockfiles.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Message": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/repo/fsck"


/api/v0/repo/gc

Perform a garbage collection sweep on the repo.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Error": "<string>",
  "Key": {
    "/": "<cid-string>"
  }
}

cURL Example

curl "http://localhost:5001/api/v0/repo/gc?stream-errors=<value>&quiet=<value>"


/api/v0/repo/stat

Get stats for the currently used repo.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "NumObjects": "<uint64>",
  "RepoPath": "<string>",
  "SizeStat": {
    "RepoSize": "<uint64>",
    "StorageMax": "<uint64>"
  },
  "Version": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/repo/stat?size-only=<value>&human=<value>"


/api/v0/repo/verify

Verify all blocks in repo are not corrupted.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Msg": "<string>",
  "Progress": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/repo/verify"


/api/v0/repo/version

Show the repo version.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Version": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/repo/version?quiet=<value>"


/api/v0/resolve

Resolve the value of names to IPFS.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Path": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/resolve?arg=<name>&recursive=true&dht-record-count=<value>&dht-timeout=<value>"


/api/v0/shutdown

Shut down the ipfs daemon

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/shutdown"


/api/v0/stats/bitswap

Show some diagnostic information on the bitswap agent.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "BlocksReceived": "<uint64>",
  "BlocksSent": "<uint64>",
  "DataReceived": "<uint64>",
  "DataSent": "<uint64>",
  "DupBlksReceived": "<uint64>",
  "DupDataReceived": "<uint64>",
  "MessagesReceived": "<uint64>",
  "Peers": [
    "<string>"
  ],
  "ProvideBufLen": "<int>",
  "Wantlist": [
    {
      "/": "<cid-string>"
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/stats/bitswap?verbose=<value>&human=<value>"


/api/v0/stats/bw

Print ipfs bandwidth information.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "RateIn": "<float64>",
  "RateOut": "<float64>",
  "TotalIn": "<int64>",
  "TotalOut": "<int64>"
}

cURL Example

curl "http://localhost:5001/api/v0/stats/bw?peer=<value>&proto=<value>&poll=<value>&interval=1s"


/api/v0/stats/repo

Get stats for the currently used repo.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "NumObjects": "<uint64>",
  "RepoPath": "<string>",
  "SizeStat": {
    "RepoSize": "<uint64>",
    "StorageMax": "<uint64>"
  },
  "Version": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/stats/repo?size-only=<value>&human=<value>"


/api/v0/swarm/addrs

List known addresses. Useful for debugging.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Addrs": {
    "<string>": [
      "<string>"
    ]
  }
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/addrs"


/api/v0/swarm/addrs/listen

List interface listening addresses.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/addrs/listen"


/api/v0/swarm/addrs/local

List local addresses.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/addrs/local?id=<value>"


/api/v0/swarm/connect

Open connection to a given address.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/connect?arg=<address>"


/api/v0/swarm/disconnect

Close connection to a given address.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/disconnect?arg=<address>"


/api/v0/swarm/filters

Manipulate address filters.

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/filters"


/api/v0/swarm/filters/add

Add an address filter.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/filters/add?arg=<address>"


/api/v0/swarm/filters/rm

Remove an address filter.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Strings": [
    "<string>"
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/filters/rm?arg=<address>"


/api/v0/swarm/peers

List peers with open connections.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Peers": [
    {
      "Addr": "<string>",
      "Direction": "<int>",
      "Latency": "<string>",
      "Muxer": "<string>",
      "Peer": "<string>",
      "Streams": [
        {
          "Protocol": "<string>"
        }
      ]
    }
  ]
}

cURL Example

curl "http://localhost:5001/api/v0/swarm/peers?verbose=<value>&streams=<value>&latency=<value>&direction=<value>"


/api/v0/tar/add

Import a tar file into ipfs.

Arguments

Request Body

Argument “file” is of file type. This endpoint expects a file in the body of the request as ‘multipart/form-data’.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Bytes": "<int64>",
  "Hash": "<string>",
  "Name": "<string>",
  "Size": "<string>"
}

cURL Example

curl -F file=@myfile "http://localhost:5001/api/v0/tar/add"


/api/v0/tar/cat

Export a tar file from IPFS.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/tar/cat?arg=<path>"


/api/v0/update

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

This endpoint returns a `text/plain` response body.

cURL Example

curl "http://localhost:5001/api/v0/update?arg=<args>"


/api/v0/urlstore/add

Add URL via urlstore.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Key": "<string>",
  "Size": "<int>"
}

cURL Example

curl "http://localhost:5001/api/v0/urlstore/add?arg=<url>&trickle=<value>&pin=true"


/api/v0/version

Show ipfs version information.

Arguments

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Commit": "<string>",
  "Golang": "<string>",
  "Repo": "<string>",
  "System": "<string>",
  "Version": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/version?number=<value>&commit=<value>&repo=<value>&all=<value>"


/api/v0/version/deps

Shows information about dependencies used for build

Arguments

This endpoint takes no arguments.

Response

On success, the call to this endpoint will return with 200 and the following body:

{
  "Path": "<string>",
  "ReplacedBy": "<string>",
  "Sum": "<string>",
  "Version": "<string>"
}

cURL Example

curl "http://localhost:5001/api/v0/version/deps"