WebSocket stream of container logs
GET
/apps/{slug}/logs
const url = 'https://your-server.example/api/apps/example/logs';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-server.example/api/apps/example/logs \ --cookie session=<session>Upgrades to a WebSocket. Server pushes JSON frames per stdout/stderr line for the app’s services. See the WebSocket reference.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
Responses
Section titled “Responses”Switching protocols.