Stay organized with collections Save and categorize content based on your preferences.
The Apps Script API requires different types of authorizations depending on your goal:
If you need to use the Apps Script API in your application, you must enable the API in the application's Google Cloud project. This allows you to create OAuth credentials so that users of the application can authorize it.
If you want to let third-party applications manage the content or deployment of your script projects, you must grant access to your script projects.
Using the Apps Script API in your appIf you want to use the Apps Script API inside your app, you must enable the Apps Script API in your application's GCP project. After enabling the Apps Script API, you can create OAuth credentials and download the client ID and secret to include in your application. You can also monitor the API usage in the Google Cloud console.
You can use this wizard to create or select a Google Cloud project in the API console and automatically enable the API. Alternatively, you can open the console's Manage Resources page, select a project, then search for and add the Apps Script API manually using the project's APIs & services dashboard. Once you've enabled the API, you can create OAuth credentials, client IDs, and client secrets for your applications in the APIs & services > Credentials panel.
The Apps Script API quickstarts provide a step-by-step look at the whole process of enabling the API and setting up authorization for an application.
Granting third-party applications access to your script projectsThe Apps Script API can allow applications to create and modify your scripts and their deployments. This can lead to a bad situation if you authorize a malicious third-party application which then proceeds to create more malicious scripts or modify the behavior of scripts you already have.
To help reduce this risk, the Apps Script API cannot access your script projects by default. You must explicitly grant the API access before you can use any application that creates or modifies scripts or deployments. Once you've granted the API access to your scripts, applications you authorize can use the API to manage your script projects.
An error results if you attempt to run an affected application without first granting the API access. This error occurs after you authorize the application.
Note: Applications can use the Apps Script API to execute Apps Script functions. These API requests do not require granting access to your script projects.You can grant the Apps Script API access to your script projects using the Apps Script dashboard. You can also use the dashboard to revoke this access at any time. When you grant the API access, you are doing so for all applications. Individual applications still need to be authorized, however.
Before you grant access, be sure you understand that there is a risk involved in allowing applications to modify your scripts. Never authorize any application that you suspect is malicious.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[[["The Apps Script API requires enabling in your Google Cloud project to use it within your own application, allowing you to create OAuth credentials for user authorization."],["To allow external applications to manage your script projects, you must grant access to them through the Apps Script dashboard, understanding the potential security risks involved."],["Granting access enables third-party applications to create, modify, and deploy your Apps Script projects but does not automatically authorize them; individual authorization is still required."],["Executing Apps Script functions through the API does not necessitate granting access to your script projects."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4