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

# Deployment

> Preview, publish, and unpublish an app with the Base44 Apps API

> [!NOTE]
>
> The Apps API is in beta. Its endpoints and responses may change.

These endpoints control where an app is served. Look at your work in progress with a preview, publish it to production, read the public URL, and take it offline again.

## Preview and published

An app has two addresses, and they show different things.

* [Get preview URL](https://docs.base44.com/api-reference/get-preview-url.md) serves the app as it currently stands in the app editor, including changes that haven't been published. The preview runs in a sandbox that shuts down when it goes unused, so the first call after a quiet period takes noticeably longer.
* [Get published URL](https://docs.base44.com/api-reference/get-published-url.md) returns the public address of the live app. An app that has never been published, or that was unpublished, has none.

## Publishing

[Deploy an app](https://docs.base44.com/api-reference/deploy-an-app.md) publishes the app's current version by default. To publish a saved version instead, pass its ID. Find versions with [List checkpoints](https://docs.base44.com/api-reference/list-checkpoints.md). To publish a site you built yourself, use [Deploy a prebuilt site](https://docs.base44.com/api-reference/deploy-a-prebuilt-site.md).

[Unpublish app](https://docs.base44.com/api-reference/unpublish-app.md) takes the app offline. Visitors see an offline notice, and the app's data, settings, and custom domains stay as they are.

## Endpoints

* [Get preview URL](https://docs.base44.com/api-reference/get-preview-url.md): Get a URL that serves the app as it stands in the app editor.
* [Get published URL](https://docs.base44.com/api-reference/get-published-url.md): Get the public URL of a published app.
* [Deploy an app](https://docs.base44.com/api-reference/deploy-an-app.md): Publish the app's current version or a saved one.
* [Unpublish app](https://docs.base44.com/api-reference/unpublish-app.md): Take a published app offline.
* [Deploy a prebuilt site](https://docs.base44.com/api-reference/deploy-a-prebuilt-site.md): Publish a site you built yourself from a `.tar.gz` archive.


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