Mantieni tutto organizzato con le raccolte Salva e classifica i contenuti in base alle tue preferenze.
L'API Google Apps Script consente di creare, modificare ed eseguire il deployment dei progetti Apps Script in modo programmatico, azioni che altrimenti richiedono l'utilizzo dell'editor Apps Script. Le tue app possono utilizzare l'API per gestire i tuoi progetti di script, creare ed eseguire il deployment di nuove versioni di script e monitorare le esecuzioni degli script.
L'API Apps Script sostituisce ed estende anche l'API Apps Script Execution. Puoi utilizzare l'API Apps Script per eseguire funzioni di Apps Script da remoto, proprio come con l'API Execution.
Panoramica dell'API
L'API Apps Script è suddivisa in diverse risorse, ognuna con uno scopo specifico e un insieme di richieste che puoi effettuare. Queste risorse sono le seguenti:
projects: una rappresentazione di un progetto di script. L'API fornisce metodi per creare, leggere, monitorare e modificare i progetti.
projects.deployments — Una rappresentazione di un deployment di script. L'API fornisce metodi per creare, elencare, aggiornare ed eliminare le implementazioni dei progetti di script.
projects.versions — Una rappresentazione di una versione del progetto di script. L'API fornisce metodi per creare e leggere le versioni del progetto.
processes: una rappresentazione dell'esecuzione di una funzione di script. L'API fornisce metodi per elencare i processi esistenti e raccogliere informazioni su di essi, come il tipo e lo stato attuale.
scripts: l'endpoint che fornisce metodi per eseguire da remoto le funzioni di Apps Script.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-04 UTC."],[[["\u003cp\u003eThe Google Apps Script API allows programmatic management of Apps Script projects, including creation, modification, and deployment.\u003c/p\u003e\n"],["\u003cp\u003eThis API enables remote execution of Apps Script functions and extends the capabilities of the Apps Script Execution API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the API to manage script projects, deploy versions, and monitor script executions.\u003c/p\u003e\n"],["\u003cp\u003eKey resources within the API include projects, deployments, versions, processes, and scripts for comprehensive control.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial to enable the API and grant access for third-party app management of your scripts.\u003c/p\u003e\n"]]],[],null,["# Introduction\n\nThe Google Apps Script API lets you programmatically create, modify, and\ndeploy Apps Script projects---actions that otherwise require you to\nuse the Apps Script editor. Your apps can use the API to manage your\nscript projects, create and deploy new script versions, and monitor script\nexecutions.\n| **Warning:** The Apps Script API does not work with [service accounts](https://developers.google.com/identity/protocols/OAuth2ServiceAccount).\n\nThe Apps Script API also replaces and extends the Apps Script Execution API.\nYou can use the Apps Script API to execute Apps Script functions remotely,\njust as you could with the Execution API.\n| **Note:** In order to use this API in your apps, you must [enable it for use](/apps-script/api/how-tos/enable#using_the_apps_script_api_in_your_app). To allow other apps to manage your scripts, you must [grant them access](/apps-script/api/how-tos/enable#granting_third-party_applications_access_to_your_script_projects%22).\n\nOverview of the API\n-------------------\n\nThe Apps Script API is divided into several resources, each with a specific\npurpose and set of requests you can make. These resources are the following:\n\n- [`projects`](/apps-script/api/reference/rest/v1/projects) --- A representation of a script project. The API provides methods to create, read, monitor, and modify projects.\n- [`projects.deployments`](/apps-script/api/reference/rest/v1/projects.deployments) --- A representation of a script deployment. The API provides methods to create, list, update, and delete script project deployments.\n- [`projects.versions`](/apps-script/api/reference/rest/v1/projects.versions) --- A representation of a script project version. The API provides methods to create and read project versions.\n- [`processes`](/apps-script/api/reference/rest/v1/processes) --- A representation of a script function execution. The API provides methods to list existing processes and gather information about them, such as type and current status.\n- [`scripts`](/apps-script/api/reference/rest/v1/scripts) --- The endpoint that provides methods to remotely execute Apps Script functions."]]