AI-generated Key Takeaways
- 
          This page describes how to list the deployments of an Apps Script project using a GET HTTP request. 
- 
          The request requires a scriptIdpath parameter and can optionally includepageTokenandpageSizequery parameters.
- 
          The request body must be empty. 
- 
          The response body contains a list of deployments and a nextPageTokenfor pagination.
- 
          Authorization requires specific OAuth scopes for script deployments. 
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Lists the deployments of an Apps Script project.
HTTP request
GET https://script.googleapis.com/v1/projects/{scriptId}/deployments
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| scriptId | 
 The script project's Drive ID. | 
Query parameters
| Parameters | |
|---|---|
| pageToken | 
 The token for continuing a previous list request on the next page. This should be set to the value of  | 
| pageSize | 
 The maximum number of deployments on each returned page. Defaults to 50. | 
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
Response with the list of deployments for the specified Apps Script project.
| JSON representation | 
|---|
| {
  "deployments": [
    {
      object ( | 
| Fields | |
|---|---|
| deployments[] | 
 The list of deployments. | 
| nextPageToken | 
 The token that can be used in the next call to get the next page of results. | 
Authorization Scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/script.deployments
- https://www.googleapis.com/auth/script.deployments.readonly
For more information, see the OAuth 2.0 Overview.