Endpoint
Authentication
All requests must include a valid Bearer token in theAuthorization header so Flowmatic knows which account to link the Google credentials to.
Request Body
This endpoint does not accept a request body or query parameters.Response
A successful request returns HTTP 302 Found with aLocation header pointing to Google’s OAuth consent page. Your browser or HTTP client will follow this redirect automatically (if configured to do so).
This endpoint must be opened in a web browser, not called directly with curl or a server-side HTTP client. Because the flow involves a 302 redirect to Google’s interactive consent page, it requires a user-facing browser session to display the authorization UI and handle the redirect back to Flowmatic. If you call it with curl, you will only see the redirect response — the OAuth flow will not complete.
How the OAuth Flow Works
When you navigate to this endpoint in your browser, the following sequence occurs:- Flowmatic redirects you to Google’s OAuth consent page (HTTP 302).
- You log in to your Google account (if not already signed in) and review the requested permissions.
- You grant consent by clicking “Allow” on Google’s consent screen.
- Google redirects you back to Flowmatic with a short-lived authorization code.
- Flowmatic exchanges the code for access and refresh tokens, storing them securely against your account.
- The integration is now active. You can verify this by calling GET /api/integrations/google/status.
Opening the URL in a Browser
To initiate the connect flow, open the following URL directly in your browser, substituting your actual access token:After completing the consent flow, verify that the connection was established successfully by calling GET /api/integrations/google/status. A successful link will return
{ "connected": true, "email": "your-google-account@gmail.com" }.What Permissions Are Requested
Flowmatic requests the minimum Google Drive scopes necessary to support your workflow nodes — typically read access for data-source nodes and write access for output nodes that update spreadsheets or files. The exact scopes are displayed on Google’s consent screen before you approve.Related Endpoints
- GET /api/integrations/google/status — check whether your account is already connected to Google before initiating this flow.