Page Summary
-
An Apps Script project's manifest file defines its function or purpose.
-
The manifest uses a JSON data structure with various fields for configuration.
-
Fields in the manifest can configure the project as a Google Workspace add-on, Google Chat app, or web app.
-
The manifest includes configurations for dependencies, exception logging, authorization scopes, runtime version, and time zone.
-
A URL allowlist can be used in the manifest to restrict fetched URL endpoints.
This page describes the top-level of the Google Apps Script manifest file JSON data structure. The manifest defines the Apps Script project function or purpose.
| JSON representation |
|---|
{
"addOns": {
object (AddOns)
},
"chat": {},
"dependencies": {
object (Dependencies)
},
"exceptionLogging": string,
"executionApi": {
object (ExecutionApi)
},
"oauthScopes": [
string
],
"runtimeVersion": string,
"sheets": {
object (Sheets)
},
"timeZone": string,
"urlFetchWhitelist": [
string
],
"webapp": {
object (Webapp)
}
} |
| Fields | |
|---|---|
addOns |
The project resource configuration if deployed as a Google Workspace add-on. |
chat |
The project configuration if deployed as a Google Chat app. For new Chat apps, use the
To configure Chat app details, you must enable the Google Chat API. For details, see Configure the Google Chat API.
Apps Script handles authorization at the script level.
A Chat app that requires authorization
cannot perform actions until the user authorizes it. To post a
message before authorization, add an
The following example shows a Chat app that responds with a default welcome message when a user adds it to a Chat space:
"chat": {
"addToSpaceFallbackMessage": "Thank you for adding me!"
}
|
dependencies |
The configuration of advanced services and libraries enabled for use by the script project. |
exceptionLogging |
The location where exceptions are logged. Valid settings include:
|
executionApi |
The script project API executable configuration. This is only used if the project is deployed for API execution. |
oauthScopes[] |
The definition of authorization scopes used by the script project. |
runtimeVersion |
The runtime version the
script is using. If omitted, the script uses the default runtime
(
|
sheets |
The resource configuration defining Sheets macros. |
timeZone |
The script time zone in a ZoneId value such as "America/Denver". |
urlFetchWhitelist[] |
A list of HTTPS URL prefixes. If present, any URL endpoint fetched must match a prefix in this list. This helps protect user data. This field is optional for test deployments but required for deployments. Learn more about allowlisting URLs. |
webapp |
The script project web app configuration, used if the project is deployed as a web app. |