Google Drive Approvals API

The Approvals API from Google Drive — 8 operation(s) for approvals.

GitHub OpenAPI

Operations 8

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /drive/v3/files/{fileId}/approvals/{approvalId}:reassign Reassign reviewers on an approval · Reassign approvals #
Ask an LLM
“How do I add new reviewers to an approval that's still in progress?”
“Can I replace a reviewer on an approval I started?”
Tell an agent
Reassign approval {approvalId} on file {fileId} to reviewers {replaceReviewers}.
Add reviewers {addReviewers} to approval {approvalId} on file {fileId}.
POST /drive/v3/files/{fileId}/approvals/{approvalId}:decline Decline an approval · Decline approvals #
Ask an LLM
“How do I decline an approval I was asked to review?”
“What happens to an approval when a reviewer declines it?”
Tell an agent
Decline approval {approvalId} on file {fileId}.
Decline approval {approvalId} on file {fileId} with the message {message}.
POST /drive/v3/files/{fileId}/approvals/{approvalId}:approve Approve an approval · Approve approvals #
Ask an LLM
“How do I approve an approval I was asked to review?”
“Does approving an approval complete it if I'm the last reviewer?”
Tell an agent
Approve approval {approvalId} on file {fileId}.
Approve approval {approvalId} on file {fileId} with the message {message}.
POST /drive/v3/files/{fileId}/approvals:start Start an approval on a file · Start approvals #
Ask an LLM
“How do I start an approval on a file so reviewers can sign off?”
“Can I set a due date when starting an approval?”
Tell an agent
Start an approval on file {fileId} for reviewers {reviewerEmails}.
Start an approval on file {fileId} for {reviewerEmails} due {dueTime}.
GET /drive/v3/files/{fileId}/approvals/{approvalId} Get an approval · Get approvals #
Ask an LLM
“What are the current responses on a specific approval?”
“Can I look up one approval on a file by its ID?”
Tell an agent
Get approval {approvalId} on file {fileId}.
Show the status of approval {approvalId} on file {fileId}.
POST /drive/v3/files/{fileId}/approvals/{approvalId}:comment Comment on an approval · Comment approvals #
Ask an LLM
“How do I leave a comment on an approval for reviewers to see?”
“Can I add a note to an approval's activity log?”
Tell an agent
Comment {message} on approval {approvalId} of file {fileId}.
Leave a note on approval {approvalId} on file {fileId}.
GET /drive/v3/files/{fileId}/approvals List approvals on a file · List approvals #
Ask an LLM
“Which approvals are open on a file?”
“Can I page through all approvals on a file?”
Tell an agent
List approvals on file {fileId}.
Show the first {pageSize} approvals on file {fileId}.
POST /drive/v3/files/{fileId}/approvals/{approvalId}:cancel Cancel an approval · Cancel approvals #
Ask an LLM
“How do I cancel an approval that's still in progress?”
“Can I cancel an approval I started before it's completed?”
Tell an agent destructive · confirm first
Cancel approval {approvalId} on file {fileId}.
Cancel approval {approvalId} on file {fileId} with the message {message}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-drive:google-drive-approvals-api"
All apis
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.

Get an API 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 Specification

google-drive-approvals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Drive Approvals API
  version: v3
  description: Generated from Google's published Discovery document for Google Drive API (drive v3, revision 20261106). 8 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://www.googleapis.com
