Get an application
One application, and its current state.
GET/api/v1/apps/{id}
Returns one application. Works with a viewer or an admin token.
Authorizations
bearerAuthbearerAn API token created in Settings → API tokens. Tokens start with qsr_.
Path parameters
idstringrequiredIdentifier of the application, as returned by GET /api/v1/apps.
curl -X GET 'https://admin.your-domain.com/api/v1/apps/3f9c2a7e' \
-H 'Authorization: Bearer $TOKEN'Responses
200
200The application.
idstringrequiredIdentifier of the application.
namestringrequiredsubdomainstringrequired@ for an application served on the root domain.
hoststringrequiredThe host the application is served on.
deploy_type"image" | "git" | "compose"requiredimage_refstringThe image, for image applications.
git_urlstringThe repository, for git applications.
git_branchstringThe branch, for git applications.
portintegerrequiredPort the application listens on inside its container.
statestringrequiredrunning, stopped, error (crashed, or only part of a stack is up), deploying or not deployed. Other Docker states, such as restarting, are passed through as they are.
uptimestringHow long the application has been running, such as 12m, 5h 20m or 3d 4h. Only set while it is running.
{
"id": "3f9c2a7e",
"name": "Blog",
"subdomain": "blog",
"host": "blog.your-domain.com",
"deploy_type": "git",
"image_ref": "nginx:latest",
"git_url": "https://github.com/me/blog.git",
"git_branch": "main",
"port": 3000,
"state": "running",
"uptime": "3d 4h"
}401
401The token is missing or invalid.
errorstringrequiredWhat went wrong.
{
"error": "invalid token"
}404
404No application has this identifier.
errorstringrequiredWhat went wrong.
{
"error": "application not found"
}