Google Apps Script Processes API
The Processes API from Google Apps Script — 1 operation(s) for processes.
The Processes API from Google Apps Script — 1 operation(s) for processes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-apps-script:google-apps-script-processes-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Apps Script API Processes API
version: v1
description: Generated from Google's published Discovery document for Apps Script API (script v1, revision 20261106). 2
operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
externalDocs:
url: https://developers.google.com/apps-script/api/
servers:
- url: https://script.googleapis.com
paths:
/v1/processes:
get:
operationId: script.processes.list
summary: List processes
description: List information about processes made by or on behalf of a user, such as process type and current status.
parameters:
- name: pageSize
in: query
required: false
description: The maximum number of returned processes per page of results. Defaults to 50.
schema:
format: int32
type: integer
- name: pageToken
in: query
required: false
description: The token for continuing a previous list request on the next page. This should be set to the value of
`nextPageToken` from a previous response.
schema:
type: string
- name: userProcessFilter.deploymentId
in: query
required: false
description: Optional field used to limit returned processes to those originating from projects with a specific deployment
ID.
schema:
type: string
- name: userProcessFilter.endTime
in: query
required: false
description: Optional field used to limit returned processes to those that completed on or before the given timestamp.
schema:
type: string
format: google-datetime
- name: userProcessFilter.functionName
in: query
required: false
description: Optional field used to limit returned processes to those originating from a script function with the
given function name.
schema:
type: string
- name: userProcessFilter.projectName
in: query
required: false
description: Optional field used to limit returned processes to those originating from projects with project names
containing a specific string.
schema:
type: string
- name: userProcessFilter.scriptId
in: query
required: false
description: Optional field used to limit returned processes to those originating from projects with a specific script
ID.
schema:
type: string
- name: userProcessFilter.startTime
in: query
required: false
description: Optional field used to limit returned processes to those that were started on or after the given timestamp.
schema:
format: google-datetime
type: string
- name: userProcessFilter.statuses
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified process statuses.
schema:
type: array
items:
enum:
- PROCESS_STATUS_UNSPECIFIED
- RUNNING
- PAUSED
- COMPLETED
- CANCELED
- FAILED
- TIMED_OUT
- UNKNOWN
- DELAYED
- EXECUTION_DISABLED
type: string
- name: userProcessFilter.types
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified process types.
schema:
type: array
items:
type: string
enum:
- PROCESS_TYPE_UNSPECIFIED
- ADD_ON
- EXECUTION_API
- TIME_DRIVEN
- TRIGGER
- WEBAPP
- EDITOR
- SIMPLE_TRIGGER
- MENU
- BATCH_TASK
- name: userProcessFilter.userAccessLevels
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified user access levels.
schema:
type: array
items:
enum:
- USER_ACCESS_LEVEL_UNSPECIFIED
- NONE
- READ
- WRITE
- OWNER
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListUserProcessesResponse'
4XX:
content: &id001
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id001
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/script.processes
- apiKey: []
tags:
- Processes
/v1/processes:listScriptProcesses:
get:
operationId: script.processes.listScriptProcesses
summary: List script processes processes
description: List information about a script's executed processes, such as process type and current status.
parameters:
- name: pageSize
in: query
required: false
description: The maximum number of returned processes per page of results. Defaults to 50.
schema:
format: int32
type: integer
- name: pageToken
in: query
required: false
description: The token for continuing a previous list request on the next page. This should be set to the value of
`nextPageToken` from a previous response.
schema:
type: string
- name: scriptId
in: query
required: false
description: The script ID of the project whose processes are listed.
schema:
type: string
- name: scriptProcessFilter.deploymentId
in: query
required: false
description: Optional field used to limit returned processes to those originating from projects with a specific deployment
ID.
schema:
type: string
- name: scriptProcessFilter.endTime
in: query
required: false
description: Optional field used to limit returned processes to those that completed on or before the given timestamp.
schema:
format: google-datetime
type: string
- name: scriptProcessFilter.functionName
in: query
required: false
description: Optional field used to limit returned processes to those originating from a script function with the
given function name.
schema:
type: string
- name: scriptProcessFilter.startTime
in: query
required: false
description: Optional field used to limit returned processes to those that were started on or after the given timestamp.
schema:
type: string
format: google-datetime
- name: scriptProcessFilter.statuses
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified process statuses.
schema:
type: array
items:
type: string
enum:
- PROCESS_STATUS_UNSPECIFIED
- RUNNING
- PAUSED
- COMPLETED
- CANCELED
- FAILED
- TIMED_OUT
- UNKNOWN
- DELAYED
- EXECUTION_DISABLED
- name: scriptProcessFilter.types
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified process types.
schema:
type: array
items:
enum:
- PROCESS_TYPE_UNSPECIFIED
- ADD_ON
- EXECUTION_API
- TIME_DRIVEN
- TRIGGER
- WEBAPP
- EDITOR
- SIMPLE_TRIGGER
- MENU
- BATCH_TASK
type: string
- name: scriptProcessFilter.userAccessLevels
in: query
required: false
description: Optional field used to limit returned processes to those having one of the specified user access levels.
schema:
type: array
items:
type: string
enum:
- USER_ACCESS_LEVEL_UNSPECIFIED
- NONE
- READ
- WRITE
- OWNER
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/ListScriptProcessesResponse'
4XX:
content: &id002
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content: *id002
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/script.processes
- apiKey: []
tags:
- Processes
components:
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/script.processes: View Google Apps Script processes
https://www.googleapis.com/auth/spreadsheets: See, edit, create, and delete all your Google Sheets spreadsheets
https://www.googleapis.com/auth/script.projects: Create and update Google Apps Script projects
https://www.googleapis.com/auth/documents: See, edit, create, and delete all your Google Docs documents
https://www.googleapis.com/auth/admin.directory.group: View and manage the provisioning of groups on your domain
https://www.google.com/m8/feeds: See, edit, download, and permanently delete your contacts
https://www.googleapis.com/auth/script.metrics: View Google Apps Script project's metrics
https://www.googleapis.com/auth/script.deployments.readonly: View Google Apps Script deployments
https://www.google.com/calendar/feeds: See, edit, share, and permanently delete all the calendars you can access
using Google Calendar
https://www.googleapis.com/auth/admin.directory.user: View and manage the provisioning of users on your domain
https://www.googleapis.com/auth/userinfo.email: See your primary Google Account email address
https://www.googleapis.com/auth/groups: View and manage your Google Groups
https://www.googleapis.com/auth/drive: See, edit, create, and delete all of your Google Drive files
https://www.googleapis.com/auth/script.deployments: Create and update Google Apps Script deployments
https://www.googleapis.com/auth/forms.currentonly: View and manage forms that this application has been installed
in
https://mail.google.com/: Read, compose, send, and permanently delete all your email from Gmail
https://www.googleapis.com/auth/forms: View and manage your forms in Google Drive
https://www.googleapis.com/auth/script.projects.readonly: View Google Apps Script projects
schemas:
GoogleAppsScriptTypeProcess:
properties:
userAccessLevel:
description: The executing users access level to the script.
type: string
enum:
- USER_ACCESS_LEVEL_UNSPECIFIED
- NONE
- READ
- WRITE
- OWNER
startTime:
format: google-datetime
description: Time the execution started.
type: string
processType:
enum:
- PROCESS_TYPE_UNSPECIFIED
- ADD_ON
- EXECUTION_API
- TIME_DRIVEN
- TRIGGER
- WEBAPP
- EDITOR
- SIMPLE_TRIGGER
- MENU
- BATCH_TASK
description: The executions type.
type: string
projectName:
description: Name of the script being executed.
type: string
runtimeVersion:
description: Which version of maestro to use to execute the script.
type: string
enum:
- RUNTIME_VERSION_UNSPECIFIED
- DEPRECATED_ES5
- V8
processStatus:
description: The executions status.
enum:
- PROCESS_STATUS_UNSPECIFIED
- RUNNING
- PAUSED
- COMPLETED
- CANCELED
- FAILED
- TIMED_OUT
- UNKNOWN
- DELAYED
- EXECUTION_DISABLED
type: string
duration:
description: Duration the execution spent executing.
type: string
format: google-duration
functionName:
description: Name of the function the started the execution.
type: string
description: Representation of a single script process execution that was started from the script editor, a trigger,
an application, or using the Apps Script API. This is distinct from the `Operation` resource, which only represents
executions started via the Apps Script API.
type: object
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
ListScriptProcessesResponse:
description: Response with the list of Process resources.
properties:
processes:
type: array
items:
$ref: '#/components/schemas/GoogleAppsScriptTypeProcess'
description: List of processes matching request parameters.
nextPageToken:
description: Token for the next page of results. If empty, there are no more pages remaining.
type: string
type: object
ListUserProcessesResponse:
description: Response with the list of Process resources.
properties:
processes:
type: array
description: List of processes matching request parameters.
items:
$ref: '#/components/schemas/GoogleAppsScriptTypeProcess'
nextPageToken:
description: Token for the next page of results. If empty, there are no more pages remaining.
type: string
type: object
x-provenance:
method: harvested
publisher: Google
source: https://script.googleapis.com/$discovery/rest?version=v1
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)