> ## 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.

# Power state of several servers

> Power state for several servers in one call. Only active servers are answered; ids past the first 12 are ignored; no `ids` gives an empty object.

Scope: `servers:read`.



## OpenAPI

````yaml /api/portal/openapi.json get /v1/services/power
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/power:
    get:
      tags:
        - Servers
      summary: Power state of several servers
      description: >-
        Power state for several servers in one call. Only active servers are
        answered; ids past the first 12 are ignored; no `ids` gives an empty
        object.


        Scope: `servers:read`.
      parameters:
        - name: ids
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated server numbers (up to 12).
          example: 1234,1235
      responses:
        '200':
          description: State by server id
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties:
                      type: string
                      enum:
                        - running
                        - stopped
                        - busy
                        - installing
                        - suspended
                        - unknown
                required:
                  - data
              example:
                data:
                  '1234': running
        '401':
          $ref: '#/components/responses/E401'
        '403':
          $ref: '#/components/responses/E403'
        '429':
          $ref: '#/components/responses/E429'
        '503':
          $ref: '#/components/responses/E503'
      security:
        - bearerAuth: []
components:
  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.
    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.
  schemas:
    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
  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.