# Firebase integration

> Google Firebase backend platform: Firestore documents and queries, Firebase Auth user administration, Realtime Database, and FCM push notifications via a service account.

- Authentication: apiKey

## Tools (27)

- **Batch Delete Auth Users**: Delete up to 1000 Firebase Auth users in one call
- **Batch Get Firestore Documents**: Fetch up to hundreds of Firestore documents by name in one call
- **Batch Write Firestore Documents**: Apply many Firestore writes in one non-atomic request
- **Commit Firestore Writes**: Apply multiple Firestore writes atomically (all succeed or none)
- **Create Auth User**: Create a Firebase Auth user with email/password or explicit uid
- **Create Firestore Document**: Create a new document in a Firestore collection
- **Delete Auth User**: Permanently delete one Firebase Auth user
- **Delete Firestore Document**: Delete a Firestore document by path
- **Delete Realtime Database Data**: Remove the JSON subtree at a Realtime Database path
- **Download All Auth Users**: Page through every Firebase Auth user in the project
- **Generate Email Action Link**: Generate a password-reset, email-verification, or sign-in link for a user
- **Get Firestore Document**: Fetch a single Firestore document by its path
- **List Firestore Collection IDs**: Discover collection ids at the database root or under a document
- **List Firestore Databases**: List the Firestore databases in a project
- **List Firestore Documents**: List documents in a Firestore collection with pagination and ordering
- **List Firestore Indexes**: List composite indexes for a collection group
- **Look Up Auth Users**: Fetch Firebase Auth users by uid, email, or phone number
- **Push Realtime Database Data**: Append a value under an auto-generated chronological key
- **Query Auth Users**: Search or count Firebase Auth users with filters and ordering
- **Read Realtime Database Data**: Read JSON at a Realtime Database path with optional filtering
- **Run Firestore Aggregation Query**: Count, sum, or average over a Firestore query without fetching documents
- **Run Firestore Query**: Run a structured query against a Firestore collection with filters, ordering, and limits
- **Send Push Notification (FCM)**: Send a push notification to a device token, topic, or condition via FCM v1
- **Set Realtime Database Data**: Replace the JSON at a Realtime Database path
- **Update Auth User**: Admin-update a Firebase Auth user: disable, custom claims, email, password
- **Update Firestore Document**: Patch fields on a Firestore document (upserts by default)
- **Update Realtime Database Data**: Merge specific children into a Realtime Database path without replacing it

## Triggers (1)

- **New Firestore Document**: Triggers when a new document is added to a Firestore collection, ordered by a timestamp field on the document

## Related prompts

- [Weekday growth digest of new signups, emailed to your team](https://www.generalinput.com/prompts/weekday-growth-digest-of-new-signups-emailed-to-your-team.md)
- [Turn new Firebase documents into Google Sheet rows](https://www.generalinput.com/prompts/turn-new-firebase-documents-into-google-sheet-rows.md)
- [Sync Stripe subscription status to your Firebase users](https://www.generalinput.com/prompts/sync-stripe-subscription-status-to-your-firebase-users.md)

Connect Firebase in General Input: https://www.generalinput.com/apps/firebase