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

# Authentication

> How to authenticate with the Base44 Apps API

Apps API requests authenticate with a personal access token. Many endpoints also accept a [workspace API key](#use-a-workspace-api-key). Include a personal access token as a Bearer token in the `Authorization` header with every request:

```bash theme={null}
Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN
```

A personal access token acts as you, within the workspace it was created in. Each endpoint is authorized by your own permissions and the token's settings, so a request only succeeds for an app you and the token can reach and an action you are both allowed to take. Deploying an app, for example, requires permission to publish it and a token with **Full access**.

> [!WARNING]
>
> **Moving from an account API key?**
>
> Personal access tokens replace account API keys. Since **October 15, 2026**, you can't view or create an account API key, and existing keys are being switched off gradually. Replace the `api_key: YOUR_API_KEY` header with `Authorization: Bearer YOUR_PERSONAL_ACCESS_TOKEN`. A token sent in the `api_key` header is rejected. See [moving from account API keys](https://docs.base44.com/Workspaces/Personal-access-tokens.md#moving-from-account-api-keys).

## Get a personal access token

You create personal access tokens in the **Secrets** section of your workspace settings, and choose what each token can reach and do. See [Creating an access token](https://docs.base44.com/Workspaces/Personal-access-tokens.md#creating-an-access-token) for the steps.

> [!WARNING]
>
> Your personal access token acts as your Base44 account. Treat it like a password, don't share it, and don't commit it to version control.

## Use a workspace API key

On an Enterprise workspace, owners and admins can create [workspace API keys](https://docs.base44.com/Enterprise/workspace-secrets.md) in the **Secrets** section of the workspace settings. A workspace API key belongs to the workspace rather than to a person, so it keeps working when people leave. Send it in the `api_key` header, or as a Bearer token in the `Authorization` header:

```bash theme={null}
api_key: YOUR_WORKSPACE_API_KEY
```

What the key can call depends on the access it was created with:

* **Workspace-wide access:** The key acts as the workspace owner, across every app in the workspace. A **Read-only** key can call the same endpoints as a read-only personal access token. A **Full access** key can call every endpoint that accepts workspace API keys. See [Using workspace-wide access](https://docs.base44.com/Enterprise/workspace-secrets.md#using-workspace-wide-access).
* **Specific scopes:** The key can call only the endpoints its scopes cover, such as [Deploy an app](https://docs.base44.com/api-reference/deploy-an-app.md) with **Deploy apps**, or [Provision an app user](https://docs.base44.com/api-reference/provision-an-app-user.md) with **Provision app users**.

Not every endpoint accepts a workspace API key. Each endpoint's reference page lists the credentials it accepts.

## Example request

```curl theme={null}
curl --request POST \
  --url https://app.base44.com/api/apps/{app_id}/deploy \
  --header 'Authorization: Bearer <personal_access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "checkpoint_id": "6886b8d390dc7e2f4a2c91b3"
  }'
```

> [!NOTE]
>
> The request body is optional. Omit `checkpoint_id` to deploy the app's current version.


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