tags:
- name: Approvals
paths:
  /drive/v3/files/{fileId}/approvals/{approvalId}:reassign:
    post:
      operationId: drive.approvals.reassign
      summary: Reassign approvals
      description: Reassigns the reviewers on an approval. For more information, see Manage approvals. Adds or replaces reviewers in the ReviewerResponse of the approval. This can be called by any user with the `writer` permission on the file while the approval Status is `IN_PROGRESS` and the Response for the reviewer being reassigned is `NO_RESPONSE`. A user with the `reader` permission can only reassign an approval that's assigned to themselves. Removing a reviewer isn't allowed.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval to reassign.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReassignApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals/{approvalId}:decline:
    post:
      operationId: drive.approvals.decline
      summary: Decline approvals
      description: Declines an approval. For more information, see Manage approvals. This is used to update the ReviewerResponse of the requesting user with a Response of `DECLINED`. This also completes the approval and sets the approval Status to `DECLINED`.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval to decline.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeclineApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals/{approvalId}:approve:
    post:
      operationId: drive.approvals.approve
      summary: Approve approvals
      description: Approves an approval. For more information, see Manage approvals. This is used to update the ReviewerResponse of the requesting user with a Response of `APPROVED`. If this is the last required reviewer response, this also completes the approval and sets the approval Status to `APPROVED`.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval to approve.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApproveApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals:start:
    post:
      operationId: drive.approvals.start
      summary: Start approvals
      description: Starts an approval on a file. For more information, see Manage approvals.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is created on.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StartApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals/{approvalId}:
    get:
      operationId: drive.approvals.get
      summary: Get approvals
      description: Gets an approval by ID. For more information, see Manage approvals.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.appdata
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
        - https://www.googleapis.com/auth/drive.metadata.readonly
        - https://www.googleapis.com/auth/drive.readonly
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals/{approvalId}:comment:
    post:
      operationId: drive.approvals.comment
      summary: Comment approvals
      description: Comments on an approval. For more information, see Manage approvals. This sends a notification to both the initiator and the reviewers. Additionally, a message is also added to the approval activity log.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval to comment on.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CommentApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals:
    get:
      operationId: drive.approvals.list
      summary: List approvals
      description: Lists the approvals on a file. For more information, see Manage approvals. By default, this method returns a minimal response that may not include the items array. To retrieve approval details, you must explicitly specify the fields you want using the `fields` query parameter. To return the exact fields you need, see Return specific fields.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: pageSize
        in: query
        required: false
        description: The maximum number of approvals to return. When not set, at most 100 approvals are returned.
        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
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalList'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.appdata
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
        - https://www.googleapis.com/auth/drive.metadata.readonly
        - https://www.googleapis.com/auth/drive.readonly
      - apiKey: []
      tags:
      - Approvals
  /drive/v3/files/{fileId}/approvals/{approvalId}:cancel:
    post:
      operationId: drive.approvals.cancel
      summary: Cancel approvals
      description: Cancels an approval. For more information, see Manage approvals. Updates the approval Status to `CANCELLED`. This can be called by any user with the `writer` permission on the file while the approval Status is `IN_PROGRESS`.
      parameters:
      - name: fileId
        in: path
        required: true
        description: Required. The ID of the file that the approval is on.
        schema:
          type: string
      - name: approvalId
        in: path
        required: true
        description: Required. The ID of the approval to cancel.
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelApprovalRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Approval'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/drive
        - https://www.googleapis.com/auth/drive.file
        - https://www.googleapis.com/auth/drive.metadata
      - apiKey: []
      tags:
      - Approvals
