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.
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#
- 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).
- In UserTasks go to Integrations → Connectors → Databases and choose Firebase. Paste the key file into Service Account JSON.
- 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. - 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).
- Choose Access: Read only for a first phase against production (see below), or Read and write.
- 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 ….
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 }, androws, 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
datais the document's fields ({{ticket.subject}}when mapped toticket),rowits flat row andexiststrue 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 setiso_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:
{
"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:
{
"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,inandnot-in(up to 30 values).== nullbecomes an is-null filter. Wrap clauses in{"or": [...]}to OR them, and use{"status": "open"}as shorthand for equality. collection_group: truequeries every collection with that id at any depth.parent_pathqueries below one document.- Prefix search:
prefix_fieldplusprefixfinds documents whose field starts with the text. It is case-sensitive, and an index on that field is needed. - Paging.
all_pagesfollows query cursors (page_size, default 300) up tomax_pages(default 10, max 50) and 5,000 documents. Without it you get one page. In both casesnext_cursor(withtruncated: true) continues where the result stopped: pass it back asstart_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)andavg(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_idsin 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
transactionto 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 withABORTED; 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_timeset to itsupdateTime. 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 seescontext.auth.uidand the user's claims, so admin callables that check an admin user work unchanged. The ID token is cached for its hour.as_uidon 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. Grantroles/cloudfunctions.invokerorroles/run.invoker. - Errors. A function's
HttpsErrorkeeps its status, message and details:error_status(FAILED_PRECONDITION),error_code(details.code, for exampleover_capacity),error_textanderror_details. By default the step fails withFAILED_PRECONDITION (HTTP 400): …. Seterrors_as_result: trueto getok: falseand 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_nameas 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.comand the hosts listed in Function hosts.
Change triggers#
To start a workflow when a Firestore document (or Realtime Database path) changes:
- Create a workflow with a Webhook trigger and note its webhook slug.
- 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.
- Run Get Change Trigger Setup with
hook(the slug) andpath(for examplebookings/{bookingId}). It returns the webhook URL and the code of a 2nd gen Cloud Function. - In your Firebase project, run
firebase functions:secrets:set USERTASKS_WEBHOOK_SECRETwith 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,updatedordeletedfirebase_path,firebase_document_idandfirebase_collectionbeforeandafter(plain JSON), anddata(after, orbeforefor a delete; for another backend's envelope such as{ id, type, createdAt, data }, its owndata)changed_fieldsandparams- 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_runon push sends andvalidate_onlyon 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).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Read Document | Read | One 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_time | exists, id, path, data, createTime, updateTime, row |
| Read Many Documents | Read | Up 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, transaction | documents, rows, missing, found_count, missing_count |
| List Collection Documents | Read | Documents 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, paging | documents, rows, count, nextPageToken |
| Query Collection | Read | Filter, 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, paging | documents, rows, count, next_cursor, read_time |
| Count / Sum / Average Documents | Read | Count, 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, transaction | count, values, read_time |
| List Collections | Read | The collection ids at the database root, or the subcollections of a document. | parent_path | collection_ids, rows, count, nextPageToken |
| Set Document | Change | Create 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_timestamps | id, path, update_time, commit_time |
| Update Document Fields | Change | Change 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_timestamps | id, path, update_time, commit_time |
| Add Document | Change | Create 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_timestamps | id, path, update_time, commit_time |
| Batch Write | Destructive | Up 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_timestamps | committed, write_count, commit_time, results |
| Begin Transaction | Read | Start 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_transaction | transaction, read_only |
| Commit Transaction | Destructive | Commit 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_timestamps | committed, write_count, commit_time, results |
| Rollback Transaction | Change | Abandon a transaction and release its locks. | transaction* | rolled_back, transaction |
| Delete Documents | Destructive | Delete up to 500 documents by path in one atomic commit (subcollections are not deleted). | document_paths* | deleted, count, commit_time |
| Documents Changed Since | Read | Polling 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, where | documents, rows, count, changed, since, next_since, checked_at |
Firestore (typed REST)#
Enable: firestore.googleapis.com. Role: roles/datastore.user (roles/datastore.viewer for reads).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| List Documents | Read | List 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_missing | documents, nextPageToken |
| Get Document | Read | Fetch a single Firestore document by full document path (typed values; Read Document returns plain JSON) | document_path*, field_mask | name, fields, createTime, updateTime |
| Create Document | Change | Create 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_json | name, fields, createTime |
| Update Document | Change | Patch 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_time | name, fields, updateTime |
| Delete Document | Destructive | Delete a Firestore document by path (subcollections are not deleted) | document_path*, current_document_exists | — |
| Run Query | Read | Run 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) | Read | Run 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).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Get User | Read | A Firebase Authentication user by uid, email or phone number: profile, disabled, custom claims, sign-in providers and times. | uid, email, phone_number, missing_ok | found, uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after |
| Get Users | Read | Up to 100 users by uid and / or email in one call; not_found lists the identifiers with no user. | uids, emails | users, count, not_found |
| List Users | Read | Firebase Authentication users, up to 1000 per page (all_pages follows nextPageToken up to 5000). | paging | users, count, nextPageToken |
| Create User | Change | Create 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_claims | uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after |
| Update User | Destructive | Change 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, disabled | uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after |
| Disable User | Destructive | Disable 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 User | Destructive | Enable 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 User | Destructive | Delete a Firebase Authentication user permanently (their Firestore documents are not touched). | uid* | uid, deleted |
| Delete Users | Destructive | Delete up to 1000 users by uid in one call; errors lists the ones that failed. | uids* | requested, deleted_count, errors |
| Set Custom Claims | Destructive | Set 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, merge | uid, email, email_verified, phone_number, display_name, photo_url, disabled, custom_claims, providers, created_at, last_sign_in_at, tokens_valid_after |
| Revoke Refresh Tokens | Destructive | Sign 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 Link | Destructive | A 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_domain | link, email, link_type |
| Verify ID Token | Read | Check 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_revoked | valid, uid, email, email_verified, name, sign_in_provider, auth_time, exp, custom_claims |
| Create Custom Token | Destructive | A 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_claims | custom_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).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| List Files | Read | Files 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, paging | objects, rows, folders, count, nextPageToken |
| Get File Metadata | Read | A file's size, content type, times, hash and custom metadata. missing_ok returns exists: false instead of a 404. | object_path*, missing_ok, bucket | exists, name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, has_download_token |
| Update File Metadata | Change | Change a file's custom metadata (null removes a key), content type or cache control. | object_path*, metadata, content_type, cache_control, bucket | name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri |
| Download File | Read | Download 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, bucket | file, name, content_type, size, text |
| Upload File | Change | Upload 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, bucket | name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, download_url |
| Delete File | Destructive | Delete a file from the bucket. missing_ok treats a missing file as done. | object_path*, missing_ok, bucket | deleted, name, bucket |
| Copy File | Change | Copy a file to another path (or bucket); large files are copied in steps. | object_path, destination_path, destination_bucket, bucket | name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, source |
| Move File | Destructive | Move (rename) a file: copy to the new path, then delete the original. | object_path, destination_path, destination_bucket, bucket | name, bucket, size, content_type, updated, created, md5_hash, generation, metadata, gs_uri, source, moved |
| Create Signed URL | Destructive | A 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, bucket | url, method, expires_at |
| Get Download URL | Destructive | The 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*, bucket | download_url, token_created |
| Make File Public / Private | Destructive | Give 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, bucket | public, changed, public_url |
Realtime Database#
Enable: firebasedatabase.googleapis.com. Role: roles/firebasedatabase.admin (roles/firebasedatabase.viewer for reads).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Read Database Path | Read | The 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_url | exists, value, rows, etag, path |
| Query Database | Read | Children 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_url | exists, value, rows, path |
| Set Database Value | Change | Write (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_url | path, written |
| Update Database Children | Change | Change 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_url | path, written |
| Push to Database List | Change | Add a child with a generated, time-ordered key under a path (like push() in the SDKs). | path, value, database_url | key, path |
| Delete Database Path | Destructive | Delete the value at a path and everything under it (the root cannot be deleted here). | path*, if_match, database_url | path, deleted |
Cloud Messaging#
Enable: fcm.googleapis.com. Role: roles/firebasecloudmessaging.admin.
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Send Push Notification | Change | Send 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_run | message_id, dry_run |
| Send Push to Many Devices | Change | Send 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_run | success_count, failure_count, unregistered_tokens, results, dry_run |
| Subscribe Devices to Topic | Change | Subscribe up to 1000 device tokens to a topic. | topic, tokens | topic, success_count, failure_count, errors |
| Unsubscribe Devices from Topic | Change | Unsubscribe up to 1000 device tokens from a topic. | topic, tokens | topic, 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.
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Call Callable Function | Destructive | Call 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_token | ok, result, error_status, error_code, error_text, error_details, auth, as_uid |
| Call Callable Function (Read) | Read | Call 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_result | ok, result, error_status, error_code, error_text, error_details, auth, as_uid |
| Call HTTP Function | Destructive | Call 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_text | status_code, body, content_type |
Remote Config#
Enable: firebaseremoteconfig.googleapis.com. Role: roles/firebaseremoteconfig.admin (…viewer for reads).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Get Remote Config Template | Read | The published Remote Config template (or an older version), its etag (needed to publish) and its parameters as plain key: default value. | version_number | template, etag, version, parameters |
| Set Remote Config Parameter | Change | Change 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_only | key, before, after, removed, version, etag |
| Publish Remote Config Template | Destructive | Publish 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_only | published, etag, version, parameters |
| List Remote Config Versions | Read | Published Remote Config versions, newest first: number, time, who published and how. | — | versions, rows, nextPageToken |
| Rollback Remote Config | Change | Publish 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).
| Action | Risk | What it does | Inputs (* required) | Outputs |
|---|---|---|---|---|
| Get Change Trigger Setup | Read | The 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, database | webhook_url, function_code, secret_configured, steps |