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

# Quote the restore of a recently deleted VM

> The price to restore a recently deleted VM: one billing period at the locked price, the daily backup add-on if it was active, and any unpaid invoices of the old server. Requires the `vms:read` scope.



## OpenAPI

````yaml https://api.vmarea.com/api/public/v1/openapi.json get /api/public/v1/vms/{id}/restore-quote
openapi: 3.1.0
info:
  title: VMArea Public API
  version: 1.0.0
  description: >-
    The VMArea Public API lets you provision and manage VMs, firewalls, SSH
    keys, backups, and webhooks programmatically. Authenticate every request
    with an API token (`x-api-key` header). API access is in early access:
    tokens are not yet self-service in every account; contact hello@vmarea.com
    to request access. Tokens carry coarse scopes (e.g. `vms:write`); endpoints
    reject calls that lack the scope they require.
  contact:
    name: VMArea Support
    url: https://vmarea.com/support
servers:
  - url: https://api.vmarea.com
    description: Production
security:
  - ApiKey: []
paths:
  /api/public/v1/vms/{id}/restore-quote:
    get:
      tags:
        - VMs
      summary: Quote the restore of a recently deleted VM
      description: >-
        The price to restore a recently deleted VM: one billing period at the
        locked price, the daily backup add-on if it was active, and any unpaid
        invoices of the old server. Requires the `vms:read` scope.
      operationId: getVmRestoreQuote
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    type: object
                    properties:
                      currency:
                        type: string
                      periodAmount:
                        type: string
                      addOnAmount:
                        type: string
                      unpaidInvoices:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            documentNumber:
                              type: string
                              nullable: true
                            amount:
                              type: string
                          required:
                            - id
                            - documentNumber
                            - amount
                          additionalProperties: false
                      unpaidTotal:
                        type: string
                      total:
                        type: string
                      balance:
                        type: string
                      shortfall:
                        type: string
                      restorableUntil:
                        type: string
                        format: date-time
                    required:
                      - currency
                      - periodAmount
                      - addOnAmount
                      - unpaidInvoices
                      - unpaidTotal
                      - total
                      - balance
                      - shortfall
                      - restorableUntil
                    additionalProperties: false
                required:
                  - success
                  - data
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                  error:
                    type: string
                  message:
                    type: string
                  details:
                    type: object
                    additionalProperties: {}
                  data:
                    type: object
                    additionalProperties: {}
                required:
                  - success
                  - error
                additionalProperties: false
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        Long-lived API token (early access; contact hello@vmarea.com). Tokens
        are scope-restricted; this spec lists the scope each endpoint requires.

````

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