Skip to main content
Use this endpoint to pull the latest stdout and stderr output from your application’s runtime process. The response contains the most recent log lines as a single string. This is particularly useful for quick debugging sessions, automated alerting pipelines, or integrating Virtus Cloud logs into your own observability tooling.
This endpoint is rate-limited to 1 request every 5 seconds per application. If you need continuous log streaming, poll on a 5-second interval rather than making back-to-back requests.

Endpoint

GET https://api.virtuscloud.app/v2/apps/{app_id}/logs

Path parameters

app_id
string
required
The unique ID of the application. You can find this in the URL of your application’s dashboard page on Virtus Cloud.

Request headers

Authorization
string
required
Your Virtus Cloud API key. See Authentication for details.

Response

status
string
Indicates whether the request succeeded. Returns "success" on a successful call.
response
object
The log data object.

Code example

curl --request GET \
  --url https://api.virtuscloud.app/v2/apps/<app_id>/logs \
  --header "Authorization: <your_api_key>"

Response example

{
  "status": "success",
  "response": {
    "logs": "Working!"
  }
}