GET
/
v1
/
apps
/
{id}
/
files
Get Application Files
curl --request GET \
  --url https://api.vertracloud.app/v1/apps/{id}/files \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "response": [
    {
      "name": "index.js",
      "path": "/index.js",
      "is_directory": false,
      "size": 1024,
      "created_at": "2025-08-14T19:58:00Z",
      "updated_at": "2025-08-14T19:58:00Z"
    },
    {
      "name": "src",
      "path": "/src",
      "is_directory": true,
      "size": 0,
      "created_at": "2025-08-14T19:58:00Z",
      "updated_at": "2025-08-14T19:58:00Z"
    }
  ]
}
id
string
required
The ID of the application to retrieve files from. If the application belongs to an organization, include the organization ID in the format appId-orgId.
path
string
The relative path to list files from. Defaults to the root directory (/).

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
array
An array of file or folder objects.
{
  "status": "success",
  "response": [
    {
      "name": "index.js",
      "path": "/index.js",
      "is_directory": false,
      "size": 1024,
      "created_at": "2025-08-14T19:58:00Z",
      "updated_at": "2025-08-14T19:58:00Z"
    },
    {
      "name": "src",
      "path": "/src",
      "is_directory": true,
      "size": 0,
      "created_at": "2025-08-14T19:58:00Z",
      "updated_at": "2025-08-14T19:58:00Z"
    }
  ]
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application does not exist.
  • PLAN_RESTRICTED_FEATURE: The user’s plan does not support file manager access.
  • INTERNAL_SERVER_ERROR: Failed to retrieve the file list.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}