Skip to main content
GET
/
v1
/
apps
/
{appId}
/
files
cURL
curl --request GET \
  --url https://api.camposcloud.com/v1/apps/{appId}/files \
  --header 'Authorization: Bearer <token>'
{
  "isDirectory": true,
  "content": "<string>",
  "files": [
    {
      "name": "emojis.json",
      "isDirectory": false,
      "isFile": true,
      "path": "/Database/emojis.json",
      "size": 3330,
      "createdAt": "2025-07-19T16:02:44.426Z",
      "modifiedAt": "2025-07-19T16:02:44.426Z"
    }
  ],
  "prevPath": null,
  "currentPath": "/Database"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

appId
string
required

ID of the application to retrieve files from

Query Parameters

path
string

The path within the application to retrieve files from. If not provided, retrieves files from the root directory.

Response

Files retrieved successfully

isDirectory
boolean

Indicates if the current path is a directory

Example:

true

content
string | null

Content of the current file. If the current path is a directory, this will be null.

files
object[] | null

List of files and directories in the current path, if the current path is a directory or null if it is a file

prevPath
string

The previous path in the file system. If the current path is the root directory, this will be null.

Example:

null

currentPath
string

The current path in the file system

Example:

"/Database"