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

# Create checkpoint

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Saves the app's current state as a new [checkpoint](/developers/references/app-management/get-started/overview#checkpoints), so you can return to it later with [Restore checkpoint](/api-reference/restore-checkpoint).

A checkpoint records the app's committed code, its entity schemas and its backend functions. Nothing is saved when the app has not changed since its most recent checkpoint: you get a 200 with `created` set to `false` and `reason` set to `no_changes`, and the checkpoint you already have stands.

<Warning>That check is not a guarantee against duplicates. Two requests in flight at the same time can both find nothing changed and both save a checkpoint, so retrying before the first request has finished can leave you with two. Send one at a time, and read [List checkpoints](/api-reference/list-checkpoints) rather than retrying blind.</Warning>

Saving a checkpoint starts its preview build in the background. Poll [List checkpoints](/api-reference/list-checkpoints) and watch the new checkpoint's `preview_status` to see when the preview is ready.

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json post /api/apps/{app_id}/app-checkpoints
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - ApiKeyAuth: []
paths:
  /api/apps/{app_id}/app-checkpoints:
    post:
      summary: Create checkpoint
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Saves the app's current state as a new
        [checkpoint](/developers/references/app-management/get-started/overview#checkpoints),
        so you can return to it later with [Restore
        checkpoint](/api-reference/restore-checkpoint).


        A checkpoint records the app's committed code, its entity schemas and
        its backend functions. Nothing is saved when the app has not changed
        since its most recent checkpoint: you get a 200 with `created` set to
        `false` and `reason` set to `no_changes`, and the checkpoint you already
        have stands.


        <Warning>That check is not a guarantee against duplicates. Two requests
        in flight at the same time can both find nothing changed and both save a
        checkpoint, so retrying before the first request has finished can leave
        you with two. Send one at a time, and read [List
        checkpoints](/api-reference/list-checkpoints) rather than retrying
        blind.</Warning>


        Saving a checkpoint starts its preview build in the background. Poll
        [List checkpoints](/api-reference/list-checkpoints) and watch the new
        checkpoint's `preview_status` to see when the preview is ready.


        <Note>This endpoint accepts a personal API key. Workspace API keys are
        not authorized for it and are rejected with a 403.</Note>
      operationId: create_checkpoint_api_api_apps__app_id__app_checkpoints_post
      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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateManualCheckpointRequest'
              default:
                name: Manual Edits
      responses:
        '200':
          description: Whether a checkpoint was saved, and its ID if one was.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManualCheckpointResponse'
        '400':
          description: The app has no committed code yet, so there is nothing to save.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app, or you used a workspace API key.
            These endpoints take a personal API key.
        '404':
          description: App not found.
        '409':
          description: >-
            The app's main line is protected, so its state can't be changed
            directly.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateManualCheckpointRequest:
      properties:
        name:
          type: string
          title: Name
          description: >-
            Name for the checkpoint, shown in the app's version history. Send a
            non-empty value: an empty string is not stored, and the checkpoint
            is named after the app's most recent chat message instead.
          default: Manual Edits
          example: Before pricing rework
      type: object
      title: CreateManualCheckpointRequest
    ManualCheckpointResponse:
      properties:
        created:
          type: boolean
          title: Created
          description: >-
            Whether a checkpoint was saved. `false` means the app has not
            changed since its most recent checkpoint, so there was nothing to
            save.
          example: true
        checkpoint_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Checkpoint Id
          description: >-
            ID of the checkpoint that was saved, or `null` when `created` is
            `false`. Pass it as `checkpoint_id` to [Deploy an
            app](/api-reference/deploy-an-app) to publish this version, or as
            `checkpoint_id` to [Restore
            checkpoint](/api-reference/restore-checkpoint) to return to it.
          example: 6886b8d390dc7e2f4a2c91b3
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: >-
            Why nothing was saved. `no_changes` is the only value, and it is
            `null` when `created` is `true`.
          example: no_changes
      type: object
      required:
        - created
      title: ManualCheckpointResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````