{
  "openapi": "3.1.0",
  "info": {
    "title": "Base44 Compliance API",
    "description": "\nRead-only API for security partners to review the security configuration of a Base44 workspace.\n\nThe API reports what exists in a workspace and how it's configured. It doesn't report activity. To review activity, use the Audit Logs API.\n\nThe Compliance API is available for Enterprise workspaces only. To get started, see the [overview](/developers/references/compliance-api/get-started/overview).\n",
    "version": "1.0.0"
  },
  "paths": {
    "/{workspace_id}/agents": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List agents",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of AI agents in a [workspace](/documentation/account-and-billing/about-workspaces), including [Superagents](/Getting-Started/superagent).\n\nUse this method to view, for each agent:\n\n- Whether it's a [Superagent](/Getting-Started/superagent) or belongs to an [app](/Building-your-app/AI-agents-for-apps).\n- Whether people can use it without signing in.\n- Which AI model it uses.\n- The channels people can use to reach it.\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_agents__workspace_id__agents_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceAgent_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/api-keys": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List workspace API keys",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of the [API keys](/Enterprise/workspace-secrets) in a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view each key's name, permissions, status, and when it was last used. Key values are [never returned](/developers/references/compliance-api/get-started/overview#security-considerations). The key you use to call the API appears in the list, so you can check its scopes.\n\nA workspace can have up to 10 API keys.\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_api_keys__workspace_id__api_keys_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceApiKey_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/apps": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List apps",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of apps in a [workspace](/documentation/account-and-billing/about-workspaces), including deleted and blocked apps. Their resources, such as [secrets](/Enterprise/workspace-secrets), can still exist.\n\nUse this method to view, for each app:\n\n- Who owns and created it.\n- Whether it's published and who can open it.\n- How people [sign in](/Setting-up-your-app/Managing-login-and-registration) to it.\n- Security settings, such as [embedding rules](/Enterprise/Enterprise-SSO-and-app-visibility#controlling-app-embedding) and browser feature restrictions.\n- Whether it has [secrets](/Enterprise/workspace-secrets), [backend functions](/developers/backend/resources/backend-functions/overview), or an active [agent](/Building-your-app/AI-agents-for-apps).\n- Where its data is stored, such as its region or the workspace's own MongoDB database.\n- The [GitHub repository](/Integrations/github-connector) connected to it.\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_apps__workspace_id__apps_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceApp_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/domains": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List domains",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of [custom domains](/Setting-up-your-app/Setting-up-your-custom-domain) in a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view, for each domain:\n\n- Whether it's a [serving domain](/Setting-up-your-app/Setting-up-your-custom-domain) or an [email domain](/Setting-up-your-app/Sending-emails-from-a-custom-domain).\n- Which app it's connected to.\n- Whether it's verified and enabled.\n- For email domains, whether sending is suspended.\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_domains__workspace_id__domains_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_Annotated_Union_ComplianceServingDomain__ComplianceEmailDomain___FieldInfo_annotation_NoneType__required_True__discriminator__kind____"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/entities": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List entities",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of [entities](/developers/backend/resources/entities/overview) in a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view, for each entity:\n\n- The names and types of its fields.\n- Which record operations [row-level security](/developers/backend/resources/entities/security) restricts.\n\nThe data stored in entities is [never returned](/developers/references/compliance-api/get-started/overview#security-considerations).\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_entities__workspace_id__entities_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceEntity_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/functions": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List backend functions",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of the deployed [backend functions](/developers/backend/resources/backend-functions/overview) and [actors](/developers/backend/resources/actors/overview) in a [workspace](/documentation/account-and-billing/about-workspaces). Use this method to view, for each function:\n\n- The URL the function is called at.\n- The [schedule](/developers/backend/resources/backend-functions/automations) or [entity](/developers/backend/resources/entities/overview) change that triggers it, if any.\n- The [connectors](/Integrations/Connectors) that app users must connect before the function can run.\n\nFunction code is [never returned](/developers/references/compliance-api/get-started/overview#security-considerations).\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_functions__workspace_id__functions_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceFunction_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/integrations": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List integrations",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of the [integrations](/Integrations/Using-integrations) in a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view:\n\n- Services an app connects to, and how many app users linked their own accounts.\n- [Connectors](/Enterprise/workspace-connectors) set up for the whole workspace.\n- [Custom integrations](/documentation/integrations/using-custom-integrations) built for the workspace.\n- [Model Context Protocol](/documentation/account-and-billing/setting-up-a-custom-mcp) (MCP) servers connected to an app.\n- Integrations that members set up for their own builder sessions.\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_integrations__workspace_id__integrations_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_Annotated_Union_ComplianceAppConnection__ComplianceWorkspaceConnector__ComplianceCustomIntegration__ComplianceMcpConnection__ComplianceMemberMcpConnection__ComplianceUserWorkspaceConnection___FieldInfo_annotation_NoneType__required_True__discriminator__kind____"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/secrets": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List secrets",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of the [secrets](/Enterprise/workspace-secrets) in a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view each secret's name, scope, creation time, and last update time. Secret values are [never returned](/developers/references/compliance-api/get-started/overview#security-considerations).\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_secrets__workspace_id__secrets_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceSecret_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "Get workspace configuration",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nReturns the security configuration of a [workspace](/documentation/account-and-billing/about-workspaces).\n\nUse this method to view:\n\n- The workspace owner and member count.\n- Security settings, such as [single sign-on](/Enterprise/SSO-for-enterprise-workspace) (SSO), [multi-factor authentication](/Enterprise/SSO-for-enterprise-workspace#requiring-two-factor-authentication) (MFA), and the [IP allowlist](/Enterprise/IP-allowlist).\n- The rules for [publishing apps](/Enterprise/Enterprise-SSO-and-app-visibility#setting-publishing-permissions).\n\nTo call this method, your API key must include the `compliance:inventory:read` [scope](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "get_workspace__workspace_id__get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComplianceWorkspace"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/members": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List workspace members",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nLists the members of a [workspace](/documentation/account-and-billing/about-workspaces), including invited users and users whose access is blocked.\n\nFor each member, you can view their [role](/documentation/account-and-billing/about-workspaces) and their security settings, such as whether [multi-factor authentication](/Enterprise/SSO-for-enterprise-workspace#requiring-two-factor-authentication) is turned on.\n\nMember email addresses are returned, which is why this method has its own scope. See [security considerations](/developers/references/compliance-api/get-started/overview#security-considerations).\n\nTo call this method, your API key must include the `compliance:members:read` and `compliance:inventory:read` scopes.",
        "operationId": "list_members__workspace_id__members_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceMember_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/{workspace_id}/security-findings": {
      "get": {
        "tags": [
          "compliance"
        ],
        "summary": "List security findings",
        "description": "<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>\n\nRetrieves a list of security issues for the apps in a [workspace](/documentation/account-and-billing/about-workspaces). Issues come from the Base44 [security scan](/Setting-up-your-app/running-a-security-scan) and from connected 3rd-party scanners, such as Wiz.\n\nUse this method to view, for each issue:\n\n- What the scan found, and how severe it is.\n- Where the issue is, such as an entity, a file, or a package.\n- Whether it's open, resolved, or dismissed.\n\nThe list only includes issues from the latest successful scan for each app. It's not a history of previous scans.\n\n<Note>The list doesn't capture issues from parts of a scan that failed or didn't run. Check the [security scan coverage](/developers/references/audit-logs-api/get-started/security-scan-findings#interpret-coverage) in the Audit Logs API before you report an app as clean.</Note>\n\nTo call this method, your API key must include the `compliance:inventory:read` and `compliance:findings:read` [scopes](/developers/references/compliance-api/get-started/authentication#scopes).",
        "operationId": "list_security_findings__workspace_id__security_findings_get",
        "parameters": [
          {
            "name": "workspace_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
              "title": "Workspace Id"
            },
            "description": "Workspace ID. Learn more about how to [retrieve your workspace ID](/developers/references/compliance-api/get-started/authentication#workspace-id).",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
              "title": "Cursor"
            },
            "description": "Cursor for the next page. Pass the `next_cursor` value from the previous response back unchanged. Don't send `limit` with it, because the cursor already carries the limit. Cursors are valid for 24 hours, and a cursor from a different workspace isn't valid. Sending `limit` with a cursor, or an invalid cursor, returns a `400` error.",
            "example": "gAAAAABn7vJ..."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 1000,
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ],
              "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
              "title": "Limit"
            },
            "description": "Number of items per page. The maximum is 1000. Don't send it with `cursor`, because the cursor already carries the limit.\n\nDefault: 100.",
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompliancePage_ComplianceFinding_"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid, for example a parameter is malformed or the `cursor` is invalid or expired. The error `type` is `invalid_request_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "invalid_request_error": {
                    "summary": "invalid_request_error",
                    "value": {
                      "error": {
                        "type": "invalid_request_error",
                        "message": "The request is invalid."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "A credential failed. The workspace API key is missing, unknown, or disabled, or your signed token is missing or Base44 can't verify it (`partner_key_required`). Check the `code` to see which credential to fix. Don't ask the workspace admin to create a new key for `partner_key_required`. The error `type` is `authentication_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "authentication_error": {
                    "summary": "authentication_error",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Invalid workspace API key."
                      }
                    }
                  },
                  "partner_key_required": {
                    "summary": "partner_key_required",
                    "value": {
                      "error": {
                        "type": "authentication_error",
                        "message": "Missing or invalid compliance partner assertion in the Authorization header. The workspace API key is sent separately and is not the credential at fault here.",
                        "code": "partner_key_required"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "The workspace's plan doesn't include the Compliance API, or its subscription has lapsed (`plan_not_included`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "plan_not_included": {
                    "summary": "plan_not_included",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request.",
                        "code": "plan_not_included"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "The key doesn't have the scope the method needs (`missing_scope`), the key belongs to a different workspace (`workspace_mismatch`), the Compliance API isn't enabled for the workspace (`feature_not_enabled`), or Base44 suspended your partner registration (`partner_not_approved`). The error `type` is `permission_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "missing_scope": {
                    "summary": "missing_scope",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This API key is not permitted to perform that request. Needed: [compliance:members:read]",
                        "code": "missing_scope",
                        "required_scope": "compliance:members:read"
                      }
                    }
                  },
                  "workspace_mismatch": {
                    "summary": "workspace_mismatch",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "API key does not belong to this workspace",
                        "code": "workspace_mismatch"
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "feature_not_enabled",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "The Compliance API is not enabled for this workspace.",
                        "code": "feature_not_enabled"
                      }
                    }
                  },
                  "partner_not_approved": {
                    "summary": "partner_not_approved",
                    "value": {
                      "error": {
                        "type": "permission_error",
                        "message": "This compliance partner is not approved to call the Compliance API. Contact Base44; the customer cannot grant this.",
                        "code": "partner_not_approved"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "The workspace doesn't exist. The error `type` is `not_found_error`. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "not_found_error": {
                    "summary": "not_found_error",
                    "value": {
                      "error": {
                        "type": "not_found_error",
                        "message": "Not found."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "The workspace sent too many requests. Wait the number of seconds in the `retry-after` header, then retry with a newly signed authentication token. The error `type` is `rate_limit_error`. See [rate limits](/developers/references/compliance-api/get-started/rate-limits).",
            "content": {
              "application/json": {
                "examples": {
                  "rate_limit_error": {
                    "summary": "rate_limit_error",
                    "value": {
                      "error": {
                        "type": "rate_limit_error",
                        "message": "Rate limit exceeded. Retry after the interval in the retry-after header."
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong on Base44's side. Retry with exponential backoff and a newly signed authentication token. If the code is `inventory_too_large`, the workspace has more items than the API can return, and retrying doesn't help. Ask your Base44 partner contact for help. See [error codes](/developers/references/compliance-api/get-started/error-codes).",
            "content": {
              "application/json": {
                "examples": {
                  "api_error": {
                    "summary": "api_error",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "An internal error occurred. Retry with exponential backoff."
                      }
                    }
                  },
                  "inventory_too_large": {
                    "summary": "inventory_too_large",
                    "value": {
                      "error": {
                        "type": "api_error",
                        "message": "This workspace holds more rows than a single compliance read supports (9999). Returning a partial inventory would misreport it, so the request failed instead. Not retryable without a change on our side.",
                        "code": "inventory_too_large"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ComplianceErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ComplianceAgent": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the agent, in the format `{app_id}:{agent_name}`.",
            "example": "68a1f3c2b7d9e4005c20e8f6:support_agent"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the agent belongs to. A Superagent is its own app.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "agent_name": {
            "type": "string",
            "title": "Agent Name",
            "description": "Name of the agent.",
            "example": "support_agent"
          },
          "standalone": {
            "type": "boolean",
            "title": "Standalone",
            "description": "Whether the agent is a [Superagent](/Getting-Started/superagent). A value of `false` indicates an agent that belongs to another app.",
            "example": false
          },
          "lifecycle": {
            "type": "string",
            "title": "Lifecycle",
            "description": "Stage of the agent's setup. Possible values are `\"active\"` and `\"onboarding\"`.",
            "example": "active"
          },
          "allow_anonymous_access": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Allow Anonymous Access",
            "description": "Whether people can use the agent without signing in. A `null` value indicates the agent is a Superagent. Who can use a Superagent depends on its app's visibility and sign-in settings. See the [List apps](/api-reference/compliance/list-apps) method.",
            "example": false
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model",
            "description": "AI model the agent uses. A `null` value indicates the agent is a Superagent, which doesn't use a fixed model.",
            "example": "claude-sonnet-5-5"
          },
          "channels": {
            "items": {
              "$ref": "#/components/schemas/ComplianceAgentChannel"
            },
            "type": "array",
            "title": "Channels",
            "description": "Channels people can use to reach the agent. The list is the same for every agent, because Base44 doesn't record which channels each agent uses."
          }
        },
        "type": "object",
        "required": [
          "id",
          "app_id",
          "agent_name",
          "standalone",
          "lifecycle",
          "channels"
        ],
        "title": "ComplianceAgent"
      },
      "ComplianceAgentChannel": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Type of channel. Possible values are `\"whatsapp\"`, `\"telegram\"`, `\"line\"`, `\"imessage\"`, `\"slack\"`, `\"partner_clients\"`, and `\"phone\"`.",
            "example": "slack"
          },
          "configured": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Configured",
            "description": "Whether the agent has the channel set up. A `null` value indicates Base44 has no status for the channel. It doesn't indicate the channel is off."
          },
          "active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active",
            "description": "Whether people can currently reach the agent through the channel. A `null` value indicates Base44 has no status for the channel. It doesn't indicate the channel is off."
          }
        },
        "type": "object",
        "required": [
          "type"
        ],
        "title": "ComplianceAgentChannel"
      },
      "ComplianceApiKey": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the API key. The `actor_id` on `workspace.compliance_api.read` events in the [Audit Logs API](/developers/references/audit-logs-api/get-started/event-types) is the same value. See [audit logging](/developers/references/compliance-api/get-started/overview#audit-logging).",
            "example": "68b4d7e1f2a3c9006d31a5b7"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the key.",
            "example": "Acme security review"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "Description of the key. A `null` value indicates the key has no description.",
            "example": "Used by our security partner"
          },
          "key_prefix": {
            "type": "string",
            "title": "Key Prefix",
            "description": "First characters of the key, which you can use to recognize it. The full key is never returned. See [workspace API key](/developers/references/compliance-api/get-started/authentication#workspace-api-key).",
            "example": "b44k_a3f9c"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes",
            "description": "Permissions the key has, such as `\"compliance:inventory:read\"`. This includes the scopes the key's `permission` grants. A key created before scopes existed lists the scopes it can actually reach, not an empty list. See [scopes](/developers/references/compliance-api/get-started/authentication#scopes).",
            "example": [
              "compliance:inventory:read",
              "compliance:members:read"
            ]
          },
          "permission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonalAccessTokenPermission"
              },
              {
                "type": "null"
              }
            ],
            "description": "Level of access the key has to the workspace's public API. Possible values are `\"read_only\"` and `\"full_access\"`. The key acts as the workspace owner. The `scopes` field lists the scopes that the permission includes. A `null` value indicates the key has only its individual scopes.",
            "example": "read_only"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Status of the key. Possible values are `\"active\"` and `\"disabled\"`.",
            "example": "active"
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "Creation time of the key. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates Base44 has no creation time for the key.",
            "example": "2026-09-01T10:00:00Z"
          },
          "created_by_email": {
            "type": "string",
            "title": "Created By Email",
            "description": "Email address of the member who created the key.",
            "example": "admin@acme.com"
          },
          "last_used_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Used At",
            "description": "Last time someone used the key. Base44 syncs this periodically, so it might not include the latest use. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates Base44 has no record of the key being used.",
            "example": "2026-10-19T15:00:00Z"
          },
          "disabled_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled At",
            "description": "When the key was disabled. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates the key isn't disabled.",
            "example": "2026-10-01T09:00:00Z"
          },
          "expires_at": {
            "type": "null",
            "title": "Expires At",
            "description": "Workspace API keys don't expire today."
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "key_prefix",
          "scopes",
          "status",
          "created_by_email"
        ],
        "title": "ComplianceApiKey"
      },
      "ComplianceApp": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the app.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the app.",
            "example": "Acme Invoice Tracker"
          },
          "app_type": {
            "type": "string",
            "title": "App Type",
            "description": "Type of the app. Possible values are `\"user_app\"`, `\"user_agent\"`, `\"grow\"`, `\"mobile_app\"`, `\"user_game\"`, `\"slide\"`, `\"imported_app\"`, and `\"user_workflows\"`. A `user_agent` app is a [Superagent](/Getting-Started/superagent).",
            "example": "user_app"
          },
          "owner": {
            "$ref": "#/components/schemas/ComplianceAppUser",
            "description": "Details of the app owner."
          },
          "created_by": {
            "$ref": "#/components/schemas/ComplianceAppUser",
            "description": "Details of the member who created the app."
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "When the app was created. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no creation time is recorded.",
            "example": "2026-02-10T08:41:09Z"
          },
          "is_deleted": {
            "type": "boolean",
            "title": "Is Deleted",
            "description": "Whether the app was deleted.",
            "example": false
          },
          "is_blocked": {
            "type": "boolean",
            "title": "Is Blocked",
            "description": "Whether the app is blocked. People can't open a blocked app.",
            "example": false
          },
          "published": {
            "type": "boolean",
            "title": "Published",
            "description": "Whether the app is currently published. This is `false` for an app that was never published and for an app that was unpublished.",
            "example": true
          },
          "last_published_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Published At",
            "description": "When the app was last published. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates the app was never published.",
            "example": "2026-03-02T12:15:30Z"
          },
          "serving_hostname": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Serving Hostname",
            "description": "Hostname the app is served on. This is the app's verified [custom domain](/Setting-up-your-app/Setting-up-your-custom-domain) if it has one, and its Base44 hostname otherwise.",
            "example": "invoices.acme.com"
          },
          "visibility_configured": {
            "type": "string",
            "title": "Visibility Configured",
            "description": "Who can open the app, as set in the app's settings. Possible values are `\"public_without_login\"`, `\"public_with_login\"`, `\"workspace_with_login\"`, and `\"private_with_login\"`.\n\n- `public_without_login`: Public, no login. Anyone on the internet. No account needed.\n- `public_with_login`: Public, login required. Anyone who signs in with one of the app's enabled sign-in methods, including people outside the workspace.\n- `workspace_with_login`: Workspace. Everyone in the Base44 workspace.\n- `private_with_login`: Private. Only invited people.\n\nSee [managing apps in your enterprise workspace](/Enterprise/Enterprise-SSO-and-app-visibility).",
            "example": "workspace_with_login"
          },
          "visibility_effective": {
            "type": "string",
            "title": "Visibility Effective",
            "description": "Who can open the app in practice. This differs from `visibility_configured` when the workspace requires single sign-on (SSO) for apps, because an app set to `\"public_without_login\"` then requires sign-in. To check, see `sso.enforced_for_apps` in the [workspace configuration](/api-reference/compliance/get-workspace-configuration). Possible values are the same as for `visibility_configured`.",
            "example": "workspace_with_login"
          },
          "draft_visibility": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Draft Visibility",
            "description": "Visibility saved in the app's draft settings, which applies when the app is next published. A `null` value indicates no draft setting exists.",
            "example": "private_with_login"
          },
          "auth": {
            "$ref": "#/components/schemas/ComplianceAppAuth",
            "description": "How people sign in to the app."
          },
          "has_secrets": {
            "type": "boolean",
            "title": "Has Secrets",
            "description": "Whether the app has secrets. Names and values aren't returned here. To see the names, use the [List secrets](/api-reference/compliance/list-secrets) method.",
            "default": false,
            "example": true
          },
          "agent_active": {
            "type": "boolean",
            "title": "Agent Active",
            "description": "Whether the app has an AI agent. A Superagent always counts as having one.",
            "example": false
          },
          "backend_functions_enabled": {
            "type": "boolean",
            "title": "Backend Functions Enabled",
            "description": "Whether the app has backend functions turned on. This can be `true` even when the app has no deployed functions.",
            "example": true
          },
          "repo": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ComplianceAppRepo"
              },
              {
                "type": "null"
              }
            ],
            "description": "Details of the GitHub repository connected to the app. A `null` value indicates no repository is connected."
          },
          "prevent_iframe_embedding": {
            "type": "boolean",
            "title": "Prevent Iframe Embedding",
            "description": "Whether the app's own setting blocks other websites from showing it in a frame. Workspace settings can also block framing. To see the policy in force, use `embedding_policy.effective_origins`.",
            "example": false
          },
          "embedding_policy": {
            "$ref": "#/components/schemas/ComplianceAppEmbeddingPolicy",
            "description": "Which websites can show the app in a frame."
          },
          "restrict_browser_features": {
            "type": "boolean",
            "title": "Restrict Browser Features",
            "description": "Whether the app limits which browser features its pages can use. Base44 does this with the `Permissions-Policy` response header.",
            "example": false
          },
          "dev_environment_enabled": {
            "type": "boolean",
            "title": "Dev Environment Enabled",
            "description": "Whether the app has test data enabled. The app gets a test database next to its live database, so you can try changes without touching live data.",
            "example": false
          },
          "byom_enabled": {
            "type": "boolean",
            "title": "Byom Enabled",
            "description": "Whether the app stores its data in the workspace's own MongoDB database. See [connecting your own MongoDB](/Enterprise/connecting-your-own-mongodb).",
            "example": false
          },
          "data_region": {
            "type": "string",
            "title": "Data Region",
            "description": "Region where the app's data is stored. Possible values are `\"US\"`, `\"EU\"`, `\"UK\"`, `\"AU\"`, and `\"CUSTOMER_CLUSTER\"`. A value of `\"CUSTOMER_CLUSTER\"` indicates the app uses the workspace's own MongoDB database.",
            "example": "US"
          }
        },
        "type": "object",
        "required": [
          "id",
          "name",
          "app_type",
          "owner",
          "created_by",
          "is_deleted",
          "is_blocked",
          "published",
          "visibility_configured",
          "visibility_effective",
          "auth",
          "agent_active",
          "backend_functions_enabled",
          "prevent_iframe_embedding",
          "embedding_policy",
          "restrict_browser_features",
          "dev_environment_enabled",
          "byom_enabled",
          "data_region"
        ],
        "title": "ComplianceApp"
      },
      "ComplianceAppAuth": {
        "properties": {
          "login_required": {
            "type": "boolean",
            "title": "Login Required",
            "description": "Whether people must sign in to use the app. This can be `false` while `methods` has values, because an app can offer sign-in without requiring it.",
            "example": true
          },
          "methods": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Methods",
            "description": "Sign-in methods enabled for the app. Possible values are `\"username_password\"`, `\"google\"`, `\"microsoft\"`, `\"facebook\"`, `\"apple\"`, and `\"sso\"`. If the workspace requires SSO for apps, only SSO works, whatever this list shows. To check, see `sso.enforced_for_apps` in the [workspace configuration](/api-reference/compliance/get-workspace-configuration).",
            "example": [
              "google",
              "sso"
            ]
          },
          "sso": {
            "$ref": "#/components/schemas/ComplianceAppSso",
            "description": "SSO settings for the app. See [single sign-on for enterprise workspaces](/Enterprise/SSO-for-enterprise-workspace)."
          }
        },
        "type": "object",
        "required": [
          "login_required",
          "methods",
          "sso"
        ],
        "title": "ComplianceAppAuth"
      },
      "ComplianceAppConnection": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "app_connection",
            "title": "Kind",
            "description": "Type of integration. Always `\"app_connection\"` for a connection between an app and a service.",
            "default": "app_connection",
            "example": "app_connection"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the connection.",
            "example": "68d6f9a3b4c5e1008f53c7d9"
          },
          "app_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "App Id",
            "description": "Unique ID of the app that owns the connection. A `null` value indicates a connection shared by the whole workspace.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "integration_type": {
            "type": "string",
            "title": "Integration Type",
            "description": "Service the connection is for.",
            "example": "slack"
          },
          "connection_ownership": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "app",
                  "workspace"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Connection Ownership",
            "description": "Whose account credentials the connection uses. Possible values are `\"app\"` and `\"workspace\"`. A `null` value indicates only app users connected to this service.",
            "example": "workspace"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes",
            "description": "Permissions the service granted to the connection. If no permissions were granted, the list shows the permissions requested instead.",
            "example": [
              "chat:write"
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status",
            "description": "Status of the connection. Possible values are `\"INITIALIZING\"`, `\"INITIATED\"`, `\"ACTIVE\"`, `\"FAILED\"`, `\"EXPIRED\"`, and `\"INACTIVE\"`. A `null` value indicates the app has no connection.",
            "example": "ACTIVE"
          },
          "connected_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connected At",
            "description": "When the connection was created. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no connection time is recorded.",
            "example": "2026-06-21T07:10:00Z"
          },
          "per_user_connection_count": {
            "type": "integer",
            "title": "Per User Connection Count",
            "description": "Number of app users with an active connection. Base44 counts each app user once.",
            "default": 0,
            "example": 12
          }
        },
        "type": "object",
        "required": [
          "id",
          "integration_type"
        ],
        "title": "ComplianceAppConnection"
      },
      "ComplianceAppEmbeddingPolicy": {
        "properties": {
          "configured_origins": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Configured Origins",
            "description": "Websites allowed to embed the app, as set for the app itself. A `null` value indicates none is set.",
            "example": [
              "https://portal.acme.com"
            ]
          },
          "workspace_origins": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Workspace Origins",
            "description": "Websites the workspace allows to embed its apps. A `null` value indicates the workspace sets no list.",
            "example": [
              "https://acme.com"
            ]
          },
          "effective_origins": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effective Origins",
            "description": "Websites that can embed the app in practice. A `null` value indicates any website can. An empty list indicates none can. App-authored CSP, the content security policy that the app sets itself, can restrict embedding further.",
            "example": [
              "https://portal.acme.com"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "app",
              "workspace",
              "default"
            ],
            "title": "Source",
            "description": "Where the embedding policy in force comes from. Possible values are:\n- `app`: The app's own embedding settings apply.\n- `workspace`: The workspace's embedding settings apply.\n- `default`: Base44's default applies.",
            "example": "app"
          }
        },
        "type": "object",
        "required": [
          "configured_origins",
          "workspace_origins",
          "effective_origins",
          "source"
        ],
        "title": "ComplianceAppEmbeddingPolicy"
      },
      "ComplianceAppRepo": {
        "properties": {
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "Service that hosts the repository. Always `\"github\"`.",
            "example": "github"
          },
          "full_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Name",
            "description": "Full name of the repository, including the organization.",
            "example": "acme/invoice-tracker"
          },
          "org_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Org Name",
            "description": "Name of the GitHub organization that owns the repository.",
            "example": "acme"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "URL of the repository.",
            "example": "https://github.com/acme/invoice-tracker"
          },
          "default_branch": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Branch",
            "description": "Default branch of the repository. Base44 doesn't store the production branch, so use this as the closest indicator.",
            "example": "main"
          },
          "connection_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connection Status",
            "description": "Status of the connection to GitHub. Possible values are `\"active\"`, `\"disconnected\"`, `\"error\"`, and `\"revoked\"`.\n\n- `active`: The connection works normally.\n- `disconnected`: A person disconnected the repository.\n- `error`: The connection hit a technical failure.\n- `revoked`: GitHub access was withdrawn.",
            "example": "active"
          },
          "sync_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sync Enabled",
            "description": "Whether Base44 keeps the app and the repository in sync.",
            "example": true
          },
          "last_sync_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Sync At",
            "description": "When the app and the repository last synced. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no sync is recorded.",
            "example": "2026-04-18T10:02:44Z"
          }
        },
        "type": "object",
        "title": "ComplianceAppRepo"
      },
      "ComplianceAppSso": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether SSO is active for the app.",
            "example": true
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Name",
            "description": "Name of the identity provider set on the app. A `null` value indicates the app has no app-level provider. Apps that use workspace SSO inherit the provider from the workspace configuration.",
            "example": "Okta"
          },
          "uses_workspace_sso": {
            "type": "boolean",
            "title": "Uses Workspace Sso",
            "description": "Whether the app uses the workspace's SSO setup.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "uses_workspace_sso"
        ],
        "title": "ComplianceAppSso"
      },
      "ComplianceAppUser": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id",
            "description": "Unique ID of the person's Base44 account.",
            "example": "679e0f3a8b1c2d004a73f5b8"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email",
            "description": "Email address of the person. A `null` value indicates Base44 has no email recorded.",
            "example": "owner@acme.com"
          }
        },
        "type": "object",
        "title": "ComplianceAppUser"
      },
      "ComplianceConnectorControl": {
        "properties": {
          "integration_type": {
            "type": "string",
            "title": "Integration Type",
            "description": "Service the connector is for.",
            "example": "slack"
          },
          "builder_connection_enabled": {
            "type": "boolean",
            "title": "Builder Connection Enabled",
            "description": "Whether members can connect this connector in the builder.",
            "example": true
          },
          "per_user_connection_enabled": {
            "type": "boolean",
            "title": "Per User Connection Enabled",
            "description": "Whether app users can connect their own accounts to this connector. A workspace without credentials set up for the connector returns `false`.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "integration_type",
          "builder_connection_enabled",
          "per_user_connection_enabled"
        ],
        "title": "ComplianceConnectorControl"
      },
      "ComplianceCustomIntegration": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "custom_integration",
            "title": "Kind",
            "description": "Type of integration. Always `\"custom_integration\"`.",
            "default": "custom_integration",
            "example": "custom_integration"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the custom integration.",
            "example": "68f8b1c5d6e7a3000b75e9f1"
          },
          "slug": {
            "type": "string",
            "title": "Slug",
            "description": "Short name used to identify the integration.",
            "example": "acme-billing"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the integration.",
            "example": "Acme Billing"
          },
          "base_url": {
            "type": "string",
            "title": "Base Url",
            "description": "Address the integration sends requests to. Base44 doesn't return the path, which can contain access tokens.",
            "example": "https://billing.acme.com"
          },
          "endpoint_count": {
            "type": "integer",
            "title": "Endpoint Count",
            "description": "Number of operations of the service that the integration uses.",
            "example": 4
          }
        },
        "type": "object",
        "required": [
          "id",
          "slug",
          "name",
          "base_url",
          "endpoint_count"
        ],
        "title": "ComplianceCustomIntegration"
      },
      "ComplianceEmailDomain": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "email",
            "title": "Kind",
            "description": "Type of domain. Always `\"email\"` for this item.",
            "default": "email",
            "example": "email"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the domain, in the format `{kind}:{app_id}:{domain}`.",
            "example": "email:68a1f3c2b7d9e4005c20e8f6:mail.acme.com"
          },
          "domain": {
            "type": "string",
            "title": "Domain",
            "description": "Domain name.",
            "example": "mail.acme.com"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the domain is connected to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "created_date": {
            "type": "null",
            "title": "Created Date",
            "description": "Always `null`. Base44 doesn't record a creation time for email domains."
          },
          "configuration_status": {
            "type": "string",
            "title": "Configuration Status",
            "description": "Status of the domain's email setup. Possible values are `\"not_configured\"`, `\"pending_dns_configuration\"`, `\"pending_user_dns_configuration\"`, `\"pending_domain_verification\"`, `\"active\"`, `\"failed_provider_creation\"`, `\"failed_dns_configuration\"`, and `\"failed_verification\"`. A value of `\"active\"` indicates the domain is verified and can send email.",
            "example": "active"
          },
          "verified_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified At",
            "description": "When the domain was verified. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates it isn't verified.",
            "example": "2026-02-13T11:00:00Z"
          },
          "disabled": {
            "type": "boolean",
            "title": "Disabled",
            "description": "Whether sending email from the domain is disabled.",
            "example": false
          },
          "suspended": {
            "$ref": "#/components/schemas/ComplianceSuspension",
            "description": "Whether sending email from the domain is suspended, and why."
          },
          "external": {
            "type": "boolean",
            "title": "External",
            "description": "Whether the domain was purchased outside Base44.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "domain",
          "app_id",
          "configuration_status",
          "disabled",
          "suspended",
          "external"
        ],
        "title": "ComplianceEmailDomain"
      },
      "ComplianceEntity": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the entity, in the format `{app_id}:{entity_name}`.",
            "example": "68a1f3c2b7d9e4005c20e8f6:Invoice"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the entity belongs to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "entity_name": {
            "type": "string",
            "title": "Entity Name",
            "description": "Name of the entity.",
            "example": "Invoice"
          },
          "fields": {
            "items": {
              "$ref": "#/components/schemas/ComplianceEntityField"
            },
            "type": "array",
            "title": "Fields",
            "description": "Fields the entity defines."
          },
          "rls": {
            "$ref": "#/components/schemas/ComplianceRls",
            "description": "Whether row-level security rules restrict each action on the entity's records. A rule limits which records a person can act on."
          },
          "field_level_rls": {
            "type": "boolean",
            "title": "Field Level Rls",
            "description": "Whether any field has its own row-level security rule.",
            "example": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "app_id",
          "entity_name",
          "fields",
          "rls",
          "field_level_rls"
        ],
        "title": "ComplianceEntity"
      },
      "ComplianceEntityField": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the field.",
            "example": "amount"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type",
            "description": "Type of data the field holds, such as `\"string\"` or `\"number\"`. A `null` value indicates the field has no type set.",
            "example": "number"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ComplianceEntityField"
      },
      "ComplianceErrorBody": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Category of the error. See [error types](/developers/references/compliance-api/get-started/error-codes#error-types).",
            "example": "permission_error"
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "Explanation of the error for people to read.",
            "example": "This API key is not permitted to perform that request. Needed: [compliance:members:read]"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code",
            "description": "Specific cause of the error, such as `missing_scope`, `workspace_mismatch`, `plan_not_included`, `feature_not_enabled`, `partner_key_required`, `partner_not_approved`, or `inventory_too_large`. Omitted when `type` is enough. See [Compliance API codes](/developers/references/compliance-api/get-started/error-codes#compliance-api-codes).",
            "example": "missing_scope"
          },
          "required_scope": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Required Scope",
            "description": "Scope the method needs. Included only when `code` is `missing_scope`.",
            "example": "compliance:members:read"
          }
        },
        "type": "object",
        "required": [
          "type",
          "message"
        ],
        "title": "ComplianceErrorBody"
      },
      "ComplianceErrorResponse": {
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ComplianceErrorBody"
          }
        },
        "type": "object",
        "required": [
          "error"
        ],
        "title": "ComplianceErrorResponse"
      },
      "ComplianceFinding": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the issue. Use it to match an issue across requests. For `secrets`, `backend_functions`, and `code` issues, the ID changes whenever the file changes. The ID of a `backend_functions` issue also changes when the app changes its login requirements.",
            "example": "68a1f3c2b7d9e4005c20e8f6:secrets:3f9a1c7e5b2d48a06e1f93c4a7b50d28"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the issue belongs to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "category": {
            "type": "string",
            "title": "Category",
            "description": "Type of issue. Possible values are:\n\n- `rls`: Row-level security is missing.\n- `secrets`: A secret is hardcoded.\n- `backend_functions`: A backend function has an authorization issue.\n- `dependencies`: A package has a known vulnerability.\n- `code`: The code has an issue.\n- `security_headers`: A [security header](/Setting-up-your-app/running-a-security-scan#security-header-recommendations) is recommended for the app. These depend on an app setting, so the `location` fields are `null`.\n- `third_party`: A connected third-party scanner reported the issue. This category covers dependency vulnerabilities that Wiz finds. The `dependencies` category covers only the Base44 scan.",
            "example": "rls"
          },
          "severity": {
            "type": "string",
            "title": "Severity",
            "description": "How severe the issue is. Possible values are `\"critical\"`, `\"high\"`, `\"medium\"`, and `\"low\"`. If the scanner doesn't rate an issue, Base44 uses a default for the category: `critical` for `rls`, `critical` for `secrets`, `high` for `backend_functions`, and `medium` for the rest. On an app that doesn't require login, every backend function can be called by anyone by design, so each is listed once with severity `low`. Functions the scanner flags as abusable keep severity `high`.",
            "example": "high"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "description": "Short summary of the issue.",
            "example": "Row-level security recommended for Invoice"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Explanation of the issue.",
            "example": "Anyone who can sign in can read every invoice."
          },
          "location": {
            "$ref": "#/components/schemas/ComplianceFindingLocation",
            "description": "Where the issue is."
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "resolved",
              "dismissed"
            ],
            "title": "Status",
            "description": "Whether the issue needs attention. Possible values are `\"open\"`, `\"resolved\"`, and `\"dismissed\"`. A value of `\"open\"` indicates the issue isn't known to be resolved. A value of `\"resolved\"` indicates Base44 recorded a fix. A value of `\"dismissed\"` indicates someone dismissed it.",
            "example": "open"
          },
          "scanned_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scanned At",
            "description": "When the scan that reported the issue ran. Formatted as a UTC timestamp in ISO 8601 format. Rows from one 3rd-party scan can differ, because its code analysis step can lag. For `security_headers` issues, it's when the app's header recommendations last changed.",
            "example": "2026-10-18T22:14:05Z"
          },
          "source": {
            "type": "string",
            "enum": [
              "base44_scanner",
              "wiz"
            ],
            "title": "Source",
            "description": "Scanner that reported the issue. Possible values are `\"base44_scanner\"` and `\"wiz\"`.",
            "example": "base44_scanner"
          }
        },
        "type": "object",
        "required": [
          "id",
          "app_id",
          "category",
          "severity",
          "title",
          "description",
          "location",
          "status",
          "source"
        ],
        "title": "ComplianceFinding"
      },
      "ComplianceFindingLocation": {
        "properties": {
          "entity_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Name",
            "description": "Name of the entity. Set for `rls` issues.",
            "example": "Invoice"
          },
          "file_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "File Path",
            "description": "Path of the file.",
            "example": "functions/syncInvoices.js"
          },
          "line": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Line",
            "description": "Line number in the file.",
            "example": 42
          },
          "package_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Package Name",
            "description": "Name of the package. Set for `dependencies` issues and for dependency issues from a 3rd-party scanner.",
            "example": "lodash"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version",
            "description": "Installed version of the package.",
            "example": "4.17.15"
          }
        },
        "type": "object",
        "title": "ComplianceFindingLocation",
        "description": "Where an issue is located, such as an entity, a file, or a package. Only the fields that apply to the issue have values. The others are `null`."
      },
      "ComplianceFunction": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the function, in the format `{app_id}:{name}`.",
            "example": "68a1f3c2b7d9e4005c20e8f6:syncInvoices"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the function belongs to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the function. It's also the last part of the function's URL.",
            "example": "syncInvoices"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url",
            "description": "URL the function is called at. A `null` value indicates the app has no hostname.",
            "example": "https://invoices.acme.com/functions/syncInvoices"
          },
          "triggers": {
            "items": {
              "$ref": "#/components/schemas/ComplianceFunctionTrigger"
            },
            "type": "array",
            "title": "Triggers",
            "description": "What triggers the function. An empty list indicates nothing triggers the function automatically, however, an app can still call it directly. Archived workflows aren't included, and paused workflows appear with `is_active` set to `false`."
          },
          "required_app_user_connector_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Required App User Connector Ids",
            "description": "IDs of the [app user connectors](/developers/backend/resources/connectors/app-user-connectors) the function requires.",
            "example": [
              "68d6f9a3b4c5e1008f53c7d9"
            ]
          },
          "internet_reachable": {
            "type": "boolean",
            "title": "Internet Reachable",
            "description": "Whether the function can be called from the internet. Always `true`.",
            "default": true,
            "example": true
          },
          "auth_required": {
            "type": "null",
            "title": "Auth Required",
            "description": "Always `null`. Each function enforces authorization in its own code. To view authorization issues, use the [List security findings](/api-reference/compliance/list-security-findings) method."
          },
          "kind": {
            "type": "string",
            "enum": [
              "function",
              "actor"
            ],
            "title": "Kind",
            "description": "Whether the item is a function or an actor. Possible values are `\"function\"` and `\"actor\"`. An [actor](/developers/backend/resources/actors/overview) is a long-running backend process that multiple clients connect to simultaneously.",
            "example": "function"
          }
        },
        "type": "object",
        "required": [
          "id",
          "app_id",
          "name",
          "triggers",
          "required_app_user_connector_ids",
          "kind"
        ],
        "title": "ComplianceFunction"
      },
      "ComplianceFunctionTrigger": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "The [workflow](/Building-your-app/Creating-workflows) trigger type. Possible values are `scheduled`, `entity`, `connector`, and `hook`. A hook runs before Base44 completes an action, such as saving a record or starting an agent conversation."
          },
          "is_active": {
            "type": "boolean",
            "title": "Is Active",
            "description": "Whether the trigger is enabled.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "type",
          "is_active"
        ],
        "title": "ComplianceFunctionTrigger"
      },
      "ComplianceGroupPolicy": {
        "properties": {
          "can_publish": {
            "type": "boolean",
            "title": "Can Publish",
            "description": "Whether the role, or group, can publish apps.",
            "example": true
          },
          "allowed_visibilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Allowed Visibilities",
            "description": "Visibilities the role, or group, can choose when publishing. Possible values are the same as for `visibility_configured` in the [List apps](/api-reference/compliance/list-apps) method.",
            "example": [
              "workspace_with_login",
              "private_with_login"
            ]
          },
          "default_visibility": {
            "type": "string",
            "title": "Default Visibility",
            "description": "Default visibility used when the role, or group, creates an app.",
            "example": "private_with_login"
          },
          "group_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Name",
            "description": "Name of the group. A `null` value indicates the group no longer exists.",
            "example": "Engineering"
          }
        },
        "type": "object",
        "required": [
          "can_publish",
          "allowed_visibilities",
          "default_visibility"
        ],
        "title": "ComplianceGroupPolicy",
        "description": "Publishing rules for a workspace group."
      },
      "ComplianceIpAllowlist": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether members can only sign in from the listed IP addresses.",
            "example": true
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/ComplianceIpAllowlistEntry"
            },
            "type": "array",
            "title": "Entries",
            "description": "IP addresses members can sign in from."
          },
          "governs": {
            "type": "string",
            "const": "sign_in",
            "title": "Governs",
            "description": "What the IP allowlist restricts. Always `\"sign_in\"`, which indicates the allowlist applies to signing in to Base44, not to visits to published apps.",
            "default": "sign_in",
            "example": "sign_in"
          }
        },
        "type": "object",
        "required": [
          "enabled",
          "entries"
        ],
        "title": "ComplianceIpAllowlist"
      },
      "ComplianceIpAllowlistEntry": {
        "properties": {
          "ip_address": {
            "type": "string",
            "title": "Ip Address",
            "description": "IP address allowed to sign in.",
            "example": "203.0.113.7"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note",
            "description": "Description of the IP address. A `null` value indicates no description was added.",
            "example": "Acme office"
          }
        },
        "type": "object",
        "required": [
          "ip_address"
        ],
        "title": "ComplianceIpAllowlistEntry"
      },
      "ComplianceMcpConnection": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "mcp_connection",
            "title": "Kind",
            "description": "Type of integration. Always `\"mcp_connection\"`.",
            "default": "mcp_connection",
            "example": "mcp_connection"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the server connection.",
            "example": "6909c2d6e7f8b4001c86f0a2"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the server is connected to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the server.",
            "example": "Jira"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Address of the server. Base44 doesn't return the path, which can contain access tokens.",
            "example": "https://mcp.atlassian.com"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether the server is enabled.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "app_id",
          "name",
          "url",
          "enabled"
        ],
        "title": "ComplianceMcpConnection"
      },
      "ComplianceMember": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of this member in the workspace.",
            "example": "6812a4c9d3e7f1004b58c2e0"
          },
          "email": {
            "type": "string",
            "title": "Email",
            "description": "Email address of the member.",
            "example": "jane.doe@acme.com"
          },
          "user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id",
            "description": "Unique ID of the member's Base44 account. A `null` value indicates the member hasn't accepted the invitation yet.",
            "example": "6791b5d2c4e8a3007f61a9c3"
          },
          "role": {
            "type": "string",
            "title": "Role",
            "description": "Role of the member in the workspace. Possible values are:\n- `owner`: Manages billing, members, settings, apps, and credits. Each workspace has 1 owner.\n- `admin`: Manages members and workspace settings, but not billing.\n- `editor`: Can create apps, and edit the apps they're invited to and apps shared with the whole workspace.\n- `viewer`: Can view apps they're invited to and apps shared with the whole workspace, but can't edit them.\n- `member`: A legacy role that behaves like `editor`.\n- `guest`: Can edit specific apps they're invited to, but can't create apps or access workspace settings.\n\nSee [about workspaces](/documentation/account-and-billing/about-workspaces).",
            "example": "editor"
          },
          "role_source": {
            "type": "string",
            "title": "Role Source",
            "description": "Source of the member's role. Possible values are `\"group\"` for a role from a workspace group and `\"direct\"` for a role set for this member individually. See [managing members and groups](/Enterprise/managing-enterprise-members) for more details.",
            "example": "direct"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Whether the member has joined the workspace. Possible values are `\"active\"` and `\"pending\"`. A pending member has been invited but hasn't joined yet.",
            "example": "active"
          },
          "access_state": {
            "type": "string",
            "title": "Access State",
            "description": "Whether the member can access the workspace. Possible values are `\"granted\"` and `\"blocked\"`. A blocked member can't access the workspace, whatever their `role` shows.",
            "example": "granted"
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "When the membership was created. Members with pending invitations show the time the invitation was sent. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no creation time is recorded.",
            "example": "2026-01-15T09:23:41Z"
          },
          "invited_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Invited By",
            "description": "Email of the person who invited this member, or `null` if none is recorded. Base44 records an inviter only for guests, which are members invited to specific apps rather than to the whole workspace.",
            "example": "admin@acme.com"
          },
          "invitation_expired": {
            "type": "boolean",
            "title": "Invitation Expired",
            "description": "Whether the member's invitation has expired. Active members always show `false`.",
            "example": false
          },
          "sso_linked": {
            "type": "boolean",
            "title": "Sso Linked",
            "description": "Whether an identity provider identity is linked to the member's membership. See [single sign-on for enterprise workspaces](/Enterprise/SSO-for-enterprise-workspace) for more details.",
            "example": true
          },
          "mfa_enrolled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mfa Enrolled",
            "description": "Whether the member has multi-factor authentication set up on their Base44 account. See [requiring two-factor authentication](/Enterprise/SSO-for-enterprise-workspace#requiring-two-factor-authentication) for more details. A `null` value indicates the member has a pending invitation and has no account yet.",
            "example": true
          },
          "mfa_methods": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Mfa Methods",
            "description": "Types of MFA the member has enabled. Possible values are `\"totp\"` for an authenticator app and `\"sms\"` for text messages. The list is empty if none is enabled.",
            "example": [
              "totp"
            ]
          },
          "last_active_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Active At",
            "description": "When the member was last active in the workspace, such as when a member last signed in. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates Base44 has no activity record for the member.",
            "example": "2026-07-28T16:05:12Z"
          }
        },
        "type": "object",
        "required": [
          "id",
          "email",
          "role",
          "role_source",
          "status",
          "access_state",
          "invitation_expired",
          "sso_linked"
        ],
        "title": "ComplianceMember"
      },
      "ComplianceMemberMcpConnection": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "member_mcp_connection",
            "title": "Kind",
            "description": "Type of integration. Always `\"member_mcp_connection\"`.",
            "default": "member_mcp_connection",
            "example": "member_mcp_connection"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the server connection.",
            "example": "6909c2d6e7f8b4001c86f0b3"
          },
          "connected_by_member_id": {
            "type": "string",
            "title": "Connected By Member Id",
            "description": "Unique ID of the member's Base44 account. To identify the member, find the matching `user_id` in the [List workspace members](/api-reference/compliance/list-workspace-members) method, which needs the `compliance:members:read` scope.",
            "example": "6791b5d2c4e8a3007f61a9c3"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the server.",
            "example": "Notion"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Address of the server. Base44 doesn't return the path, which can contain access tokens.",
            "example": "https://mcp.notion.com"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether the server is enabled.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "id",
          "connected_by_member_id",
          "name",
          "url",
          "enabled"
        ],
        "title": "ComplianceMemberMcpConnection",
        "description": "An MCP server a member connected for their own builder sessions."
      },
      "ComplianceMfa": {
        "properties": {
          "enforced_for_members": {
            "type": "boolean",
            "title": "Enforced For Members",
            "description": "Whether MFA is required to open the workspace. Not enforced for members who must sign in with SSO. To see which members have enabled MFA, use the [List workspace members](/api-reference/compliance/list-workspace-members) method.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "enforced_for_members"
        ],
        "title": "ComplianceMfa"
      },
      "ComplianceOwner": {
        "properties": {
          "user_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Id",
            "description": "Unique ID of the workspace owner's Base44 account.",
            "example": "679e0f3a8b1c2d004a73f5b8"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email",
            "description": "Email address of the workspace owner.",
            "example": "owner@acme.com"
          }
        },
        "type": "object",
        "title": "ComplianceOwner"
      },
      "CompliancePage_Annotated_Union_ComplianceAppConnection__ComplianceWorkspaceConnector__ComplianceCustomIntegration__ComplianceMcpConnection__ComplianceMemberMcpConnection__ComplianceUserWorkspaceConnection___FieldInfo_annotation_NoneType__required_True__discriminator__kind____": {
        "properties": {
          "data": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ComplianceAppConnection"
                },
                {
                  "$ref": "#/components/schemas/ComplianceWorkspaceConnector"
                },
                {
                  "$ref": "#/components/schemas/ComplianceCustomIntegration"
                },
                {
                  "$ref": "#/components/schemas/ComplianceMcpConnection"
                },
                {
                  "$ref": "#/components/schemas/ComplianceMemberMcpConnection"
                },
                {
                  "$ref": "#/components/schemas/ComplianceUserWorkspaceConnection"
                }
              ],
              "discriminator": {
                "propertyName": "kind",
                "mapping": {
                  "app_connection": "#/components/schemas/ComplianceAppConnection",
                  "custom_integration": "#/components/schemas/ComplianceCustomIntegration",
                  "mcp_connection": "#/components/schemas/ComplianceMcpConnection",
                  "member_mcp_connection": "#/components/schemas/ComplianceMemberMcpConnection",
                  "user_workspace_connection": "#/components/schemas/ComplianceUserWorkspaceConnection",
                  "workspace_connector": "#/components/schemas/ComplianceWorkspaceConnector"
                }
              }
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[Annotated[Union[ComplianceAppConnection, ComplianceWorkspaceConnector, ComplianceCustomIntegration, ComplianceMcpConnection, ComplianceMemberMcpConnection, ComplianceUserWorkspaceConnection], FieldInfo(annotation=NoneType, required=True, discriminator='kind')]]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_Annotated_Union_ComplianceServingDomain__ComplianceEmailDomain___FieldInfo_annotation_NoneType__required_True__discriminator__kind____": {
        "properties": {
          "data": {
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/ComplianceServingDomain"
                },
                {
                  "$ref": "#/components/schemas/ComplianceEmailDomain"
                }
              ],
              "discriminator": {
                "propertyName": "kind",
                "mapping": {
                  "email": "#/components/schemas/ComplianceEmailDomain",
                  "serving": "#/components/schemas/ComplianceServingDomain"
                }
              }
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[Annotated[Union[ComplianceServingDomain, ComplianceEmailDomain], FieldInfo(annotation=NoneType, required=True, discriminator='kind')]]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceAgent_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceAgent"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceAgent]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceApiKey_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceApiKey"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceApiKey]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceApp_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceApp"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceApp]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceEntity_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceEntity"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceEntity]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceFinding_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceFinding"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceFinding]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceFunction_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceFunction"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceFunction]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceMember_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceMember"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceMember]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePage_ComplianceSecret_": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/ComplianceSecret"
            },
            "type": "array",
            "title": "Data",
            "description": "Items on this page."
          },
          "pagination": {
            "$ref": "#/components/schemas/PublicPaginationInfo",
            "description": "Pagination details for this page."
          }
        },
        "type": "object",
        "required": [
          "data",
          "pagination"
        ],
        "title": "CompliancePage[ComplianceSecret]",
        "description": "One page of results from a list endpoint."
      },
      "CompliancePersonalAccessTokenPolicy": {
        "properties": {
          "allowed": {
            "type": "boolean",
            "title": "Allowed",
            "description": "Whether members' personal access tokens may act against this workspace. Read on every request, so disabling it stops every token at once."
          },
          "max_permission": {
            "$ref": "#/components/schemas/PersonalAccessTokenPermission",
            "description": "Highest permission a member can give a personal access token. Base44 checks this when a member creates, edits, or re-enables a token. A token that already has a higher permission keeps working."
          },
          "single_app_only": {
            "type": "boolean",
            "title": "Single App Only",
            "description": "Whether a token must target exactly one app or Superagent. Checked like `max_permission`."
          }
        },
        "type": "object",
        "required": [
          "allowed",
          "max_permission",
          "single_app_only"
        ],
        "title": "CompliancePersonalAccessTokenPolicy"
      },
      "CompliancePublishing": {
        "properties": {
          "default_app_visibility": {
            "type": "string",
            "title": "Default App Visibility",
            "description": "Who can open apps by default. Possible values are:\n\n- `public_without_login`: Public, no login. Anyone on the internet. No account needed.\n- `public_with_login`: Public, login required. Users who sign in with one of the app's enabled sign-in methods, including users outside the workspace.\n- `workspace_with_login`: Workspace. Users in the Base44 workspace.\n- `private_with_login`: Private. Only invited users.",
            "example": "workspace_with_login"
          },
          "role_policies": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ComplianceRolePolicy"
            },
            "type": "object",
            "title": "Role Policies",
            "description": "Publishing rules for each role, keyed by role name."
          },
          "group_policies": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ComplianceGroupPolicy"
            },
            "type": "object",
            "title": "Group Policies",
            "description": "Publishing rules for each workspace group, keyed by group ID."
          }
        },
        "type": "object",
        "required": [
          "default_app_visibility",
          "role_policies",
          "group_policies"
        ],
        "title": "CompliancePublishing"
      },
      "ComplianceRls": {
        "properties": {
          "create": {
            "type": "string",
            "enum": [
              "open",
              "restricted"
            ],
            "title": "Create",
            "description": "Whether a rule restricts who can create records. Possible values are:\n- `restricted`: A rule limits who can create records.\n- `open`: No rule applies.",
            "example": "restricted"
          },
          "read": {
            "type": "string",
            "enum": [
              "open",
              "restricted"
            ],
            "title": "Read",
            "description": "Whether a rule restricts who can read records. Possible values are:\n- `restricted`: A rule limits who can read records.\n- `open`: No rule applies.",
            "example": "restricted"
          },
          "update": {
            "type": "string",
            "enum": [
              "open",
              "restricted"
            ],
            "title": "Update",
            "description": "Whether a rule restricts who can update records. Possible values are:\n- `restricted`: A rule limits who can update records.\n- `open`: No rule applies.\n\nIf no update rule is set, the rule for writing applies, and then the rule for reading.",
            "example": "restricted"
          },
          "delete": {
            "type": "string",
            "enum": [
              "open",
              "restricted"
            ],
            "title": "Delete",
            "description": "Whether a rule restricts who can delete records. Possible values are:\n- `restricted`: A rule limits who can delete records.\n- `open`: No rule applies.\n\nIf no delete rule is set, the rule for writing applies, and then the rule for reading.",
            "example": "open"
          }
        },
        "type": "object",
        "required": [
          "create",
          "read",
          "update",
          "delete"
        ],
        "title": "ComplianceRls"
      },
      "ComplianceRolePolicy": {
        "properties": {
          "can_publish": {
            "type": "boolean",
            "title": "Can Publish",
            "description": "Whether the role, or group, can publish apps.",
            "example": true
          },
          "allowed_visibilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Allowed Visibilities",
            "description": "Visibilities the role, or group, can choose when publishing. Possible values are the same as for `visibility_configured` in the [List apps](/api-reference/compliance/list-apps) method.",
            "example": [
              "workspace_with_login",
              "private_with_login"
            ]
          },
          "default_visibility": {
            "type": "string",
            "title": "Default Visibility",
            "description": "Default visibility used when the role, or group, creates an app.",
            "example": "private_with_login"
          }
        },
        "type": "object",
        "required": [
          "can_publish",
          "allowed_visibilities",
          "default_visibility"
        ],
        "title": "ComplianceRolePolicy"
      },
      "ComplianceSecret": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the secret.",
            "example": "68c5e8f2a3b4d0007e42b6c8"
          },
          "scope": {
            "type": "string",
            "enum": [
              "app",
              "workspace"
            ],
            "title": "Scope",
            "description": "Where the secret is available. Possible values are `\"workspace\"` and `\"app\"`. A value of `\"workspace\"` indicates the secret is available across the workspace. A value of `\"app\"` indicates it belongs to one app.",
            "example": "app"
          },
          "app_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "App Id",
            "description": "Unique ID of the app the secret belongs to. A `null` value indicates a workspace secret.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the secret.",
            "example": "STRIPE_API_KEY"
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "When the secret was created. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no creation time is recorded.",
            "example": "2026-05-04T13:45:00Z"
          },
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created By",
            "description": "Email address of the member who created the secret. A `null` value indicates no creator is recorded.",
            "example": "admin@acme.com"
          },
          "last_updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Updated At",
            "description": "When the secret was last updated. Base44 doesn't record rotations separately, so use this as the closest indicator of when a secret was last rotated. Re-encryption, such as when an app moves to another workspace, also updates it. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates the secret has no recorded update.",
            "example": "2026-09-12T08:20:00Z"
          },
          "encryption_mode": {
            "type": "string",
            "title": "Encryption Mode",
            "description": "`fernet` or `kms_envelope`."
          }
        },
        "type": "object",
        "required": [
          "id",
          "scope",
          "name",
          "encryption_mode"
        ],
        "title": "ComplianceSecret"
      },
      "ComplianceServingDomain": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "serving",
            "title": "Kind",
            "description": "Type of domain. Always `\"serving\"` for this item.",
            "default": "serving",
            "example": "serving"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the domain, in the format `{kind}:{app_id}:{domain}`.",
            "example": "serving:68a1f3c2b7d9e4005c20e8f6:invoices.acme.com"
          },
          "domain": {
            "type": "string",
            "title": "Domain",
            "description": "Domain name.",
            "example": "invoices.acme.com"
          },
          "app_id": {
            "type": "string",
            "title": "App Id",
            "description": "Unique ID of the app the domain is connected to.",
            "example": "68a1f3c2b7d9e4005c20e8f6"
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "When the domain was connected to the app. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no time is recorded.",
            "example": "2026-02-12T09:30:00Z"
          },
          "verified": {
            "type": "boolean",
            "title": "Verified",
            "description": "Whether the domain passed its last verification check with the domain provider.",
            "example": true
          },
          "last_checked_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Checked At",
            "description": "When the domain was last checked with the provider. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates it hasn't been checked.",
            "example": "2026-10-20T06:00:00Z"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "description": "Whether the domain is enabled.",
            "example": true
          },
          "disabled_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disabled By",
            "description": "Who disabled the domain. Possible values are `\"admin\"` and `\"subscription\"`. A `null` value indicates the domain isn't disabled.",
            "example": "admin"
          },
          "is_external": {
            "type": "boolean",
            "title": "Is External",
            "description": "Whether the domain was bought outside Base44. This is `false` for [domains purchased through Base44](/Setting-up-your-app/Buying-a-domain-from-Base44).",
            "example": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "domain",
          "app_id",
          "verified",
          "enabled",
          "is_external"
        ],
        "title": "ComplianceServingDomain"
      },
      "ComplianceSso": {
        "properties": {
          "configured": {
            "type": "boolean",
            "title": "Configured",
            "description": "Whether the workspace has SSO set up with an identity provider.",
            "example": true
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider Name",
            "description": "Name of the workspace's identity provider. A `null` value indicates none is set up.",
            "example": "Okta"
          },
          "enforced_for_members": {
            "type": "boolean",
            "title": "Enforced For Members",
            "description": "Whether members are required to sign in with SSO. This is `true` only when a provider is set up, an admin has signed in with it, and enforcement is enabled.",
            "example": true
          },
          "guests_exempt": {
            "type": "boolean",
            "title": "Guests Exempt",
            "description": "Whether guests can sign in without SSO.",
            "example": false
          },
          "enforced_for_apps": {
            "type": "boolean",
            "title": "Enforced For Apps",
            "description": "Whether people who use the workspace's published apps are required to sign in with SSO.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "configured",
          "enforced_for_members",
          "guests_exempt",
          "enforced_for_apps"
        ],
        "title": "ComplianceSso"
      },
      "ComplianceSuspension": {
        "properties": {
          "flag": {
            "type": "boolean",
            "title": "Flag",
            "description": "Whether sending email from the domain is suspended.",
            "example": false
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "The reason why sending is suspended. A `null` value indicates no reason is recorded.",
            "example": "Complaint rate too high"
          }
        },
        "type": "object",
        "required": [
          "flag"
        ],
        "title": "ComplianceSuspension"
      },
      "ComplianceUserWorkspaceConnection": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "user_workspace_connection",
            "title": "Kind",
            "description": "Type of integration. Always `\"user_workspace_connection\"`.",
            "default": "user_workspace_connection",
            "example": "user_workspace_connection"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the item, in the format `user_workspace_connection:{integration_type}`.",
            "example": "user_workspace_connection:github"
          },
          "integration_type": {
            "type": "string",
            "title": "Integration Type",
            "description": "Service members connected to.",
            "example": "github"
          },
          "connected_member_count": {
            "type": "integer",
            "title": "Connected Member Count",
            "description": "Number of members with an active connection. Base44 counts each member once, however many connection records they have.",
            "example": 7
          },
          "member_count_by_status": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Member Count By Status",
            "description": "Number of members for each connection status. Possible statuses are `\"active\"`, `\"disconnected\"`, and `\"pending\"`. Members with several tools can appear in more than one status, so the counts can exceed the number of members.",
            "example": {
              "active": 7,
              "disconnected": 3
            }
          }
        },
        "type": "object",
        "required": [
          "id",
          "integration_type",
          "connected_member_count",
          "member_count_by_status"
        ],
        "title": "ComplianceUserWorkspaceConnection",
        "description": "Tools members connected with their own accounts, for use in the builder. Only counts are\nreturned, not member details."
      },
      "ComplianceWorkspace": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the workspace.",
            "example": "67f2c8e01a3b5d004e92d7a1"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name",
            "description": "Name of the workspace.",
            "example": "Acme Engineering"
          },
          "created_date": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created Date",
            "description": "When the workspace was created. Formatted as a UTC timestamp in ISO 8601 format. A `null` value indicates no creation time is recorded.",
            "example": "2025-11-03T14:20:00Z"
          },
          "owner": {
            "$ref": "#/components/schemas/ComplianceOwner",
            "description": "Details of the workspace owner. A `null` value in either field indicates no owner is recorded."
          },
          "member_count": {
            "type": "integer",
            "title": "Member Count",
            "description": "Number of active members in the workspace. Pending invitations and blocked members aren't counted.",
            "example": 42
          },
          "sso": {
            "$ref": "#/components/schemas/ComplianceSso",
            "description": "SSO settings for the workspace. See [single sign-on for enterprise workspaces](/Enterprise/SSO-for-enterprise-workspace)."
          },
          "mfa": {
            "$ref": "#/components/schemas/ComplianceMfa",
            "description": "Multi-factor authentication settings for the workspace. To see which members have turned it on, use the [List workspace members](/api-reference/compliance/list-workspace-members) method."
          },
          "ip_allowlist": {
            "$ref": "#/components/schemas/ComplianceIpAllowlist",
            "description": "IP addresses allowed to sign in to the workspace. See [IP allowlist](/Enterprise/IP-allowlist)."
          },
          "publishing": {
            "$ref": "#/components/schemas/CompliancePublishing",
            "description": "Rules for publishing apps in the workspace. See [managing apps in your enterprise workspace](/Enterprise/Enterprise-SSO-and-app-visibility)."
          },
          "connector_controls": {
            "items": {
              "$ref": "#/components/schemas/ComplianceConnectorControl"
            },
            "type": "array",
            "title": "Connector Controls",
            "description": "Availability of each connector in the workspace. See [managing connector availability](/Enterprise/workspace-connectors) for more details."
          },
          "new_connectors_default_off": {
            "type": "boolean",
            "title": "New Connectors Default Off",
            "description": "Whether an admin must enable new connectors before anyone in the workspace can use them."
          },
          "superagent_disabled": {
            "type": "boolean",
            "title": "Superagent Disabled",
            "description": "Whether Superagents are disabled for the workspace.",
            "example": false
          },
          "apps_mcp_policy": {
            "type": "string",
            "title": "Apps Mcp Policy",
            "description": "Whether apps can run MCP servers. Possible values are `\"allow\"`, `\"oauth_only\"`, and `\"disabled\"`.",
            "example": "oauth_only"
          },
          "verified_email_domains": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Verified Email Domains",
            "description": "Email domains the workspace has verified. People with an email address on one of these domains are offered SSO when they sign in. These domains are separate from the `\"email\"` domains the [List domains](/api-reference/compliance/list-domains) method returns, which apps use to send email. Learn more about [setting up your enterprise workspace domain](/Enterprise/Enterprise-workspace-domain).",
            "example": [
              "acme.com"
            ]
          },
          "restrict_workspace_creation": {
            "type": "boolean",
            "title": "Restrict Workspace Creation",
            "description": "Whether the workspace has [claimed its verified email domains](/Enterprise/restrict-workspace-creation). When `true`:\n\n- New sign-ups on those domains are refused, unless a workspace that verified the domain admits the user.\n- Users on those domains can't create workspaces, unless they're admins of a workspace that verified the domain.\n\nThis is always `false` when the workspace has no verified email domains.",
            "example": true
          },
          "guest_invites_admin_only": {
            "type": "boolean",
            "title": "Guest Invites Admin Only",
            "description": "Whether only owners and admins can invite guests. The default value depends on the plan:\n- Business and Enterprise plans: `true`\n- Other plans: `false`",
            "example": true
          },
          "app_transfer_out": {
            "type": "string",
            "enum": [
              "admin",
              "owner",
              "nobody"
            ],
            "title": "App Transfer Out",
            "description": "Who can move apps out of this workspace. Possible values are:\n- `admin`: Admins and owners can move apps out.\n- `owner`: Only owners can move apps out.\n- `nobody`: Nobody can move apps out.",
            "example": "admin"
          },
          "app_transfer_in": {
            "type": "string",
            "enum": [
              "any_editor",
              "admin_approval",
              "disabled"
            ],
            "title": "App Transfer In",
            "description": "Who can move apps into this workspace. Possible values are `\"any_editor\"`, `\"admin_approval\"` (an editor's move waits for a workspace admin), and `\"disabled\"`. A workspace whose plan can't configure it reports the default, `\"disabled\"` for workspaces that follow the Family Educational Rights and Privacy Act (FERPA) and `\"any_editor\"` otherwise.",
            "example": "admin_approval"
          },
          "personal_access_token_policy": {
            "$ref": "#/components/schemas/CompliancePersonalAccessTokenPolicy",
            "description": "Rules for members' [personal access tokens](/Workspaces/Personal-access-tokens) in the workspace. See [governing personal access tokens](/Enterprise/workspace-secrets#governing-personal-access-tokens)."
          },
          "mfa_policy": {
            "type": "null",
            "title": "Mfa Policy",
            "description": "Always `null`. Use `mfa` instead."
          },
          "session_policy": {
            "type": "null",
            "title": "Session Policy",
            "description": "Always `null`. Workspaces can't set a session policy."
          },
          "token_policy": {
            "type": "null",
            "title": "Token Policy",
            "description": "Always `null`. Use `personal_access_token_policy` instead."
          },
          "data_region": {
            "type": "string",
            "title": "Data Region",
            "description": "Region for apps created in the workspace from now on. Existing apps keep their region. To see where an app's data is stored, use `data_region` on the apps endpoints. Possible values are `\"US\"`, `\"EU\"`, `\"UK\"`, `\"AU\"`, and `\"CUSTOMER_CLUSTER\"`. A value of `\"CUSTOMER_CLUSTER\"` indicates the workspace uses its own MongoDB database. See [connecting your own MongoDB](/Enterprise/connecting-your-own-mongodb).",
            "example": "US"
          },
          "static_egress_enabled": {
            "type": "boolean",
            "title": "Static Egress Enabled",
            "description": "Whether apps send their outgoing traffic from fixed IP addresses. See [static outbound IPs](/Enterprise/static-outbound-ips).",
            "example": false
          }
        },
        "type": "object",
        "required": [
          "id",
          "owner",
          "member_count",
          "sso",
          "mfa",
          "ip_allowlist",
          "publishing",
          "connector_controls",
          "new_connectors_default_off",
          "superagent_disabled",
          "apps_mcp_policy",
          "verified_email_domains",
          "restrict_workspace_creation",
          "guest_invites_admin_only",
          "app_transfer_out",
          "app_transfer_in",
          "personal_access_token_policy",
          "data_region",
          "static_egress_enabled"
        ],
        "title": "ComplianceWorkspace"
      },
      "ComplianceWorkspaceConnector": {
        "properties": {
          "kind": {
            "type": "string",
            "const": "workspace_connector",
            "title": "Kind",
            "description": "Type of integration. Always `\"workspace_connector\"`.",
            "default": "workspace_connector",
            "example": "workspace_connector"
          },
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Unique ID of the connector.",
            "example": "68e7a0b4c5d6f2009a64d8e0"
          },
          "integration_type": {
            "type": "string",
            "title": "Integration Type",
            "description": "Service the connector is for.",
            "example": "github"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Name of the connector.",
            "example": "Acme GitHub"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes",
            "description": "Permissions the connector requests.",
            "example": [
              "repo"
            ]
          }
        },
        "type": "object",
        "required": [
          "id",
          "integration_type",
          "name"
        ],
        "title": "ComplianceWorkspaceConnector"
      },
      "PersonalAccessTokenPermission": {
        "type": "string",
        "enum": [
          "full_access",
          "read_only"
        ],
        "title": "PersonalAccessTokenPermission",
        "description": "What a personal access token can do. A token never exceeds its owner's permissions."
      },
      "PublicPaginationInfo": {
        "properties": {
          "total": {
            "type": "integer",
            "title": "Total",
            "description": "Total number of matching items.",
            "example": 347
          },
          "next_cursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Cursor",
            "description": "Cursor for fetching the next page. The value is `null` if there are no more pages.",
            "example": "gAAAAABn7vJ..."
          },
          "has_more": {
            "type": "boolean",
            "title": "Has More",
            "description": "Whether there are more items to fetch.",
            "example": true
          }
        },
        "type": "object",
        "required": [
          "total",
          "has_more"
        ],
        "title": "PublicPaginationInfo",
        "description": "Pagination metadata for a cursor-paginated page."
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "api_key",
        "description": "Identifies the workspace you can read and limits your access to the key's scopes. A workspace owner or admin creates the key and shares it with you. See [Workspace API key](/developers/references/compliance-api/get-started/authentication#workspace-api-key) for more details."
      },
      "PartnerTokenAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "The signed authentication token that identifies you as the security partner. Sign a new token for each request with your signing key, using `RS256` or `ES256`, and send it as a bearer token in the `Authorization` header. See [Sign an authentication token](/developers/references/compliance-api/get-started/authentication#sign-an-authentication-token) for more details."
      }
    }
  },
  "tags": [
    {
      "name": "compliance",
      "description": "Read workspace configuration, inventory, and security posture."
    }
  ],
  "servers": [
    {
      "url": "https://app.base44.com/api/v1/compliance",
      "description": "Compliance API"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": [],
      "PartnerTokenAuth": []
    }
  ]
}
