Get Application File Content
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{id}/files/contentimport requests
url = "https://api.vertracloud.app/v1/apps/{id}/files/content"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{id}/files/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{id}/files/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{id}/files/content"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/apps/{id}/files/content")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/files/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"type": "base64",
"data": "SGVsbG8gV29ybGQ=",
"size": 11,
"last_modified": "2026-03-14T19:58:00Z"
}
}
File Manager
Get Application File Content
Retrieves the content of a specific file for an application by its ID.
GET
/
v1
/
apps
/
{id}
/
files
/
content
Get Application File Content
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{id}/files/contentimport requests
url = "https://api.vertracloud.app/v1/apps/{id}/files/content"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{id}/files/content', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vertracloud.app/v1/apps/{id}/files/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/apps/{id}/files/content"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vertracloud.app/v1/apps/{id}/files/content")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/files/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"response": {
"type": "base64",
"data": "SGVsbG8gV29ybGQ=",
"size": 11,
"last_modified": "2026-03-14T19:58:00Z"
}
}
string
required
The ID of the application to retrieve the file content from. If the application belongs to a workspace, pass its ID in the
workspace_id query parameter.string
If the application belongs to a workspace, the workspace’s ID. Members with an Owner, Admin or Developer role can use the file manager on a workspace app they don’t own; without this, only the app’s own owner can.
string
required
The path to the file whose content is to be retrieved.
Response
object
The content of the requested file.
Show Toggle object
Show Toggle object
string
Always
"base64".string
The file content, encoded as standard base64 (with padding).
number
The file size in bytes. This is the real byte size of the file, not the length of the base64 string.
string
The file’s mtime. Send this value back in the body of
PUT /files as last_modified to detect edit conflicts.{
"response": {
"type": "base64",
"data": "SGVsbG8gV29ybGQ=",
"size": 11,
"last_modified": "2026-03-14T19:58:00Z"
}
}
Error Responses
string
The error code indicating the reason for failure. Possible values:
UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.FORBIDDEN/ACCESS_DENIED: 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.MISSING_PATH: The path query parameter was not provided.FILE_NOT_FOUND: The requested file does not exist.FILE_TOO_LARGE: The file exceeds the 10 MB limit for content retrieval.FILE_CONTENT_ERROR: Failed to retrieve the file content.
string
A descriptive message providing additional details about the error.
{
"code": "UNAUTHORIZED"
}
{
"code": "FILE_NOT_FOUND"
}
{
"code": "FILE_TOO_LARGE",
"message": "File exceeds the 10 MB limit for content retrieval"
}
{
"code": "MISSING_PATH",
"message": "Path query parameter is required"
}