Go to console

Method: projects.webApps.getConfig

Gets the configuration artifact associated with the specified WebApp.

HTTP request

GET https://firebase.googleapis.com/v1beta1/{name=projects/*/webApps/*/config}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The resource name of the App configuration to download, in the format:

projects/projectId/webApps/appId/config


As an appId is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format:

projects/-/webApps/appId

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Configuration metadata of a single Firebase App for the web.

JSON representation
{
  "projectId": string,
  "appId": string,
  "databaseURL": string,
  "storageBucket": string,
  "locationId": string,
  "apiKey": string,
  "authDomain": string,
  "messagingSenderId": string
}
Fields
projectId

string

Immutable. The globally unique, user-assigned project ID of the parent Project for the App.

appId

string

Immutable. The globally unique, Firebase-assigned identifier of the App.

databaseURL

string

The default Firebase Realtime Database URL.

storageBucket

string

The default Cloud Storage for Firebase storage bucket name.

locationId

string

The default resource location of other Firebase resources (such as Cloud Firestore).
For examples, see https://cloud.google.com/appengine/docs/locations.

apiKey

string

The API key associated with the web App.

authDomain

string

The domain Firebase Auth configures for OAuth redirects, in the format:

projectId.firebaseapp.com

messagingSenderId

string

The sender ID for use with Firebase Cloud Messaging.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Try it!