> ## 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 App Management API

All App Management API requests require authentication using a workspace API key. Each endpoint requires a specific scope on the key, described under [Scopes](#scopes).

<Info>
  The App Management API is available on **Business and Enterprise plans**. Workspace API keys are managed in the **[Secrets](/Enterprise/workspace-secrets)** section of your workspace settings.
</Info>

## Required role

Only workspace **owners** and **admins** can create and manage workspace API keys. Regular workspace members do not have access to the Secrets page in workspace settings.

To learn about workspace roles, see [Managing your workspace members](/Account-and-billing/Managing-your-workspaces#managing-your-workspace-members).

## Workspace API key

Include your workspace API key in the `api_key` header with all requests:

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

### Scopes

Each endpoint requires a specific scope on the key. Grant a key only the scopes it needs.

| Scope         | Allows                | App access |
| ------------- | --------------------- | ---------- |
| `apps:deploy` | Deploy (publish) apps | Required   |

When a scope requires app access, the key must be granted access to the apps it can act on, either all apps in your workspace or a selected set. A key can only act on apps within its grant.

### Example request

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

<Note>
  The request body is optional. Omit `checkpoint_id` to deploy the most recent saved version of the app.
</Note>

### Get your workspace API key

1. Click your workspace name at the top left and click **Settings**.
2. Click **Secrets** in the sidebar.
3. Click **+ Create API Key**.
4. Enter a name for the key and an optional description.
5. Grant the scopes the key needs. For a scope that requires app access, choose whether the key can access all apps or only a selected set.
6. Click **Create Key**, then copy the key immediately and store it securely.

For the full guide on creating and managing workspace API keys, see [Managing workspace secrets](/Enterprise/workspace-secrets).

<Warning>
  Copy your API key immediately after creating it. You won't be able to see it again. Treat it like a password and do not share it or commit it to version control.
</Warning>