components:
  schemas:
    AddReviewer:
      description: Representation of a reviewer addition.
      type: object
      properties:
        addedReviewerEmail:
          type: string
          description: Required. The email of the reviewer to add.
    ApproveApprovalRequest:
      properties:
        message:
          type: string
          description: Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.
      description: Request for approving an approval as a reviewer.
      type: object
    StartApprovalRequest:
      description: Allows creating an approval on a file.
      type: object
      properties:
        fileContentChangeBehavior:
          enum:
          - FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED
          - RESET_APPROVAL
          - NO_APPROVAL_ACTION
          type: string
          description: Optional. The behavior of the approval when the file content changes.
        dueTime:
          format: google-datetime
          type: string
          description: Optional. The time that the approval is due.
        lockFile:
          type: boolean
          description: Optional. Whether to lock the file when starting the approval.
        reviewerEmails:
          type: array
          items:
            type: string
          description: Required. The emails of the users who are set to review the approval.
        message:
          description: Optional. A message to send to reviewers when notifying them of the approval request.
          type: string
    CommentApprovalRequest:
      description: Request for commenting on an approval.
      type: object
      properties:
        message:
          type: string
          description: Required. A message to comment on the approval. This message is included in notifications for the action and in the approval activity log.
    DeclineApprovalRequest:
      properties:
        message:
          description: Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.
          type: string
      description: Request for declining an approval as a reviewer.
      type: object
    CancelApprovalRequest:
      description: Request for cancelling an approval as an initiator.
      properties:
        message:
          description: Optional. A message to accompany the cancellation of the approval. This message is included in notifications for the action and in the approval activity log.
          type: string
      type: object
    ReassignApprovalRequest:
      description: Request for reassigning an approval. Reviewers can be added or replaced, but not removed.
      type: object
      properties:
        message:
          type: string
          description: Optional. A message to send to the new reviewers. This message is included in notifications for the action and in the approval activity log.
        replaceReviewers:
          items:
            $ref: '#/components/schemas/ReplaceReviewer'
          description: Optional. The list of reviewer replacements.
          type: array
        addReviewers:
          type: array
          items:
            $ref: '#/components/schemas/AddReviewer'
          description: Optional. The list of reviewers to add.
    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
    Approval:
      description: Metadata for an approval. An approval is a review or approve process for a Drive item.
      properties:
        approvalId:
          description: The approval ID.
          type: string
        completeTime:
          description: The time the approval was completed.
          format: google-datetime
          type: string
        approvedRevisionId:
          type: string
          description: The revision ID of the file when the approval completed successfully. This is only set when the approval status is APPROVED.
        reviewerResponses:
          items:
            $ref: '#/components/schemas/ReviewerResponse'
          type: array
          description: The responses made on the approval by reviewers.
        dueTime:
          description: The time that the approval is due.
          format: google-datetime
          type: string
        fileContentChangeBehavior:
          enum:
          - FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED
          - RESET_APPROVAL
          - NO_APPROVAL_ACTION
          description: The behavior of the approval when the file content changes.
          type: string
        createTime:
          description: The time the approval was created.
          format: google-datetime
          type: string
        status:
          type: string
          enum:
          - STATUS_UNSPECIFIED
          - IN_PROGRESS
          - APPROVED
          - CANCELLED
          - DECLINED
          description: The status of the approval at the time this resource was requested.
        kind:
          type: string
          description: This is always drive#approval.
        initiator:
          $ref: '#/components/schemas/User'
          description: The user that requested the approval.
        modifyTime:
          description: The most recent time the approval was modified.
          format: google-datetime
          type: string
        targetFileId:
          type: string
          description: Target file id of the approval.
      type: object
    ReviewerResponse:
      description: A response on an approval made by a specific reviewer.
      properties:
        reviewer:
          $ref: '#/components/schemas/User'
          description: The user that's responsible for this response.
        response:
          enum:
          - RESPONSE_UNSPECIFIED
          - NO_RESPONSE
          - APPROVED
          - DECLINED
          description: A reviewer’s response for the approval.
          type: string
        kind:
          description: This is always drive#reviewerResponse.
          type: string
      type: object
    User:
      description: Information about a Drive user.
      properties:
        photoLink:
          type: string
          readOnly: true
          description: Output only. A link to the user's profile photo, if available.
        emailAddress:
          readOnly: true
          description: Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
          type: string
        kind:
          description: 'Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.'
          default: drive#user
          type: string
          readOnly: true
        me:
          description: Output only. Whether this user is the requesting user.
          readOnly: true
          type: boolean
        displayName:
          type: string
          readOnly: true
          description: Output only. A plain text displayable name for this user.
        permissionId:
          type: string
          description: Output only. The user's ID as visible in Permission resources.
          readOnly: true
      type: object
    ReplaceReviewer:
      properties:
        addedReviewerEmail:
          description: Required. The email of the reviewer to add.
          type: string
        removedReviewerEmail:
          description: Required. The email of the reviewer to remove.
          type: string
      type: object
      description: Representation of a reviewer replacement.
    ApprovalList:
      type: object
      description: The response of an approvals list request.
      properties:
        kind:
          description: This is always drive#approvalList
          type: string
        nextPageToken:
          description: The page token for the next page of approvals. This is absent if the end of the approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
          type: string
        items:
          description: The list of approvals. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.
          type: array
          items:
            $ref: '#/components/schemas/Approval'
  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/drive.appdata: See, create, and delete its own configuration data in your Google Drive
            https://www.googleapis.com/auth/drive.readonly: See and download all your Google Drive files
            https://www.googleapis.com/auth/drive.photos.readonly: View the photos, videos and albums in your Google Photos
            https://www.googleapis.com/auth/drive.file: See, edit, create, and delete only the specific Google Drive files you use with this app
            https://www.googleapis.com/auth/drive.metadata.readonly: See information about your Google Drive files
            https://www.googleapis.com/auth/drive.meet.readonly: See and download your Google Drive files that were created or edited by Google Meet.
            https://www.googleapis.com/auth/drive: See, edit, create, and delete all of your Google Drive files
            https://www.googleapis.com/auth/drive.apps.readonly: View your Google Drive apps
            https://www.googleapis.com/auth/drive.metadata: View and manage metadata of files in your Google Drive
            https://www.googleapis.com/auth/drive.scripts: Modify your Google Apps Script scripts' behavior
externalDocs:
  url: https://developers.google.com/workspace/drive/
x-provenance:
  method: harvested
  publisher: Google
  source: https://www.googleapis.com/discovery/v1/apis/drive/v3/rest
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)