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

# Get data version history status

> Returns whether the app has version history for its entity data, and how far back it goes.

Base44 records every change to an entity's records, and marks points you can go back to as [checkpoints](/api-reference/list-data-checkpoints). Read `state` before calling the other version history endpoints, since they're refused unless it's `enabled`.

Version history comes with the Elite plan and above. Elite keeps 7 days of history, and higher plans keep 28.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app, or a workspace API key, which acts as the workspace owner. Read-only keys work too.</Note>

Runs as your user in this app, so the app's access rules decide which records you can read or change.



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/entities/versions/info
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/entities/versions/info:
    get:
      summary: Get data version history status
      description: >-
        Returns whether the app has version history for its entity data, and how
        far back it goes.


        Base44 records every change to an entity's records, and marks points you
        can go back to as [checkpoints](/api-reference/list-data-checkpoints).
        Read `state` before calling the other version history endpoints, since
        they're refused unless it's `enabled`.


        Version history comes with the Elite plan and above. Elite keeps 7 days
        of history, and higher plans keep 28.


        <Note>This endpoint accepts a personal API key belonging to a user with
        editor access to the app, or a workspace API key, which acts as the
        workspace owner. Read-only keys work too.</Note>


        Runs as your user in this app, so the app's access rules decide which
        records you can read or change.
      operationId: >-
        get_app_version_history_info_api_apps__app_id__entities_versions_info_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app.
            title: App Id
          description: ID of the app.
          example: 6820f3a4e7b91d003c45a1f2
      responses:
        '200':
          description: The app's version history status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionHistoryInfo'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: You don't have editor access to this app.
        '404':
          description: App not found.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 150 requests per minute. See
            [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    VersionHistoryInfo:
      properties:
        state:
          type: string
          enum:
            - enabled
            - needs_upgrade
            - unavailable
          title: State
          description: >-
            Whether the app has version history. `enabled` means Base44 is
            keeping history and you can list checkpoints and restore from them.
            `needs_upgrade` means the app's workspace plan doesn't include
            version history. `unavailable` means version history doesn't cover
            this app, for example because its data is stored in the workspace's
            own database.
          example: enabled
        retention_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retention Days
          description: >-
            How many days of history Base44 keeps, or `null` unless `state` is
            `enabled`.
          example: 28
        history_available_since:
          anyOf:
            - type: string
            - type: 'null'
          title: History Available Since
          description: >-
            The earliest moment you can restore to, as a UTC timestamp in ISO
            8601 format with a `Z` suffix, when history was paused while the
            workspace was on a plan without it. It is `null` unless `state` is
            `enabled`, and also when `retention_days` alone limits how far back
            you can go.
          example: '2026-06-02T08:00:00Z'
      type: object
      required:
        - state
      title: VersionHistoryInfo
      description: Whether version history is on for an app, and how far back it goes.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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