Skip to main content
GET
/
v1
/
apps
/
{id}
/
realtime
Real-Time Application Logs
curl --request GET \
  --url https://api.vertracloud.app/v1/apps/{id}/realtime
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
id
string
required
The application ID to retrieve real-time logs. If the application belongs to a workspace, include the workspace ID in the format appId-workspaceId.

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: logs for log messages, system for connection-related messages (e.g., errors or connection closure).
  • Data: A string containing an ISO 8601 timestamp followed by the log message or system message.
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

code
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.
message
string
A descriptive message providing additional details about the error.
{
  "code": "APP_NOT_FOUND"
}