Real-Time Application Logs
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{id}/realtimeimport requests
url = "https://api.vertracloud.app/v1/apps/{id}/realtime"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{id}/realtime', 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}/realtime",
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}/realtime"
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}/realtime")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/realtime")
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_bodyevent: logs
data: 2026-03-20T19:58:00Z [INFO] Application iniciada com sucesso
event: logs
data: 2026-03-20T19:58:01Z [DEBUG] Connected to database
event: logs
data: 2026-03-20T19:58:02Z [ERROR] Failed to process request
event: system
data: 2026-03-20T19:58:03Z Connection Closed
Applications
Real-Time Application Logs
Retrieves real-time logs for an application by its ID, streamed as a text event stream.
GET
/
v1
/
apps
/
{id}
/
realtime
Real-Time Application Logs
curl --request GET \
--url https://api.vertracloud.app/v1/apps/{id}/realtimeimport requests
url = "https://api.vertracloud.app/v1/apps/{id}/realtime"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/apps/{id}/realtime', 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}/realtime",
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}/realtime"
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}/realtime")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/apps/{id}/realtime")
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_bodyevent: logs
data: 2026-03-20T19:58:00Z [INFO] Application iniciada com sucesso
event: logs
data: 2026-03-20T19:58:01Z [DEBUG] Connected to database
event: logs
data: 2026-03-20T19:58:02Z [ERROR] Failed to process request
event: system
data: 2026-03-20T19:58:03Z Connection Closed
string
required
The application ID to retrieve real-time logs. 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. Required for workspace members acting on an application they don’t own.
Response
The response is streamed as a text event stream (text/event-stream). Each log entry is sent as an event with the following format:
- Event Type:
logsfor log messages,systemfor stream and platform notices (e.g.,install_note:started),heartbeatfor keep-alive events with no content. - Data: Plain text (not JSON). A
logsevent carries one or more lines separated by newlines, each an ISO 8601 timestamp followed by the log message.
install_note:started system event.
The installation runs outside the plan’s memory limit and the application starts as soon as it finishes.
event: logs
data: 2026-03-20T19:58:00Z [INFO] Application iniciada com sucesso
event: logs
data: 2026-03-20T19:58:01Z [DEBUG] Connected to database
event: logs
data: 2026-03-20T19:58:02Z [ERROR] Failed to process request
event: system
data: 2026-03-20T19:58:03Z Connection Closed
Error Responses
string
The error code indicating the reason for the failure. Possible values:
UNAUTHORIZED: The user is not authenticated or does not have sufficient permissions.APP_NOT_FOUND: The specified application does not exist.FORBIDDEN: The user does not have permission to access the application.
string
A descriptive message providing additional details about the error.
{
"code": "APP_NOT_FOUND"
}
{
"code": "FORBIDDEN"
}