v1

latestOpenAPI 3.0.32026-07-17561257.7 KB
GrantPermission

OAuth flow for Google Drive permission

Handles the OAuth2 flow for granting Google Drive permissions.

  • If token and code are provided, completes the OAuth flow.
  • Otherwise, returns an authorization URL to start the flow.
post/grantpermission

Request body

tokenstring

Existing OAuth token (optional)

codestring

OAuth authorization code (optional)

emailstring email required
filestring required

Google Drive file ID

Response

Permission granted or auth URL returned

OR

Example response

{
  "message": "Success!"
}