Introduction

  • The Google Apps Script API allows programmatically creating, modifying, and deploying Apps Script projects.

  • This API replaces and extends the Apps Script Execution API for remote function execution.

  • The API is divided into resources for managing projects, deployments, versions, processes, and script executions.

  • The Apps Script API does not work with service accounts and requires enabling and granting access for third-party applications.

The Google Apps Script API lets you programmatically create, modify, anddeploy Apps Script projects—actions that otherwise require you touse the Apps Script editor. Your apps can use the API to manage yourscript projects, create and deploy new script versions, and monitor scriptexecutions.

Warning: The Apps Script API does not work withservice accounts.

The Apps Script API also replaces and extends the Apps Script Execution API.You can use the Apps Script API to execute Apps Script functions remotely,just as you could with the Execution API.

Note: In order to use this API in your apps, you mustenable it for use.To allow other apps to manage your scripts, you mustgrant them access.

Overview of the API

The Apps Script API is divided into several resources, each with a specificpurpose and set of requests you can make. These resources are the following:

  • projects — Arepresentation of a script project. The API provides methods to create,read, monitor, and modify projects.
  • projects.deployments— A representation of a script deployment. The API provides methods tocreate, list, update, and delete script project deployments.
  • projects.versions— A representation of a script project version. The API providesmethods to create and read project versions.
  • processes — Arepresentation of a script function execution. The API provides methods tolist existing processes and gather information about them, such as typeand current status.
  • scripts — The endpointthat provides methods to remotely execute Apps Script functions.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.