GET
/
v1
/
apps
/
{id}
/
logs
/
realtime
Application Realtime Logs
curl --request GET \
  --url https://api.vertracloud.app/v1/apps/{id}/logs/realtime \
  --header 'Authorization: Bearer <token>'
event: logs
data: 2025-08-14T19:58:00Z [INFO] Application started successfully

event: logs
data: 2025-08-14T19:58:01Z [DEBUG] Connected to database

event: logs
data: 2025-08-14T19:58:02Z [ERROR] Failed to process request

event: system
data: 2025-08-14T19:58:03Z Connection Closed
id
string
required
The ID of the application to retrieve realtime logs for. If the application belongs to an organization, include the organization ID in the format appId-orgId.

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 a timestamp in ISO 8601 format followed by the log message or system message.
event: logs
data: 2025-08-14T19:58:00Z [INFO] Application started successfully

event: logs
data: 2025-08-14T19:58:01Z [DEBUG] Connected to database

event: logs
data: 2025-08-14T19:58:02Z [ERROR] Failed to process request

event: system
data: 2025-08-14T19:58:03Z Connection Closed

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.
  • APP_NOT_FOUND: The specified application does not exist.
  • FORBIDDEN: The user does not have permission to access the application.
{
  "status": "error",
  "code": "APP_NOT_FOUND"
}