Apps Script API
The Apps Script API provides programmatic management of Google Apps Script projects—including creating projects, reading and updating their code files, handling deployments and immutable versions, retrieving execution metrics and process listings—and also allows executing a script function via the `run` endpoint.
Latency
153ms p95
Uptime
100.0% 30d
Playground
Verified
live
Endpoints
/v1/processes
List information about processes made by or on behalf of a user, such as process type and current status.
/v1/processes:listScriptProcesses
List information about a script's executed processes, such as process type and current status.
/v1/projects
Creates a new, empty script project with no script files and a base manifest file.
/v1/projects/{scriptId}
Gets a script project's metadata.
/v1/projects/{scriptId}/content
Gets the content of the script project, including the code source and metadata for each script file.
/v1/projects/{scriptId}/content
Updates the content of the specified script project. This content is stored as the HEAD version, and is used when the script is executed as a trigger, in the script editor, in add-on preview mode, or as a web app or Apps Script API in development mode. This clears all the existing files in the project.
/v1/projects/{scriptId}/deployments
Lists the deployments of an Apps Script project.
/v1/projects/{scriptId}/deployments
Creates a deployment of an Apps Script project.
/v1/projects/{scriptId}/deployments/{deploymentId}
Deletes a deployment of an Apps Script project.
/v1/projects/{scriptId}/deployments/{deploymentId}
Gets a deployment of an Apps Script project.
/v1/projects/{scriptId}/deployments/{deploymentId}
Updates a deployment of an Apps Script project.
/v1/projects/{scriptId}/metrics
Get metrics data for scripts, such as number of executions and active users.
/v1/projects/{scriptId}/versions
List the versions of a script project.
/v1/projects/{scriptId}/versions
Creates a new immutable version using the current code, with a unique version number.
/v1/projects/{scriptId}/versions/{versionNumber}
Gets a version of a script project.
/v1/scripts/{scriptId}:run
Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the script project **Overview** page and scroll down to "Project OAuth Scopes." The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.
16 endpoints auto-detected
Authentication
This API requires authentication: OAuth.
curl -X GET \ "https://script.googleapis.com/v1/processes"
script.googleapis.com · HTTPS only