Skip to content
Quasar Documentation

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

  • bearerAuthbearer

    An API token created in Settings → API tokens. Tokens start with qsr_.

Path parameters

  • idstringrequired

    Identifier of the application, as returned by GET /api/v1/apps.

Request
curl -X GET 'https://admin.your-domain.com/api/v1/apps/3f9c2a7e' \
  -H 'Authorization: Bearer $TOKEN'

Responses

200

200The application.

  • idstringrequired

    Identifier of the application.

  • namestringrequired

  • subdomainstringrequired

    @ for an application served on the root domain.

  • hoststringrequired

    The host the application is served on.

  • deploy_type"image" | "git" | "compose"required

  • image_refstring

    The image, for image applications.

  • git_urlstring

    The repository, for git applications.

  • git_branchstring

    The branch, for git applications.

  • portintegerrequired

    Port the application listens on inside its container.

  • statestringrequired

    running, 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.

  • uptimestring

    How long the application has been running, such as 12m, 5h 20m or 3d 4h. Only set while it is running.

Response
{
  "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.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "invalid token"
}

404

404No application has this identifier.

  • errorstringrequired

    What went wrong.

Response
{
  "error": "application not found"
}