> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Application Status

> Retrieves the current status and resource usage of an application by its ID.

<ParamField path="id" type="string" required>
  The application ID to retrieve the status. If the application belongs to a workspace, include the workspace ID in the format `appId-workspaceId`.
</ParamField>

### Response

<ResponseField name="response" type="object">
  The application status and resource usage details.

  <Expandable title="Toggle object">
    <ResponseField name="id" type="string">
      The application ID.
    </ResponseField>

    <ResponseField name="cpu" type="string">
      CPU usage percentage (e.g., `25.5%`).
    </ResponseField>

    <ResponseField name="ram" type="string">
      RAM usage (e.g., `512 MB`).
    </ResponseField>

    <ResponseField name="storage" type="string">
      Storage usage (e.g., `1024 MB`).
    </ResponseField>

    <ResponseField name="status" type="string">
      The application status (e.g., `running`).
    </ResponseField>

    <ResponseField name="running" type="boolean">
      Indicates if the application is running.
    </ResponseField>

    <ResponseField name="network" type="object">
      Detalhes de uso de rede.

      <Expandable title="Toggle object">
        <ResponseField name="total" type="string">
          Total network traffic.
        </ResponseField>

        <ResponseField name="now" type="string">
          Current network traffic.
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="uptime" type="number">
      The application uptime in seconds.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "response": {
      "id": "app-abc123def456",
      "cpu": "25.50%",
      "ram": "512.00 MB",
      "storage": "1024.00 MB",
      "status": "running",
      "running": true,
      "network": {
        "total": "569.90KB ↓ 36.41KB ↑",
        "now": "18.78KB ↑ 1.20KB ↓"
      },
      "uptime": 3600
    }
  }
  ```
</ResponseExample>

### Error Responses

<ResponseField name="code" type="string">
  The error code indicating the reason for the failure. Possible values:

  * `UNAUTHORIZED`: The user is not authenticated or does not have sufficient permissions.
  * `APP_NOT_FOUND`: The specified application does not exist.
  * `FORBIDDEN`: The user does not have permission to access the application.
  * `INTERNAL_SERVER_ERROR`: Ocorreu um erro ao recuperar o status.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message providing additional details about the error.
</ResponseField>

<ResponseExample>
  ```json Error Response (404) theme={null}
  {
    "code": "APP_NOT_FOUND"
  }
  ```

  ```json Error Response (403) theme={null}
  {
    "code": "FORBIDDEN"
  }
  ```

  ```json Error Response (500) theme={null}
  {
    "code": "INTERNAL_SERVER_ERROR"
  }
  ```
</ResponseExample>
