# Base44

> Read apps, records, assets and backend configuration from your Base44 workspace.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/base44

## Actions

### Count entity records

Count entity records.

**Inputs**

- Entity name (`entity_name`, text, required): Entity name.
- App (`app_id`, text, required): ID of the app that owns the entity.
- Q (`q`, text): Optional filter, a JSON object in the same form as `q` on List entity records.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "count": 1
  }
}
```

### Get an app

Get an app.

**Inputs**

- App (`app_id`, text, required): ID of the app.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "app_type": "example",
    "auth_config": {
      "enable_apple_login": true,
      "enable_facebook_login": true,
      "enable_google_login": true,
      "enable_microsoft_login": true,
      "enable_username_password": true
    },
    "cover_url": "example",
    "created_by": "example",
    "created_date": "example",
    "dev_environment_enabled": true,
    "hide_entity_created_by": true,
    "id": "example",
    "is_remixable": true,
    "is_unpublished": true,
    "last_deployed_at": "example",
    "logo_url": "example",
    "main_branch_protected": true,
    "name": "example",
    "organization_id": "example",
    "owner_id": "example",
    "preview_screenshot_url": "example",
    "public_settings": "private_with_login",
    "screenshot_url": "example",
    "slug": "example",
    "social_image_url": "example",
    "status": {
      "details": "example",
      "error_source": "example",
      "last_updated_date": "example",
      "paywall_context": {
        "billing_organization_id": "example",
        "evaluated_at": "example",
        "user_id": "example"
      },
      "request_id": "example",
      "state": "ready"
    },
    "updated_date": "example",
    "user_description": "example"
  }
}
```

### Get an entity record

Get an entity record.

**Inputs**

- Entity ID (`entity_id`, text, required): ID of the record, as `id` in the response of [List entity records](/api-reference/list-entity-records).
- App (`app_id`, text, required): ID of the app that owns the entity.
- Entity name (`entity_name`, text, required): Entity name.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "created_by": "example",
    "created_by_id": "example",
    "created_date": "example",
    "id": "example",
    "is_sample": true,
    "updated_date": "example"
  }
}
```

### Get an entity schema

Get an entity schema.

**Inputs**

- Entity name (`entity_name`, text, required): Name of the entity, as returned by [List entity schemas](/api-reference/list-entity-schemas). Pass `User` for the built-in user entity.
- App (`app_id`, text, required): ID of the app whose entity schemas you want to work with.
- Branch ID (`branch_id`, text): ID of the branch to work on, as returned by [List branches](/api-reference/list-branches). Omit it to work on the app's main branch.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "name": "example",
    "properties": {
      "amount": {
        "description": "example",
        "type": "example"
      },
      "status": {
        "enum": [
          "example"
        ],
        "type": "example"
      }
    },
    "required": [
      "example"
    ],
    "rls": {
      "read": {
        "created_by": "example"
      }
    },
    "type": "example"
  }
}
```

### List app branches

List app branches.

**Inputs**

- App (`app_id`, text, required): ID of the app whose branches to read.
- Include merged (`include_merged`, true/false): Set to `true` to also return branches already merged into main.
- Mine (`mine`, true/false): Set to `true` for only the caller's branches; merged ones are capped to the newest 30 (the rest page through `GET /branches/merged`).

**Outputs**

- `data` (list): The response from Base44.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "status": "active"
    }
  ]
}
```

### List app checkpoints

List app checkpoints.

**Inputs**

- App (`app_id`, text, required): ID of the app.
- Limit (`limit`, number): Maximum number of checkpoints to return, between 1 and 10000. Omit to return all of them.
- Skip (`skip`, number): Number of checkpoints to skip before the page starts, 0 or greater. Combine with `limit` to page through results.
- Branch ID (`branch_id`, text): ID of the branch to work on, as returned by [List branches](/api-reference/list-branches). Omit it to work on the app's main branch.

**Outputs**

- `data` (list): The response from Base44.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example"
    }
  ]
}
```

### List app collaborators

List app collaborators.

**Inputs**

- App (`app_id`, text, required): ID of the app whose collaborators to list.

**Outputs**

- `data` (list): The response from Base44.

