> For the complete documentation index, see [llms.txt](https://clone-app-solutions.gitbook.io/cabme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clone-app-solutions.gitbook.io/cabme/configulation/firebase/google-service-account.md).

# Google Service Account

### &#x20;<a href="#google-service-account" id="google-service-account"></a>

In order to access a Firebase project using a server SDK, you must authenticate your requests to Firebase with [Service Account credentials](https://developers.google.com/identity/protocols/OAuth2ServiceAccount).

To authenticate a service account and authorize it to access Firebase services, you must generate a private key file in JSON format.

To generate a private key file for your service account:

1. Open <https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk> and select the project you want to generate a private key file for.

![](/files/1eoKJnOcv6NCPXwd6KHH)

1. Click **Generate New Private Key**, then confirm by clicking **Generate Key**
2. Securely store the JSON file containing the key.

After downloading the service account key, you need to upload this to the backend.

On the backend go to Admin > Api Credentials. Then upload the just downloaded **Firebase Service Account File (JSON)&#x20;*****\****.

![](/files/lgnJg4sWqilgZPMQdbR7)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clone-app-solutions.gitbook.io/cabme/configulation/firebase/google-service-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
