Skip to main content
Real-time Logs
curl --request GET \
  --url https://api.squarecloud.app/v2/apps/{app_id}/realtime \
  --header 'Authorization: <authorization>'
{
  "status": "<string>"
}
The API Playground is disabled for this endpoint due to the nature of SSE connections, which are not universally supported by browsers.
Authorization
string
required
The API key for your account. You can find this in your account settings.

Parameters

app_id
string
required
The ID of the application whose logs you want to monitor. This ID can be found in the URL of your application’s management panel.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
In case of failure, the response will include a code field along with the error status, detailing the cause. If the request is successful, the response will be a text/event-stream stream containing the application’s logs in real-time.

Server-Sent Events (SSE) Structure

The response is a continuous stream in text/event-stream format. Each message in the stream is composed of an event field and a data field.

Event Types

  • system: Indicates system-related events, such as connection status (REALTIME_CONNECTING, REALTIME_CONNECTED) or keep-alive pings (PING).
  • logs: Contains a single log line generated by your application.