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

# Get Postgres Restore Window

> Return the earliest and latest times a database can be restored to.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/managed-services/{service_id}/postgres/restore-window
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/managed-services/{service_id}/postgres/restore-window:
    get:
      tags:
        - managed-services
      summary: Get Postgres Restore Window
      description: Return the earliest and latest times a database can be restored to.
      operationId: managed_services_get_postgres_restore_window
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: service_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Service Id
        - name: env
          in: query
          required: false
          schema:
            enum:
              - dev
              - prod
            type: string
            default: dev
            title: Env
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostgresRestoreWindowResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    PostgresRestoreWindowResponse:
      properties:
        env:
          type: string
          enum:
            - dev
            - prod
          title: Env
        earliest:
          type: string
          format: date-time
          title: Earliest
          description: The earliest time `to` can name.
        latest:
          type: string
          format: date-time
          title: Latest
          description: 'Now: the latest time `to` can name.'
      type: object
      required:
        - env
        - earliest
        - latest
      title: PostgresRestoreWindowResponse
      description: How far back a managed Postgres environment can be restored.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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