**Example output**

```json
{
  "data": [
    {
      "email": "example",
      "id": "example"
    }
  ]
}
```

### List apps

List apps.

**Inputs**

- Workspace ID (`workspace_id`, text): Workspace id.
- Sort (`sort`, text): Single field to sort by, prefixed with `-` for descending. For example, `-created_date` returns newest first.
- Limit (`limit`, number): Maximum number of apps to return. Omit to return all the apps you can access. From 1 to 10000.
- Skip (`skip`, number): Number of apps to skip before the page starts. Combine with `limit` to page through results. At least 0.
- Filter mode (`filter_mode`, text): Filter mode. One of: `all_apps_workspace` (All apps workspace), `my_apps_workspace` (My apps workspace).
- Search (`search`, text): Text to match, case-insensitively, in the app's name, description, or creator's email. An app ID matches that app exactly, and a full email address matches the apps that person created or owns.
- Folder ID (`folder_id`, text): Folder id.
- Exclude foldered (`exclude_foldered`, text): Set to `true` to leave out apps that are in a folder you can see. Ignored when `folder_id` is set. One of: `true`.
- Include folder IDs (`include_folder_ids`, text): Set to `true` to add `folder_ids` to each app: the IDs of the folders you can see that hold it. For agents, also pass `app_type=user_agent`, or agent folders are left out. One of: `true`.

**Outputs**

- `data` (list): The response from Base44.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "status": {
        "details": "example",
        "error_source": "example",
        "last_updated_date": "example",
        "paywall_context": {
          "billing_organization_id": "example",
          "evaluated_at": "example",
          "user_id": "example"
        },
        "request_id": "example",
        "state": "ready"
      }
    }
  ]
}
```

### List backend functions

List backend functions.

**Inputs**

- App (`app_id`, text, required): ID of the app the functions belong to.
- Branch ID (`branch_id`, text): ID of the branch to work on, as returned by [List branches](/api-reference/list-branches). Omit it to work on the app's main branch.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "functions": [
      {
        "automations": [
          {}
        ],
        "entry": "example",
        "files": [
          {}
        ],
        "name": "example"
      }
    ]
  }
}
```

### List entity records

List entity records.

**Inputs**

- App (`app_id`, text, required): ID of the app that owns the entity.
- Entity name (`entity_name`, text, required): Entity name.
- Q (`q`, text): Q.
- Limit (`limit`, number): Number of records on each page, from 1 to 5000, or up to 1000 with `distinct`. Defaults to 100, and a higher value is treated as the maximum.
- Sort (`sort`, text): Sort.
- Cursor (`cursor`, text): Pagination cursor from previous response. Leave it out for the first page.
- Distinct (`distinct`, text): Field whose distinct values to return instead of records, in ascending order.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "has_more": true,
    "items": [
      {
        "id": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List entity schemas

List entity schemas.

**Inputs**

- App (`app_id`, text, required): ID of the app whose entity schemas you want to work with.
- Branch ID (`branch_id`, text): ID of the branch to work on, as returned by [List branches](/api-reference/list-branches). Omit it to work on the app's main branch.

**Outputs**

- `data` (object): The response from Base44.

**Example output**

```json
{
  "data": {
    "schemas": [
      {
        "entity_name": "example",
        "entity_schema": {}
      }
    ],
    "total": 1
  }
}
```

### List media assets

List media assets.

**Inputs**

- App (`app_id`, text, required): ID of the app whose media library to read.
- Search (`search`, text): Text to match, ignoring case, anywhere in the file name. For example, `logo` matches `Logo-dark.png`.
- Sort (`sort`, text): Order of the list. Either `newest`, `oldest`, or `a-z` for file name order, where uppercase letters come before lowercase ones. Defaults to `newest`, and any other value also sorts newest first.
- Source type (`source_type`, text): Keep only files with this `source_type`, either `upload` or `generated`.
- File type (`file_type`, text): Keep only files with this `file_type`, matched exactly. For example, `png`.

**Outputs**

- `data` (list): The response from Base44.

**Example output**

```json
{
  "data": [
    {
      "id": "example"
    }
  ]
}
```
