GET
/
v1
/
apps
/
{id}
/
files
/
content
Get Application File Content
curl --request GET \
  --url https://api.vertracloud.app/v1/apps/{id}/files/content \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "response": {
    "data": [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]
  }
}
id
string
required
The ID of the application to retrieve the file content from. If the application belongs to an organization, include the organization ID in the format appId-orgId.
path
string
required
The path to the file whose content is to be retrieved.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
object
The content of the requested file.
{
  "status": "success",
  "response": {
    "data": [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100]
  }
}

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 (except for vertracloud.config).
  • MISSING_PATH: The path query parameter was not provided.
  • FILE_CONTENT_ERROR: Failed to retrieve the file content.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}