Appbricx
Docs
FeaturesPricingStart free

Get started

OverviewWhat Appbricx isQuickstart with a coding agentQuickstart with the builderCore concepts

Guides

Data and tablesAccess and rolesBusiness rulesSign-inCustom screensRealtime and topicsWorkflows, schedules and webhooksServer functionsAI in your appPaymentsFilesMessagesIntegrationsVerifyPublishing, domains and rollbackOperating your appExport and self-hostSelf-host install

Tutorials

Build a booking app with Claude CodeMulti-user todo listClient portalSlack on new sign-upTemplates

Reference

Reference homeFrontend SDKHTTP APIMCP toolsCLIIntegrations catalogContract formatAI key resolutionRun Appbricx locally

Couchbase

Run N1QL queries and upsert documents in Couchbase.

Data and storageCredentials form5 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. upsert_document
  5. delete_document
  6. get_document
  7. insert_document
  8. query
  9. Details

Connect

Auth type: Credentials form (custom_auth). Fill in the fields the provider needs (listed below). They are stored encrypted in the vault.

FieldTypeDescription
connectionStringrequiredtextCouchbase connection string (e.g. couchbase://localhost)
usernamerequiredtextCluster username
passwordrequiredsecretCluster password
bucketNamerequiredtextDefault bucket to operate on
  • In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
  • For every project in a workspace: Workspace settings, Integrations.
  • Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.

Call it from a workflow

Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.

Native workflow
// .workflow.js (native ctx)
export async function run(ctx) {
  const res = await ctx.integrations.invoke("couchbase", "upsert_document", {
    "bucket": "<bucket>",
    "document": {}
  });
  if (!res.success) throw new Error(res.error);
  ctx.log.info("Couchbase answered", { output: res.output });
}
defineWorkflow module
// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";

export default defineWorkflow({
  id: "couchbase-upsert-document",
  name: "Couchbase: Upsert Document",
  description: "Calls Couchbase when a row is created.",
  trigger: { type: "entity_event", entity: "tickets", event: "created" },
  async run(ctx, event) {
    const res = await ctx.integrations.call("couchbase", {
      "action": "upsert_document",
      "bucket": "<bucket>",
      "document": {}
    }) as { success: boolean; error?: string };
    if (!res.success) throw new Error(res.error);
  },
});
From an app (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/couchbase/upsert_document" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"bucket":"<bucket>","document":{}}}'

Actions

upsert_documentin catalog

Upsert Document. Create or update a document. Creates if it doesn't exist, updates if it does.

InputTypeDescription
bucketrequiredid (picked from your account)Select the bucket
scopeoptionalid (picked from your account)Select the scope (leave empty for default)
collectionoptionalid (picked from your account)Select the collection (leave empty for default)
documentIdoptionaltextUnique identifier for the document. Leave empty to auto-generate.
documentrequiredJSONThe JSON document to store
expiryoptionalnumberDocument expiration time in seconds. Leave empty for no expiry.
durabilityLeveloptionalone of "0" | "1" | "2" | "3"How durable the write should be before returning success
timeoutoptionalnumberOperation timeout in milliseconds

delete_document

Delete Document. Remove a document by its ID

InputTypeDescription
bucketrequiredid (picked from your account)Select the bucket
scopeoptionalid (picked from your account)Select the scope (leave empty for default)
collectionoptionalid (picked from your account)Select the collection (leave empty for default)
documentIdrequiredid (picked from your account)Select an existing document or type a custom ID
durabilityLeveloptionalone of "0" | "1" | "2" | "3"How durable the write should be before returning success
timeoutoptionalnumberOperation timeout in milliseconds

get_document

Get Document. Retrieve a document by its ID

InputTypeDescription
bucketrequiredid (picked from your account)Select the bucket
scopeoptionalid (picked from your account)Select the scope (leave empty for default)
collectionoptionalid (picked from your account)Select the collection (leave empty for default)
documentIdrequiredid (picked from your account)Select an existing document or type a custom ID
timeoutoptionalnumberOperation timeout in milliseconds

insert_document

Insert Document. Create a new document. Fails if document already exists.

InputTypeDescription
bucketrequiredid (picked from your account)Select the bucket
scopeoptionalid (picked from your account)Select the scope (leave empty for default)
collectionoptionalid (picked from your account)Select the collection (leave empty for default)
documentIdoptionaltextUnique identifier for the document. Leave empty to auto-generate.
documentrequiredJSONThe JSON document to store
expiryoptionalnumberDocument expiration time in seconds. Leave empty for no expiry.
durabilityLeveloptionalone of "0" | "1" | "2" | "3"How durable the write should be before returning success
timeoutoptionalnumberOperation timeout in milliseconds

query

Execute SQL++ Query. Run a SQL++ (N1QL) query with optional vector search filters

InputTypeDescription
bucketrequiredid (picked from your account)Select the bucket
scopeoptionalid (picked from your account)Select the scope (leave empty for default)
queryrequiredlong textSELECT statement with optional positional parameters ($1, $2, etc.). Do not include LIMIT or OFFSET.
argumentsoptionalarrayValues for positional parameters ($1, $2, etc.) in the query
vectorFiltersoptionalarrayFilter results by vector similarity (requires vector index)
vectorOrderoptionalarrayOrder results by vector similarity (requires vector index)
limitoptionalnumberMaximum number of results to return
offsetoptionalnumberNumber of results to skip
scanConsistencyoptionalone of "not_bounded" | "request_plus"Query consistency level
timeoutoptionalnumberOperation timeout in milliseconds

Details

Id
couchbase
Category
Data and storage
Tags
database, nosql, document, distributed
Package
@activepieces/piece-couchbase@0.1.4
Tier
Community

On this page

  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. upsert_document
  5. delete_document
  6. get_document
  7. insert_document
  8. query
  9. Details
Appbricx

The backend, runtime and hosting for apps your coding agent builds. On our cloud, in yours, or on your own servers.

Features

Coding agents and MCPVerify testingBuilder consolePostgres databaseData APIRealtimeRow-level securitySign-in and authPaymentsWorkflows and jobsAI in your appIntegrationsBackups and rollbackHosting and domainsSelf-host and exportAll features

Product

ShowcasePricingFor coding agentsTemplatesPrivate cloudBring your own AI keyFAQ

Compare

Appbricx vs SupabaseLovable alternativeBolt alternativeFor freelancersFor agencies

Resources

DocumentationReferenceBlogSupportContact

© 2026 Appbricx. All rights reserved.

TermsPrivacyCookiesAcceptable Use