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

# Apps API Overview

> Get started with the Base44 Apps API

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

The Apps API lets you do from your own code what you'd otherwise do to a single app in the Base44 online app editor. Every endpoint acts on one app, identified by its ID in the URL path.

Use the Apps API to:

* Create an app and build it by sending prompts to the AI, from your own interface rather than the Base44 online app editor.
* Follow a build as it runs, and answer questions the AI asks while it works.
* Deploy an app to production from a CI or CD pipeline, and read the URL it is served on.
* Publish an app's current version, or a specific earlier saved version.
* Download an app's source code as a zip archive.
* Read and change an app's data model, and count the records and users it holds.
* Author an app's workflows, run them on demand, and read their run history.
* Connect a custom domain, send email from it, and keep old links working.
* Connect a GitHub repository and sync code in both directions.
* Run a security scan and read its findings.
* Query the analytics events an app tracks.
* Generate social content and run Google Ads campaigns that promote an app.

The API reference is grouped by area. Start with the area you need.

## API reference areas

* [Apps](https://docs.base44.com/developers/references/apps-api/sections/apps.md): Create, change, and delete an app, and manage its branding, secrets, ownership, template listings, SSO, and MCP server.
* [Code and sandbox](https://docs.base44.com/developers/references/apps-api/sections/code-and-sandbox.md): Read and change an app's code, run commands in its sandbox, and manage its backend functions.
* [Chat](https://docs.base44.com/developers/references/apps-api/sections/chat.md): Build an app by sending messages to its AI chat, and answer the questions the AI pauses on.
* [Socket sessions](https://docs.base44.com/developers/references/apps-api/sections/socket-sessions.md): Open, change, and end the sessions that stream a build's chat to a browser.
* [Checkpoints](https://docs.base44.com/developers/references/apps-api/sections/checkpoints.md): Save, list, and restore versions of an app.
* [Deployment](https://docs.base44.com/developers/references/apps-api/sections/deployment.md): Preview, publish, and unpublish an app.
* [Entities](https://docs.base44.com/developers/references/apps-api/sections/entities.md): Read and change an app's data model and its records.
* [Users](https://docs.base44.com/developers/references/apps-api/sections/users.md): Manage an app's users, invitations, access requests, and shared groups.
* [Workflows](https://docs.base44.com/developers/references/apps-api/sections/workflows.md): Author an app's workflows, run them, and read their run history.
* [Agents](https://docs.base44.com/developers/references/apps-api/sections/agents.md): Read an app's agent conversations, memories, and usage.
* [Domains and redirects](https://docs.base44.com/developers/references/apps-api/sections/domains.md): Connect a custom domain, send email from it, and redirect old URLs.
* [GitHub](https://docs.base44.com/developers/references/apps-api/sections/github.md): Connect an app to a GitHub repository and sync code in both directions.
* [Base code](https://docs.base44.com/developers/references/apps-api/sections/imported-app-sessions.md): Keep an imported app's main sandbox up to date, run coding tasks on its repository, and track its branches and pull requests.
* [Integrations](https://docs.base44.com/developers/references/apps-api/sections/integrations.md): Connect an app to third-party accounts through connectors.
* [Security](https://docs.base44.com/developers/references/apps-api/sections/security.md): Scan an app for security problems and act on the findings.
* [Testing](https://docs.base44.com/developers/references/apps-api/sections/testing.md): Create browser tests for an app, run them, and read the reports.
* [SEO](https://docs.base44.com/developers/references/apps-api/sections/seo.md): Read and change how an app appears to search engines and AI crawlers.
* [Analytics](https://docs.base44.com/developers/references/apps-api/sections/analytics.md): Query the events an app tracks.
* [Payments](https://docs.base44.com/developers/references/apps-api/sections/payments.md): Configure Stripe and Wix Payments, and read payment analytics.
* [Marketing Agent](https://docs.base44.com/developers/references/apps-api/sections/marketing-agent.md): Set up the Marketing Agent for an app and talk to it.
* [Virality and social content](https://docs.base44.com/developers/references/apps-api/sections/virality.md): Generate social content that promotes an app, then schedule and publish it.
* [Google Ads](https://docs.base44.com/developers/references/apps-api/sections/google-ads.md): Run Google Ads campaigns for an app.

Three areas are a single endpoint or two, so they link straight to the reference:

* [Embed Tokens](https://docs.base44.com/api-reference/create-an-embed-sign-in-token.md): Create a single-use sign-in token that opens an app signed in as a provisioned user.
* [Backend Functions](https://docs.base44.com/api-reference/list-backend-functions.md): List an app's deployed backend functions with their code. [Delete a backend function](https://docs.base44.com/api-reference/delete-a-backend-function.md) removes one.
* [Deploy Dist](https://docs.base44.com/api-reference/deploy-a-prebuilt-site.md): Publish a site you built yourself from a `.tar.gz` archive.

For how these areas relate, see [Apps API concepts](https://docs.base44.com/developers/references/apps-api/get-started/concepts.md). For limits, see [Rate limits](https://docs.base44.com/developers/references/apps-api/get-started/rate-limits.md).

> [!NOTE]
>
> Every app the API creates belongs to a workspace and its builds draw on that workspace's credits.

## Prerequisites

* A personal access token. See [Authentication](https://docs.base44.com/developers/references/apps-api/get-started/authentication.md) to get one.
* An app you can manage, and permission to take the action you are calling.

## App ID

Endpoints that act on a specific app include the app's ID in the URL path as `app_id`.

**To get your app ID:**

1. Go to [app.base44.com](https://app.base44.com/).
2. Open your app in the app editor.
3. Copy the app ID from the editor URL: `"https://app.base44.com/apps/<app_id>/editor"`.

## Use the CLI

The [Base44 CLI](https://docs.base44.com/developers/references/cli/get-started/overview.md) can find and call any Apps API endpoint for you. It uses the account you're logged in to the CLI with, and it fills in the app ID from `--app-id` or your linked project.

For example, find the operation that lists workflow runs, then call it for the failed ones:

```bash theme={null}
base44 api search "failed workflow runs"
base44 api fetch GET "/api/apps/{app_id}/workflows/runs?status=failed"
```

The CLI's `api` commands are:

* [`api search`](https://docs.base44.com/developers/references/cli/commands/api-search): Search API operations by keyword.
* [`api catalog`](https://docs.base44.com/developers/references/cli/commands/api-catalog): Browse operations by area.
* [`api grep`](https://docs.base44.com/developers/references/cli/commands/api-grep): Search the API spec with a regular expression.
* [`api fetch`](https://docs.base44.com/developers/references/cli/commands/api-fetch): Call an operation and return the response.


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