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

# Compliance API for security partners

> Get started with the Base44 Compliance API

The Base44 Compliance API enables a secure way for 3rd-party security partners to view the security configuration of a Base44 workspace. Base44 Workspace owners and admins can share access with a security partner to check their workspace against security policies and industry standards, collect evidence for audits and compliance reviews, and track how the security configuration changes over time.

With the Compliance API you can review:

* Who can reach the workspace, their roles, and how they sign in.
* The configuration of its apps, domains, and API keys.
* How app data is secured, including access rules, secrets, and backend functions.
* 3rd-party services and agents connected to the workspace.
* Results of Base44's security scans.

To review activity, such as who signed in or what data has changed, use the [Audit Logs API](https://docs.base44.com/developers/references/audit-logs-api/get-started/overview.md).

> [!NOTE]
>
> The Compliance API is available for **Enterprise** workspaces only. Learn more about [Base44 for enterprises](https://docs.base44.com/Enterprise/Base44-for-enterprises.md).

## Security partners

A security partner is a company that a business hires to monitor its security and compliance. Workspace owners and admins can share access with a security partner, so it can review their Base44 workspace.

To become a verified security partner, you must register with Base44. Once you register, you can review any workspace that shares access with you.

### How registration works

To become a verified security partner, you must register with Base44 by generating a key pair and providing the public key:

* Private key: Referred to as the signing key, is used to sign authentication tokens that you will use when calling Compliance API.
* Public key: Used by Base44 to identify and verify your signatures.

Learn more about how to [register as a partner](https://docs.base44.com/developers/references/compliance-api/get-started/register-as-a-partner.md).

## Workspaces

A [workspace](https://docs.base44.com/documentation/account-and-billing/about-workspaces.md) is a shared Base44 environment where teams build and manage apps together. Every request to the Compliance API reads 1 workspace, identified by its workspace ID.

To find the workspace ID, see [Workspace ID](https://docs.base44.com/developers/references/compliance-api/get-started/authentication.md#workspace-id).

## Authentication

Access to the Compliance API relies on 3 credentials. The following table displays the required credentials and who is responsible for providing each one:

| Credential | Purpose | Provided by |
| - | - | - |
| Workspace ID | Identifies the workspace to read. | A workspace owner or admin |
| Workspace API key | Authorizes access to that workspace, limited to the key's scopes. | A workspace owner or admin |
| Signed authentication token | Identifies you as the security partner. It's a [JSON Web Token (JWT)](https://jwt.io/introduction) that you sign with your signing key for each request and send as a bearer token. | You |

To learn how to get each credential and choose the workspace API key's scopes, see [Authentication](https://docs.base44.com/developers/references/compliance-api/get-started/authentication.md).

## Security considerations

The Compliance API is read-only and can't modify workspace data or settings. To protect workspace data, it also never returns:

* Content, such as conversations, entity records, enum values, and file contents.
* Secrets and credentials, such as secret values, API keys, OAuth tokens, encryption keys, and invitation tokens.
* Code and configuration, such as backend function source, agent instructions, and custom integration headers.
* Personal data, such as the identities of app users.
* Base44 internals, such as internal URLs and employee identities.

## Audit logging

Base44 records every read in the workspace's audit log as a [`workspace.compliance_api.read`](https://docs.base44.com/developers/references/audit-logs-api/get-started/event-types) event. Workspace owners and admins can use it to see which security partner read their workspace. Learn more about [seeing your partner's scans](https://docs.base44.com/Enterprise/compliance-api.md#seeing-your-partners-scans).

Base44 records at most 1 event per API key, security partner, method, and outcome each hour. Treat the audit log as a record of reads, not a complete count of them.

## Get started

**To get started:**

1. [Register as a partner](https://docs.base44.com/developers/references/compliance-api/get-started/register-as-a-partner.md): Register once with Base44 and get a `client_id`.
2. [Get workspace credentials](https://docs.base44.com/developers/references/compliance-api/get-started/authentication.md#credentials): Retrieve the workspace ID and a workspace API key from a workspace owner or admin. They can follow [Connecting a security partner with the Compliance API](https://docs.base44.com/Enterprise/compliance-api.md).
3. [Sign an authentication token](https://docs.base44.com/developers/references/compliance-api/get-started/authentication.md#sign-an-authentication-token): Sign a new authentication token for each request.
4. [Send a request](https://docs.base44.com/developers/references/compliance-api/get-started/authentication.md#send-a-request): Call any Compliance API method with the workspace ID, workspace API key, and signed authentication token.


## Related topics

- [Connecting a security partner with the Compliance API](https://docs.base44.com/Enterprise/compliance-api.md)
- [List security findings](https://docs.base44.com/api-reference/compliance/list-security-findings.md)
- [Base44 security: An overview](https://docs.base44.com/Setting-up-your-app/security-overview.md)
- [List entities](https://docs.base44.com/api-reference/compliance/list-entities.md)
- [List workspace API keys](https://docs.base44.com/api-reference/compliance/list-workspace-api-keys.md)


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