List running containers for an app
GET
/apps/{slug}/services
const url = 'https://your-server.example/api/apps/example/services';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/services \ --cookie session=<session>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”Service status.
Media typeapplication/json
Array<object>
Aggregated status for one compose service across all replicas.
object
service
string
state
Worst-case state across replicas (running, restarting, stopped, …).
string
health
string
replicas
Number of running containers for this service.
integer
scalable
Whether the service is eligible for replica scaling.
boolean
scale_reason
When scalable is false, explains why (e.g. ‘stateful image (postgres)’).
string
Example
[ { "state": "running", "health": "healthy" }]