Skip to main content
GET
/
api
/
v1
/
files
/
roots
List file roots
curl --request GET \
  --url http://localhost:3000/api/v1/files/roots \
  --header 'Authorization: Bearer <token>'
{
  "ok": true,
  "data": null
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Configure via the apiKeys field in polpo.json or the POLPO_API_KEY environment variable.

Response

200 - application/json

Array of root directories with name, path, and description

ok
boolean
required
data
unknown