Base44

App · 12 actions

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

Actions

ActionWhat it does
Count entity recordsCount entity records.
Get an appGet an app.
Get an entity recordGet an entity record.
Get an entity schemaGet an entity schema.
List app branchesList app branches.
List app checkpointsList app checkpoints.
List app collaboratorsList app collaborators.
List appsList apps.
List backend functionsList backend functions.
List entity recordsList entity records.
List entity schemasList entity schemas.
List media assetsList media assets.

Count entity records

Count entity records.

Inputs

Entity nameentity_nametextRequired
Entity name.
Appapp_idtextRequired
ID of the app that owns the entity.
Qqtext
Optional filter, a JSON object in the same form as `q` on List entity records.

Outputs

dataobject
The response from Base44.
Example output
{
  "data": {
    "count": 1
  }
}

Get an app

Get an app.

Inputs

Appapp_idtextRequired
ID of the app.

Outputs

dataobject
The response from Base44.
Example output
{
  "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 IDentity_idtextRequired
ID of the record, as `id` in the response of [List entity records](/api-reference/list-entity-records).
Appapp_idtextRequired
ID of the app that owns the entity.
Entity nameentity_nametextRequired
Entity name.

Outputs

dataobject
The response from Base44.
Example output
{
  "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 nameentity_nametextRequired
Name of the entity, as returned by [List entity schemas](/api-reference/list-entity-schemas). Pass `User` for the built-in user entity.
Appapp_idtextRequired
ID of the app whose entity schemas you want to work with.
Branch IDbranch_idtext
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

dataobject
The response from Base44.
Example output
{
  "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

Appapp_idtextRequired
ID of the app whose branches to read.
Include mergedinclude_mergedtrue/false
Set to `true` to also return branches already merged into main.
Mineminetrue/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

datalist
The response from Base44.
Example output
{
  "data": [
    {
      "id": "example",
      "status": "active"
    }
  ]
}

List app checkpoints

List app checkpoints.

Inputs

Appapp_idtextRequired
ID of the app.
Limitlimitnumber
Maximum number of checkpoints to return, between 1 and 10000. Omit to return all of them.
Skipskipnumber
Number of checkpoints to skip before the page starts, 0 or greater. Combine with `limit` to page through results.
Branch IDbranch_idtext
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

datalist
The response from Base44.
Example output
{
  "data": [
    {
      "id": "example",
      "name": "example"
    }
  ]
}

List app collaborators

List app collaborators.

Inputs

Appapp_idtextRequired
ID of the app whose collaborators to list.

Outputs

datalist
The response from Base44.
Example output
{
  "data": [
    {
      "email": "example",
      "id": "example"
    }
  ]
}

List apps

List apps.

Inputs

Workspace IDworkspace_idtext
Workspace id.
Sortsorttext
Single field to sort by, prefixed with `-` for descending. For example, `-created_date` returns newest first.
Limitlimitnumber
Maximum number of apps to return. Omit to return all the apps you can access.From 1 to 10000.
Skipskipnumber
Number of apps to skip before the page starts. Combine with `limit` to page through results.At least 0.
Filter modefilter_modetext
Filter mode.One of: all_apps_workspace (All apps workspace), my_apps_workspace (My apps workspace).
Searchsearchtext
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 IDfolder_idtext
Folder id.
Exclude folderedexclude_folderedtext
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 IDsinclude_folder_idstext
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

datalist
The response from Base44.
Example output
{
  "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

Appapp_idtextRequired
ID of the app the functions belong to.
Branch IDbranch_idtext
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

dataobject
The response from Base44.
Example output
{
  "data": {
    "functions": [
      {
        "automations": [
          {}
        ],
        "entry": "example",
        "files": [
          {}
        ],
        "name": "example"
      }
    ]
  }
}

List entity records

List entity records.

Inputs

Appapp_idtextRequired
ID of the app that owns the entity.
Entity nameentity_nametextRequired
Entity name.
Qqtext
Q.
Limitlimitnumber
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.
Sortsorttext
Sort.
Cursorcursortext
Pagination cursor from previous response. Leave it out for the first page.
Distinctdistincttext
Field whose distinct values to return instead of records, in ascending order.

Outputs

dataobject
The response from Base44.
Example output
{
  "data": {
    "has_more": true,
    "items": [
      {
        "id": "example"
      }
    ],
    "next_cursor": "example"
  }
}

List entity schemas

List entity schemas.

Inputs

Appapp_idtextRequired
ID of the app whose entity schemas you want to work with.
Branch IDbranch_idtext
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

dataobject
The response from Base44.
Example output
{
  "data": {
    "schemas": [
      {
        "entity_name": "example",
        "entity_schema": {}
      }
    ],
    "total": 1
  }
}

List media assets

List media assets.

Inputs

Appapp_idtextRequired
ID of the app whose media library to read.
Searchsearchtext
Text to match, ignoring case, anywhere in the file name. For example, `logo` matches `Logo-dark.png`.
Sortsorttext
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 typesource_typetext
Keep only files with this `source_type`, either `upload` or `generated`.
File typefile_typetext
Keep only files with this `file_type`, matched exactly. For example, `png`.

Outputs

datalist
The response from Base44.
Example output
{
  "data": [
    {
      "id": "example"
    }
  ]
}

On this page