Apps Script API

An API for managing and executing Google Apps Script projects.

Service: script.googleapis.com

All URIs below are relative to https://script.googleapis.com

This service provides the following discovery document:

REST Resource: v1.processes

Methods
list GET /v1/processes
List information about processes made by or on behalf of a user, such as process type and current status.
listScriptProcesses GET /v1/processes:listScriptProcesses
List information about a script's executed processes, such as process type and current status.

REST Resource: v1.projects

Methods
create POST /v1/projects
Creates a new, empty script project with no script files and a base manifest file.
get GET /v1/projects/{scriptId}
Gets a script project's metadata.
getContent GET /v1/projects/{scriptId}/content
Gets the content of the script project, including the code source and metadata for each script file.
getMetrics GET /v1/projects/{scriptId}/metrics
Get metrics data for scripts, such as number of executions and active users.
updateContent PUT /v1/projects/{scriptId}/content
Updates the content of the specified script project.

REST Resource: v1.projects.deployments

Methods
create POST /v1/projects/{scriptId}/deployments
Creates a deployment of an Apps Script project.
delete DELETE /v1/projects/{scriptId}/deployments/{deploymentId}
Deletes a deployment of an Apps Script project.
get GET /v1/projects/{scriptId}/deployments/{deploymentId}
Gets a deployment of an Apps Script project.
list GET /v1/projects/{scriptId}/deployments
Lists the deployments of an Apps Script project.
update PUT /v1/projects/{deploymentConfig.scriptId}/deployments/{deploymentId}
Updates a deployment of an Apps Script project.

REST Resource: v1.projects.versions

Methods
create POST /v1/projects/{scriptId}/versions
Creates a new immutable version using the current code, with a unique version number.
get GET /v1/projects/{scriptId}/versions/{versionNumber}
Gets a version of a script project.
list GET /v1/projects/{scriptId}/versions
List the versions of a script project.

REST Resource: v1.scripts

Methods
run POST /v1/scripts/{scriptId}:run
Runs a function in an Apps Script project.

Send feedback about...

Apps Script API
Apps Script API
Need help? Visit our support page.