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

# Live state and usage

> Power state plus live CPU, memory, disk and network usage from the host. Usually under 2 seconds.

Scope: `servers:read`.



## OpenAPI

````yaml /api/portal/openapi.json get /v1/services/{id}/live
openapi: 3.0.1
info:
  title: FlashRDP Server API
  version: 1.0.0
  description: >-
    Manage your FlashRDP servers with an API token created in the Billing Portal
    (Settings → Developer).
servers:
  - url: https://new.flashrdp.com
security:
  - bearerAuth: []
tags:
  - name: Servers
  - name: Power
  - name: Monitoring
  - name: Reinstall
  - name: Reverse DNS
  - name: Backups
  - name: SSH keys
paths:
  /v1/services/{id}/live:
    get:
      tags:
        - Monitoring
      summary: Live state and usage
      description: >-
        Power state plus live CPU, memory, disk and network usage from the host.
        Usually under 2 seconds.


        Scope: `servers:read`.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: >-
            The server's number, as in its Billing Portal URL
            (`new.flashrdp.com/servers/1234` → `1234`).
          example: '1234'
      responses:
        '200':
          description: Live
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Live'
                required:
                  - data
        '401':
          $ref: '#/components/responses/E401'
        '403':
          $ref: '#/components/responses/E403'
        '404':
          $ref: '#/components/responses/E404'
        '409':
          $ref: '#/components/responses/E409'
        '429':
          $ref: '#/components/responses/E429'
        '503':
          $ref: '#/components/responses/E503'
      security:
        - bearerAuth: []
components:
  schemas:
    Live:
      type: object
      properties:
        state:
          type: string
          enum:
            - running
            - stopped
            - busy
            - installing
            - suspended
            - unknown
        os:
          type: string
          enum:
            - windows
            - other
        osName:
          type: string
          nullable: true
        osIcon:
          type: string
          nullable: true
        setup:
          type: string
          enum:
            - queued
            - installing
            - booting
            - finalizing
          description: While a new server or a reinstall is being set up; null otherwise.
          nullable: true
        specs:
          allOf:
            - $ref: '#/components/schemas/Specs'
          nullable: true
        cpuPercent:
          type: number
          nullable: true
        memory:
          type: object
          properties:
            usedBytes:
              type: number
            totalBytes:
              type: number
          nullable: true
        disks:
          type: array
          items:
            type: object
            properties:
              mount:
                type: string
              usedBytes:
                type: number
              totalBytes:
                type: number
        trafficPeriod:
          type: object
          properties:
            start:
              type: string
            end:
              type: string
          nullable: true
        installedAt:
          type: string
          format: date-time
          nullable: true
        network:
          type: object
          properties:
            ipv4:
              type: array
              items:
                type: object
                properties:
                  address:
                    type: string
                  netmask:
                    type: string
                    nullable: true
                  gateway:
                    type: string
                    nullable: true
            ipv6:
              type: array
              items:
                type: object
                properties:
                  subnet:
                    type: string
                  cidr:
                    type: integer
                    nullable: true
                  gateway:
                    type: string
                    nullable: true
          nullable: true
        counters:
          type: object
          properties:
            rxBytes:
              type: number
              description: Bytes received since boot.
            txBytes:
              type: number
              description: Bytes sent since boot.
          nullable: true
        degraded:
          type: boolean
          description: >-
            Present and true when the host didn't report live usage in time:
            usage is omitted and the state may be `unknown`. Retry shortly.
      description: >-
        Live state and usage from the host. Usage fields are null while the
        server is off or its guest agent isn't running.
    Specs:
      type: object
      properties:
        cpuCores:
          type: integer
          nullable: true
        memoryMb:
          type: integer
          nullable: true
        storageGb:
          type: integer
          nullable: true
        trafficGb:
          type: integer
          description: Monthly traffic allowance in GB; 0 = unmetered.
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
              description: Safe to show to a person.
          required:
            - code
            - message
      required:
        - error
  responses:
    E401:
      description: Missing, invalid, expired or revoked token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: AUTHENTICATION_FAILED
              message: Invalid or expired API token.
    E403:
      description: >-
        The token lacks the scope, or the endpoint is not open to tokens (on a
        closed endpoint this comes before the token is checked). Backup
        endpoints also answer 403 when backups are not switched on for the
        server.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: ACTION_NOT_ALLOWED
              message: This API token needs the servers:power scope.
    E404:
      description: No such server on your account (`NOT_FOUND` or `SERVICE_NOT_FOUND`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: SERVICE_NOT_FOUND
              message: Service not found.
    E409:
      description: >-
        The server isn't in a state for this: not active, not set up yet
        (`SERVICE_NOT_PROVISIONED`), suspended, another action running or
        already in that state; or the same Idempotency-Key is still being
        processed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: ACTION_IN_PROGRESS
              message: Another action is still running on this server.
    E429:
      description: 'Too many requests: the token''s rate limit or this action''s own limit.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMITED
              message: Too many requests with this API token (120 a minute).
    E503:
      description: A backend is temporarily unavailable. Retry later.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UPSTREAM_UNAVAILABLE
              message: This service is temporarily unavailable. Please try again.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer frdp_pat_…`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.