Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • REST API Documentation
  • Connections Using REST API
  • Platform Specific REST API Documentation
  • Google

Google Drive

Create a Google Drive connection using the DryvIQ REST API.

Written by Andrea Harvey

Updated at April 29th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Create a Connection Creating a Connection with a Delete Policy Creating a Connection Using CLI

Create a Connection

The code below shows how to create a new connection using a REST API call. The GET request returns JSON with the OAuth2 target URL needed to finish the connection creation. Follow the given URL to complete the connection setup.

GET {{url}}v1/connections/platforms/google-drive/new

Creating a Connection with a Delete Policy

Soft delete is the default delete policy. This means deleted items are moved to the platform's trash. The code below shows how to set the delete policy to "permanent" when creating a new connection using a REST API call.

  1. Send the GET request below.
GET {{url}}v1/connections/platforms/google-drive/new
  1. The GET request returns JSON with the OAuth2 target URL needed to finish the connection creation.
  2. Copy and paste the URL generated in your browser and add the following at the end of it: %26delete_behavior%3Dpermanent.
  3. Follow the given URL to complete the connection setup.

Creating a Connection Using CLI

The CLI command below returns the OAuth 2.0 target URL needed to complete the connection creation. In most environments, the URL will be automatically opened in your default browser to complete the creation process. If not, follow the provided URL to complete the connection setup. (See CLI: Connections for more information.)

skysync-cli connections add --platform google-drive

 

cloud storage rest api api google connection google drive

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Dropbox (REST API)
  • Dropbox for Business (REST API)
  • Amazon S3 (REST API)

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand