Skip to content
piecemeal
Esc
↑↓navigate↵open⌘Jpreview

Get version and network status

GET/system
Authorization
AuthorizationBearer token · headerrequired

An API key, pm_....

or
piecemeal_sessionAPI key · cookierequired
Responses
200

OK

allowedRootsstring[] | nullrequired
dataDirstringrequired
downloadDirstringrequired
listenAddrsstring[] | nullrequired
natpmpMapping

Present when NAT-PMP port forwarding is configured.

Show properties
errorstring
gatewaystringrequired
lifetimeinteger<int64>required

Seconds the gateway keeps the mapping.

portinteger<int64>required

The forwarded port, 0 until mapped.

renewedAtstring<date-time>required
portinteger<int64>required

The port peers connect to.

startedAtstring<date-time>required
versionstringrequired
watchDirstring
401

Unauthorized

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
403

Forbidden

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
500

Internal Server Error

detailstring

A human-readable explanation specific to this occurrence of the problem.

errorsErrorDetail[] | null

Optional list of individual error details

Show properties
Array of ErrorDetail
locationstring

Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'

messagestring

Error message text

valueany

The value at the given location

instancestring<uri>

A URI reference that identifies the specific occurrence of the problem.

statusinteger<int64>

HTTP status code

titlestring

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

typestring<uri>

A URI reference to human-readable documentation for the error.

default: "about:blank"
Request
curl -X GET 'https://piecemeal.example.com/api/piecemeal/v1/system' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "allowedRoots": [
    "string"
  ],
  "dataDir": "string",
  "downloadDir": "string",
  "listenAddrs": [
    "string"
  ],
  "natpmp": {
    "error": "string",
    "gateway": "string",
    "lifetime": 0,
    "port": 0,
    "renewedAt": "2019-08-24T14:15:22Z"
  },
  "port": 0,
  "startedAt": "2019-08-24T14:15:22Z",
  "version": "string",
  "watchDir": "string"
}

Was this page helpful?