Skip to content

Integrations

Firebase connector

Run a Firebase app from UserTasks: Firestore queries, batches and counts in plain JSON, Authentication users, Storage files, Realtime Database, push notifications, callable functions as a Firebase user, Remote Config and change triggers.

Last updated 13 min read Edit this page on GitHub
On this page

The Firebase connector (firebase) adds 66 actions across Firestore, Authentication, Cloud Storage, Realtime Database, Cloud Messaging, Cloud Functions and Remote Config, with one service account. Every action becomes a reference: a workflow step, an app widget or lookup source, an agent tool, an API call (POST /api/v1/references/{id}/execute) and an MCP tool. It is built for running an existing Firebase app's back office in UserTasks: lists and dashboards over Firestore, ticket replies, user administration, file handling and the app's own callable functions.

The original Firestore actions (List Documents, Get Document, Create Document, Update Document, Delete Document, Run Query) keep their keys and requests, so existing references and workflows run unchanged.

Set up#

  1. In the Firebase console open Project settings → Service accounts and generate a key, or better, create a dedicated service account in IAM & Admin → Service accounts with only the roles you need (see Permissions).
  2. In UserTasks go to Integrations → Connectors → Databases and choose Firebase. Paste the key file into Service Account JSON.
  3. Set Firebase project ID (defaults to the key's project). Set Storage bucket if your bucket is <project>.appspot.com (projects created before October 2024) and Realtime Database URL if you use one.
  4. To call callable functions as a Firebase user, set Web API key (Project settings → General) and Act as uid (for example your admin account's uid).
  5. Choose Access: Read only for a first phase against production (see below), or Read and write.
  6. Click Test connection. It checks each service in turn and stops at the first failure, naming the step and the role to grant: Step 3 (Authentication) failed: The service account is missing roles/firebaseauth.admin ….
YAML
connector_key: firebase
name: Firebase (production, read only)
config:
  project_id: my-app-123
  storage_bucket: my-app-123.firebasestorage.app
  functions_region: us-central1
  access_mode: read_only
  services: firestore, auth, storage
credentials:
  service_account_json: "${FIREBASE_SA_KEY_JSON}"

The key is stored encrypted and never shown again. Tokens last one hour and are cached per workspace.

Read-only first phase#

Set Access to Read only and grant the service account only viewer roles: roles/datastore.viewer, plus roles/firebaseauth.viewer, roles/storage.objectViewer and roles/firebasedatabase.viewer for the services you read. The connector then refuses every Change and Destructive action, whatever its references say, and the original REST actions may only GET or run queries. Cloud Functions calls (including Call Callable Function (Read)) are refused too, unless the function's name is listed in Functions allowed in read-only mode (empty by default): list only functions that do not change data. Test connection names the viewer roles and skips the Cloud Messaging dry run (sending needs an admin role). Switch Access to Read and write, and add the write roles, when you are ready.

Permissions#

Grant the smallest set of roles. Pick the rows you need:

  • Read-only first phase (Access: Read only): roles/datastore.viewer, plus roles/firebaseauth.viewer, roles/storage.objectViewer and roles/firebasedatabase.viewer only for the services you read; no messaging, write or admin roles (Test connection then skips the Cloud Messaging dry run)
  • Firestore: roles/datastore.user (Cloud Datastore User); roles/datastore.viewer for read-only
  • Authentication: roles/firebaseauth.admin (Firebase Authentication Admin); roles/firebaseauth.viewer for read-only
  • Cloud Storage: roles/storage.objectAdmin on the bucket; roles/storage.objectViewer for read-only (Make File Public needs roles/storage.admin)
  • Realtime Database: roles/firebasedatabase.admin; roles/firebasedatabase.viewer for read-only
  • Cloud Messaging: roles/firebasecloudmessaging.admin (Firebase Cloud Messaging API Admin)
  • Remote Config: roles/firebaseremoteconfig.admin; roles/firebaseremoteconfig.viewer for read-only
  • Cloud Functions as the service account (IAM-protected functions): roles/cloudfunctions.invoker (1st gen) or roles/run.invoker (2nd gen). Calling as a Firebase user needs no role, only the Web API key
  • Or, for a trusted admin connector: roles/firebase.admin (Firebase Admin) covers all of the above

Enable each API you use (APIs & Services → Library); a call to a disabled API fails with SERVICE_DISABLED and names the API.

Plain JSON#

The plain-JSON actions read and write ordinary JSON. You never write Firestore's typed values ({"stringValue": …}).

  • Documents out. { id, path, data, createTime, updateTime }, and rows, one flat row per document: { _id, _path, ...fields, _createTime, _updateTime }. Timestamps are ISO text and references are document names.
  • Mapping outputs in a workflow. Each output of an action is the field of that name in its result. In a Call API / Reference step on Read Document, the output data is the document's fields ({{ticket.subject}} when mapped to ticket), row its flat row and exists true or false; the whole result is {{<step>_response}}.
  • Values in. Plain JSON. Use {"$timestamp": "2026-12-01T10:00:00Z"}, {"$reference": "users/alice"}, {"$geopoint": {"latitude": 40.7, "longitude": -74}} or {"$bytes": "<base64>"} for typed values, or set iso_strings_as_timestamps.
  • Field transforms in Set Document, Update Document Fields and Batch Write: {"$serverTimestamp": true}, {"$increment": 1}, {"$maximum": n}, {"$minimum": n}, {"$arrayUnion": [...]}, {"$arrayRemove": [...]} and {"$delete": true} (removes the field). For example, a support ticket reply:
JSON
{
  "document_path": "support_tickets/T123",
  "data": {
    "messages": { "$arrayUnion": [{ "senderType": "support", "message": "Thanks, refunded.", "timestamp": { "$timestamp": "2026-12-02T09:30:00Z" } }] },
    "status": "in_progress",
    "lastReplyAt": { "$serverTimestamp": true },
    "updatedAt": { "$serverTimestamp": true }
  }
}

Queries#

Query Collection takes collection and plain where, order_by and limit:

JSON
{
  "collection": "bookings",
  "where": [{ "field": "status", "op": "in", "value": ["confirmed", "paid"] }, { "field": "classDate", "op": ">=", "value": { "$timestamp": "2026-12-01T00:00:00Z" } }],
  "order_by": "classDate desc",
  "limit": 50
}
  • Operators: ==, !=, <, <=, >, >=, array-contains, array-contains-any, in and not-in (up to 30 values). == null becomes an is-null filter. Wrap clauses in {"or": [...]} to OR them, and use {"status": "open"} as shorthand for equality.
  • collection_group: true queries every collection with that id at any depth. parent_path queries below one document.
  • Prefix search: prefix_field plus prefix finds documents whose field starts with the text. It is case-sensitive, and an index on that field is needed.
  • Paging. all_pages follows query cursors (page_size, default 300) up to max_pages (default 10, max 50) and 5,000 documents. Without it you get one page. In both cases next_cursor (with truncated: true) continues where the result stopped: pass it back as start_after.
  • Firestore asks for a composite index for some filter and sort combinations. The error then says so, and Google's message contains the link that creates the index.
  • Count / Sum / Average Documents runs count, sum(field) and avg(field) on the server (up to 5 aggregations per call) for dashboard numbers, without reading the documents.
  • Read Many Documents reads up to 300 documents by path, or by document_ids in one collection. Use it for joins, such as the hosts of a page of classes.

Firestore as a data source#

Use the plain-JSON actions in the New reference wizard (Integrations → the Firebase connector → New reference). Pick Query Collection or List Collection Documents, enter a collection, test, choose the rows level and pick the fields. The saved reference returns plain rows (no typed values) that app widgets, tables, lookups and objects can use, and it pages on the server. List Collections lists the collection ids to choose from.

Batches and transactions#

  • Batch Write applies up to 500 writes atomically: all of them or none. Each write is {"op": "set" | "update" | "create" | "delete", "path": "…", "data": {…}, "merge": true, "precondition": {"exists": true} | {"update_time": "…"}}. Split larger jobs into batches of 500 (a workflow loop).
  • Transactions. Begin Transaction returns an id. Pass it as transaction to Read Document, Read Many Documents or Query Collection (those reads lock what they read), then to Commit Transaction with the writes. If anything you read has changed since, the commit fails with ABORTED; start again. Rollback Transaction abandons it. A transaction left idle for 270 seconds expires.
  • Optimistic concurrency without a transaction. Read the document, then write with current_update_time set to its updateTime. The write fails if someone changed the document in between.

Cloud Functions#

Call Callable Function speaks the onCall protocol: it POSTs {"data": …} to https://<region>-<project>.cloudfunctions.net/<function_name> (or url) and returns result.

  • As a Firebase user (auth: user, the default once Act as uid is set): UserTasks signs a custom token for that uid with the service account key, exchanges it for an ID token with the Web API key, and sends that ID token. The function sees context.auth.uid and the user's claims, so admin callables that check an admin user work unchanged. The ID token is cached for its hour. as_uid on a reference acts as another uid.
  • As the service account (auth: service_account): a Google-signed OIDC token for the function URL, for IAM-protected functions. Grant roles/cloudfunctions.invoker or roles/run.invoker.
  • Errors. A function's HttpsError keeps its status, message and details: error_status (FAILED_PRECONDITION), error_code (details.code, for example over_capacity), error_text and error_details. By default the step fails with FAILED_PRECONDITION (HTTP 400): …. Set errors_as_result: true to get ok: false and those fields as the result instead, so an app rule or workflow can branch on them.
  • Make one reference per function. Create it from Call Callable Function and set function_name as the reference's default, for example adminListPromoCodes.
  • Call Callable Function and Call HTTP Function are treated as Destructive, because a function can do anything. Use Call Callable Function (Read) only for functions that only read; reports, tables and lookups may run those.
  • Tokens are only sent to *.cloudfunctions.net, *.run.app, *.web.app, *.firebaseapp.com and the hosts listed in Function hosts.

Change triggers#

To start a workflow when a Firestore document (or Realtime Database path) changes:

  1. Create a workflow with a Webhook trigger and note its webhook slug.
  2. Set Webhook secret on the connector (Integrations → Connectors → Firebase, under credentials; it shows Not set until you do): any long random text. The other credentials stay as they are.
  3. Run Get Change Trigger Setup with hook (the slug) and path (for example bookings/{bookingId}). It returns the webhook URL and the code of a 2nd gen Cloud Function.
  4. In your Firebase project, run firebase functions:secrets:set USERTASKS_WEBHOOK_SECRET with the same secret. Add the function to your functions source and deploy it.

The function posts every change to /api/webhooks/firebase/<integration id>?hook=<slug>, signed with X-UserTasks-Signature: sha256=<HMAC-SHA256 of "<timestamp>.<body>"> and X-UserTasks-Timestamp. UserTasks refuses unsigned deliveries and timestamps more than 5 minutes off, and starts the workflow only once per event id (the function retries on errors). Add &events=created,updated to the URL to ignore deletes. The workflow gets these variables:

  • firebase_event: created, updated or deleted
  • firebase_path, firebase_document_id and firebase_collection
  • before and after (plain JSON), and data (after, or before for a delete; for another backend's envelope such as { id, type, createdAt, data }, its own data)
  • changed_fields and params
  • the webhook's payload mappings

Other signed webhooks. Set Webhook signature format to HMAC-SHA256 of the body and Webhook signature header to the backend's header (for example X-HobbiHopp-Signature). The same endpoint then accepts that backend's sha256=<hex> signed events. They have no timestamp, so the event id (or a hash of the body) stops repeats.

Without deploying a function. Schedule a workflow (every 5 minutes, say) that runs Documents Changed Since on a field your app sets on every write, such as updatedAt. Use lookback_minutes a little longer than the schedule, or keep next_since (in a data table) and pass it back as since. Firestore cannot filter on a document's own update time, so the field is needed.

Safety#

  • Risk levels. Every action is marked Read, Change or Destructive. Destructive covers deletes, access changes (disable / enable users, custom claims, revoking sessions, public files), credentials and links that grant access (custom tokens, sign-in and reset links, signed URLs, download URLs), whole-template Remote Config publishes, and function calls. Agents always ask a person before a destructive call, and MCP clients must pass confirm: true. Access: Read only turns off everything that is not Read.
  • Credentials in results. Email action links, custom tokens and signed URLs are masked in the integration call log. The value is still in the step's output for the next step to use.
  • Dry runs. dry_run on push sends and validate_only on Remote Config check without delivering or publishing.
  • Limits. Batches take at most 500 writes, uploads and downloads at most 50 MB, and push to many devices at most 500 tokens per call.

Errors#

Failures keep Google's status and body. error_message starts with the code, for example PERMISSION_DENIED (HTTP 403): …, followed by what to do: the role to grant, the API to enable, the index to create, the bucket to set. A 401 is retried once with a fresh token, and a 429 after Retry-After.

Actions#

Firestore (plain JSON)#

Enable: firestore.googleapis.com. Role: roles/datastore.user (roles/datastore.viewer for reads).

ActionRiskWhat it doesInputs (* required)Outputs
Read DocumentReadOne Firestore document as plain JSON (data) and as a flat row. missing_ok returns exists: false instead of a 404.document_path*, fields, missing_ok, transaction, read_timeexists, id, path, data, createTime, updateTime, row
Read Many DocumentsReadUp to 300 documents by path, or by id within one collection, in one call (batchGet), in the order given: for joins and lookups. missing lists the paths that do not exist.document_paths, collection_path, document_ids, fields, transactiondocuments, rows, missing, found_count, missing_count
List Collection DocumentsReadDocuments of a collection as plain rows, page by page (all_pages follows nextPageToken). For filters use Query Collection.collection_path*, order_by, fields, show_missing, pagingdocuments, rows, count, nextPageToken
Query CollectionReadFilter, sort and limit documents with plain JSON (no typed values), including collection group queries. all_pages follows query cursors; next_cursor continues where a page stopped (pass it as start_after).collection*, collection_group, parent_path, where, order_by, limit, prefix_field, prefix, select, start_after, start_at, end_at, end_before, query_json, transaction, read_time, pagingdocuments, rows, count, next_cursor, read_time
Count / Sum / Average DocumentsReadCount, sum or average over the documents a query matches without reading them (runAggregationQuery). aggregations: "count", "sum(amount)", or [{"op": "avg", "field": "rating", "alias": "avg_rating"}] (up to 5). Each alias is an output.aggregations, collection*, collection_group, parent_path, where, order_by, limit, prefix_field, prefix, query_json, transactioncount, values, read_time
List CollectionsReadThe collection ids at the database root, or the subcollections of a document.parent_pathcollection_ids, rows, count, nextPageToken
Set DocumentChangeCreate or overwrite a document with plain JSON data. Without merge the document is REPLACED; merge: true changes only the given fields (merge_fields: only those). Field transforms: {"$serverTimestamp": true}, {"$increment": 1}, {"$arrayUnion": [...]}, {"$arrayRemove": [...]}.document_path, data, merge, merge_fields, current_update_time, iso_strings_as_timestampsid, path, update_time, commit_time
Update Document FieldsChangeChange some fields of an existing document (fails if it does not exist). Keys may be dotted paths ("address.city"); {"$delete": true} removes a field; transforms as in Set Document.document_path, data, current_update_time, iso_strings_as_timestampsid, path, update_time, commit_time
Add DocumentChangeCreate a new document in a collection with plain JSON data; the id is generated (like add() in the SDKs) unless document_id is given. Fails if the id exists.collection_path, data, document_id, iso_strings_as_timestampsid, path, update_time, commit_time
Batch WriteDestructiveUp to 500 writes applied atomically (all or none): [{"op": "set" | "update" | "create" | "delete", "path": "users/alice", "data": {...}, "merge": true, "precondition": {"exists": true} | {"update_time": "..."}}]. Destructive because it may delete.writes*, transaction, iso_strings_as_timestampscommitted, write_count, commit_time, results
Begin TransactionReadStart a transaction: pass its id as transaction to reads (they lock what they read) and to Commit Transaction, or Rollback Transaction. Transactions expire after 270 seconds of inactivity.read_only, read_time, retry_transactiontransaction, read_only
Commit TransactionDestructiveCommit writes inside a transaction started with Begin Transaction: applied only if nothing the transaction read has changed (ABORTED otherwise: start again). Same writes format as Batch Write.transaction, writes, iso_strings_as_timestampscommitted, write_count, commit_time, results
Rollback TransactionChangeAbandon a transaction and release its locks.transaction*rolled_back, transaction
Delete DocumentsDestructiveDelete up to 500 documents by path in one atomic commit (subcollections are not deleted).document_paths*deleted, count, commit_time
Documents Changed SinceReadPolling trigger for a scheduled workflow: documents whose timestamp field (updatedAt by default; Firestore cannot filter on its own update time) is after since, or within the last lookback_minutes. Pass next_since back as since next time.collection*, collection_group, parent_path, timestamp_field, since, lookback_minutes, timestamp_is_string, wheredocuments, rows, count, changed, since, next_since, checked_at

Firestore (typed REST)#

Enable: firestore.googleapis.com. Role: roles/datastore.user (roles/datastore.viewer for reads).

ActionRiskWhat it doesInputs (* required)Outputs
List DocumentsReadList documents in a collection. Values use the Firestore typed encoding (fields.x.stringValue …). Page with page_token = the previous nextPageToken. List Collection Documents returns plain JSON.collection_path*, order_by, field_mask, show_missingdocuments, nextPageToken
Get DocumentReadFetch a single Firestore document by full document path (typed values; Read Document returns plain JSON)document_path*, field_maskname, fields, createTime, updateTime
Create DocumentChangeCreate a document in a collection. document_json is a Firestore document: {"fields": {"name": {"stringValue": "Ada"}, "age": {"integerValue": "36"}}}. Fails with 409 if document_id exists. Add Document takes plain JSON.collection_path, document_id, document_jsonname, fields, createTime
Update DocumentChangePatch a document. Without update_mask the whole document is REPLACED (fields you do not send are removed); set update_mask to change one field only. Creates the document when it does not exist unless current_document_exists is true. Update Document Fields takes plain JSON.document_path, document_json, update_mask, current_document_exists, current_update_timename, fields, updateTime
Delete DocumentDestructiveDelete a Firestore document by path (subcollections are not deleted)document_path*, current_document_exists—
Run QueryReadRun a structured query on top-level collections. The response is an array of {document, readTime} items. Page with structuredQuery.limit plus startAt/offset. Query Collection takes plain JSON and pages for you.query_json*—
Run Query (subcollection)ReadRun a structured query on the subcollections of a document (e.g. parent_path companies/acme, from orders)parent_path, query_json—

Authentication#

Enable: identitytoolkit.googleapis.com. Role: roles/firebaseauth.admin (roles/firebaseauth.viewer for reads).

ActionRiskWhat it doesInputs (* required)Outputs
Get UserReadA Firebase Authentication user by uid, email or phone number: profile, disabled, custom claims, sign-in providers and times.uid, email, phone_number, missing_okfound, uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Get UsersReadUp to 100 users by uid and / or email in one call; not_found lists the identifiers with no user.uids, emailsusers, count, not_found
List UsersReadFirebase Authentication users, up to 1000 per page (all_pages follows nextPageToken up to 5000).pagingusers, count, nextPageToken
Create UserChangeCreate a Firebase Authentication user (email and / or phone, optional password, display name, custom claims). Fails if the email, phone or uid is taken.email, password, display_name, phone_number, photo_url, email_verified, disabled, uid, custom_claimsuid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Update UserDestructiveChange a user's email, password, display name, phone, photo, email_verified or disabled. Destructive because email and password changes alter how the person signs in. "__delete__" clears display_name / photo_url.uid*, email, password, display_name, phone_number, remove_phone_number, photo_url, email_verified, disableduid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Disable UserDestructiveDisable a user: they cannot sign in or refresh their session (existing ID tokens last up to an hour; Revoke Refresh Tokens too to end sessions now).uid*uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Enable UserDestructiveEnable a disabled user so they can sign in again.uid*uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Delete UserDestructiveDelete a Firebase Authentication user permanently (their Firestore documents are not touched).uid*uid, deleted
Delete UsersDestructiveDelete up to 1000 users by uid in one call; errors lists the ones that failed.uids*requested, deleted_count, errors
Set Custom ClaimsDestructiveSet a user's custom claims (e.g. {"admin": true}): they appear in the user's ID token after it refreshes (up to an hour). merge keeps existing claims (null removes one); otherwise the claims are replaced. Destructive: claims usually grant access.uid, custom_claims, mergeuid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after
Revoke Refresh TokensDestructiveSign a user out everywhere: their refresh tokens stop working now (ID tokens already issued expire within an hour; Verify ID Token with check_revoked rejects them at once).uid*uid, revoked, tokens_valid_after
Generate Email Action LinkDestructiveA password reset, email verification or email sign-in link for a user, to send in your own email (Firebase does not send it). The link is a credential: it is masked in the call log.email*, link_type, continue_url, handle_in_app, new_email, link_domainlink, email, link_type
Verify ID TokenReadCheck a Firebase ID token from a signed-in app (signature, project, expiry) and return its uid, email and custom claims; check_revoked also rejects tokens of disabled users and revoked sessions. For single sign-on and API calls from Firebase apps.id_token*, check_revokedvalid, uid, email, email_verified, name, sign_in_provider, auth_time, exp, custom_claims
Create Custom TokenDestructiveA custom token an app exchanges with signInWithCustomToken to sign in as uid (valid one hour), signed with the service account key. A credential: masked in the call log.uid*, developer_claimscustom_token, uid, expires_in_seconds

Cloud Storage#

Enable: storage.googleapis.com. Role: roles/storage.objectAdmin on the bucket (roles/storage.objectViewer for reads; roles/storage.admin for ACLs).

ActionRiskWhat it doesInputs (* required)Outputs
List FilesReadFiles in the bucket under a prefix (folders_only lists the sub-folders at that level). Each file: name, size, content type, updated time, custom metadata.prefix, folders_only, match_glob, bucket, pagingobjects, rows, folders, count, nextPageToken
Get File MetadataReadA file's size, content type, times, hash and custom metadata. missing_ok returns exists: false instead of a 404.object_path*, missing_ok, bucketexists, name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, has_download_token
Update File MetadataChangeChange a file's custom metadata (null removes a key), content type or cache control.object_path*, metadata, content_type, cache_control, bucketname, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri
Download FileReadDownload a file (up to 50 MB) as a workflow file, ready for documents, emails and other connectors. as_text returns small text files inline instead.object_path*, file_name, as_text, bucketfile, name, content_type, size, text
Upload FileChangeUpload a workflow file (form attachment, generated document, downloaded file), base64 or text to the bucket (up to 50 MB). create_download_url adds a Firebase download token and returns its URL; if_not_exists refuses to overwrite.object_path*, file, content_base64, content_text, content_type, metadata, cache_control, resize_max_width, resize_max_height, jpeg_quality, create_download_url, if_not_exists, bucketname, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, download_url
Delete FileDestructiveDelete a file from the bucket. missing_ok treats a missing file as done.object_path*, missing_ok, bucketdeleted, name, bucket
Copy FileChangeCopy a file to another path (or bucket); large files are copied in steps.object_path, destination_path, destination_bucket, bucketname, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, source
Move FileDestructiveMove (rename) a file: copy to the new path, then delete the original.object_path, destination_path, destination_bucket, bucketname, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, source, moved
Create Signed URLDestructiveA time-limited V4 signed URL anyone can use to download (GET) or upload (PUT) one file without signing in, signed with the service account key (max 7 days). Grants access, so agents ask first.object_path*, method, expires_in_seconds, content_type, download_file_name, bucketurl, method, expires_at
Get Download URLDestructiveThe Firebase download URL for a file (what getDownloadURL() returns in the apps), creating a download token if the file has none. Anyone with the URL can read the file until the token is revoked.object_path*, bucketdownload_url, token_created
Make File Public / PrivateDestructiveGive everyone read access to a file (public: true) or remove it (public: false) with an object ACL. Buckets with uniform bucket-level access do not allow this: use Get Download URL or Create Signed URL.object_path*, public, bucketpublic, changed, public_url

Realtime Database#

Enable: firebasedatabase.googleapis.com. Role: roles/firebasedatabase.admin (roles/firebasedatabase.viewer for reads).

ActionRiskWhat it doesInputs (* required)Outputs
Read Database PathReadThe value at a Realtime Database path (as JSON, plus rows for an object of children). shallow returns only the child keys; with_etag returns the ETag for a conditional write.path, shallow, with_etag, database_urlexists, value, rows, etag, path
Query DatabaseReadChildren of a path filtered and limited by orderBy / equalTo / startAt / endAt / limitToFirst / limitToLast; rows has one row per child ({ _key, ...value }).path*, order_by, equal_to, start_at, start_after, end_at, end_before, limit_to_first, limit_to_last, database_urlexists, value, rows, path
Set Database ValueChangeWrite (replace) the value at a path. {".sv": "timestamp"} stores the server time. if_match writes only if the value is unchanged since a read with with_etag.path, value, if_match, confirm_root, database_urlpath, written
Update Database ChildrenChangeChange some children of a path, leaving the others (a multi-path update: keys may be paths like "a/b"; null deletes that child).path, value*, database_urlpath, written
Push to Database ListChangeAdd a child with a generated, time-ordered key under a path (like push() in the SDKs).path, value, database_urlkey, path
Delete Database PathDestructiveDelete the value at a path and everything under it (the root cannot be deleted here).path*, if_match, database_urlpath, deleted

Cloud Messaging#

Enable: fcm.googleapis.com. Role: roles/firebasecloudmessaging.admin.

ActionRiskWhat it doesInputs (* required)Outputs
Send Push NotificationChangeSend a push notification and / or data message to one device token, a topic, or a topic condition ("'news' in topics && 'ios' in topics"). dry_run validates without delivering.token, topic, condition, title, body, image_url, data, click_action_url, android_json, apns_json, webpush_json, analytics_label, dry_runmessage_id, dry_run
Send Push to Many DevicesChangeSend the same message to up to 500 device tokens. unregistered_tokens lists tokens to remove from your records (app uninstalled or token rotated).tokens*, title, body, image_url, data, click_action_url, android_json, apns_json, webpush_json, analytics_label, dry_runsuccess_count, failure_count, unregistered_tokens, results, dry_run
Subscribe Devices to TopicChangeSubscribe up to 1000 device tokens to a topic.topic, tokenstopic, success_count, failure_count, errors
Unsubscribe Devices from TopicChangeUnsubscribe up to 1000 device tokens from a topic.topic, tokenstopic, success_count, failure_count, errors

Cloud Functions#

Role: none for public or user-authenticated calls; roles/cloudfunctions.invoker or roles/run.invoker for service_account calls.

ActionRiskWhat it doesInputs (* required)Outputs
Call Callable FunctionDestructiveCall an onCall (callable) Cloud Function with data and return its result. auth "user" calls as a Firebase user (as_uid) so functions that check context.auth or an admin claim work; "service_account" sends an OIDC token. Treated as destructive (agents ask first): a function can do anything.function_name, region, url, auth, as_uid, id_token, timeout_seconds, data, errors_as_result, app_check_tokenok, result, error_status, error_code, error_text, error_details, auth, as_uid
Call Callable Function (Read)ReadCall a callable Cloud Function that ONLY READS (e.g. adminListGiftCards), so reports, tables and lookups may use it. Use Call Callable Function for anything that changes data.function_name, region, url, auth, as_uid, id_token, timeout_seconds, data, errors_as_resultok, result, error_status, error_code, error_text, error_details, auth, as_uid
Call HTTP FunctionDestructiveCall an HTTP (onRequest) Cloud Function with any method, path, query, headers and body; JSON answers are parsed. Treated as destructive (agents ask first).function_name, region, url, auth, as_uid, id_token, timeout_seconds, method, path, query_json, headers_json, body_json, body_textstatus_code, body, content_type

Remote Config#

Enable: firebaseremoteconfig.googleapis.com. Role: roles/firebaseremoteconfig.admin (…viewer for reads).

ActionRiskWhat it doesInputs (* required)Outputs
Get Remote Config TemplateReadThe published Remote Config template (or an older version), its etag (needed to publish) and its parameters as plain key: default value.version_numbertemplate, etag, version, parameters
Set Remote Config ParameterChangeChange one parameter's default value (or remove it) and publish: reads the template, changes it and publishes with its etag (retried once if someone published meanwhile). Roll back with Rollback Remote Config.key*, value, value_type, description, remove, validate_onlykey, before, after, removed, version, etag
Publish Remote Config TemplateDestructivePublish a whole Remote Config template (replaces conditions and parameters). etag from Get Remote Config Template makes it fail if someone published since; validate_only checks without publishing.template_json*, etag, force, validate_onlypublished, etag, version, parameters
List Remote Config VersionsReadPublished Remote Config versions, newest first: number, time, who published and how.—versions, rows, nextPageToken
Rollback Remote ConfigChangePublish an earlier version again (as a new version).version_number*rolled_back_to, version, etag, parameters

Change triggers#

Enable: cloudfunctions.googleapis.com (in your project, to deploy the function). Role: none (setup only).

ActionRiskWhat it doesInputs (* required)Outputs
Get Change Trigger SetupReadThe webhook URL and a ready-to-deploy 2nd gen Cloud Function that posts Firestore (or Realtime Database) changes, signed with the connector's webhook secret, to a Webhook-triggered workflow.hook, path, source, events, region, function_name, databasewebhook_url, function_code, secret_configured, steps

Was this page helpful?