Skip to main content
POST
/
projects
/
{project_id}
/
actions
/
#GOOGLE_DRIVE_DOWNLOAD_FILE
Download File
curl --request POST \
  --url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#GOOGLE_DRIVE_DOWNLOAD_FILE' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "action": "GOOGLE_DRIVE_DOWNLOAD_FILE",
  "parameters": {
    "fileId": "<string>",
    "mimeType": "<string>",
    "fileEncoding": "raw"
  }
}'
This Action will respond with a byte stream of the file data from the Google Drive API. The Content-Type response header will vary based on the MIME type of the file. Google Workspace files, e.g. Google Docs, Slides, Sheets, will be exported to equivalent formats by default (if mimeType is not specified):
  • Docs: PDF file
  • Sheets: XLSX file
  • Slides: PPTX file
  • Drawings: PDF file

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

Your Paragon Project ID

Body

application/json
action
string
default:GOOGLE_DRIVE_DOWNLOAD_FILE
required
parameters
object
required

Response

200

This Action will respond with a byte stream of the file data from the Google Drive API.

The Content-Type response header will vary based on the MIME type of the file.

I