← Back to API Reference overview

Google Forms Integrations

Endpoints for managing the Google Forms integration. Connect your Google account to automatically sync form responses and enrich visitor data.

Shortcut: ⌘K

#The GoogleFormsFieldMapping maps a Google Forms question to a Linkbreakers visitor field object

GoogleFormsFieldMapping maps a Google Forms question to a Linkbreakers visitor field

linkbreakersField

string

The Linkbreakers field to map to (e.g. "$email", "$firstName", "$lastName", "$phone", or a custom attribute name)

questionId

string

The Google Forms question ID

questionTitle

string

The question title (for display purposes)

GET/v1/google-forms-integrationsRequires auth

#Get Google Forms integration

Retrieve the Google Forms integration configuration for the workspace.

#Parameters

This endpoint does not accept any parameters.

#Response

200

Everything worked as expected.

integration

object

Represents a connected Google Forms integration that syncs form responses to enrich visitor data in Linkbreakers.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

GET/v1/google-forms-integrations/formsRequires auth

#List Google Forms

List Google Forms available in the connected Google account.

#Parameters

This endpoint does not accept any parameters.

#Response

200

Everything worked as expected.

forms

array<object>

Available Google Forms from the user's Google Drive

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

GET/v1/google-forms-integrations/forms/{formId}/fieldsRequires auth

#Get form fields

Returns the questions and fields of a specific Google Form for field mapping configuration.

#Parameters

path parameters

formId

stringRequiredpath

The Google Form ID to get fields for

#Response

200

Everything worked as expected.

fields

array<object>

The questions/fields in the form

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

GET/v1/google-forms-integrations/oauth-urlRequires auth

#Get Google OAuth URL

Returns the Google OAuth authorization URL to initiate the connection flow.

#Parameters

This endpoint does not accept any parameters.

#Response

200

Everything worked as expected.

oauthUrl

string

The full Google OAuth authorization URL to redirect the user to

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

POST/v1/google-forms-integrations/oauth/completeRequires auth

#Complete Google OAuth

Exchanges the Google authorization code for tokens and creates the workspace integration.

#Parameters

This endpoint does not accept any parameters.

#Request body

code

stringRequired

The authorization code received from Google

state

stringRequired

The state parameter for CSRF validation

#Response

200

Everything worked as expected.

integration

object

Represents a connected Google Forms integration that syncs form responses to enrich visitor data in Linkbreakers.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

POST/v1/google-forms-integrations/syncRequires auth

#Sync now

Trigger an immediate sync of new Google Forms responses.

#Parameters

This endpoint does not accept any parameters.

#Request body

No structured schema available for this section.

#Response

200

Everything worked as expected.

responsesSynced

string (int64)

Number of new responses synced in this run

visitorsEnriched

string (int64)

Number of visitors enriched in this run

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

PATCH/v1/google-forms-integrationsRequires auth

#Update Google Forms integration

Update the Google Forms integration configuration (form, field mappings, tracking, status).

#Parameters

This endpoint does not accept any parameters.

#Request body

fieldMappings

array<object>

Field mappings from form questions to Linkbreakers visitor fields

formId

string

The selected Google Form ID

formTitle

string

The selected Google Form title

status

string (enum)

The status of a Google Forms integration

Allowed values
GOOGLE_FORMS_INTEGRATION_STATUS_UNSPECIFIED

Status not specified

GOOGLE_FORMS_INTEGRATION_STATUS_ACTIVE

Integration is active and syncing responses

GOOGLE_FORMS_INTEGRATION_STATUS_PAUSED

Integration is paused by user action

GOOGLE_FORMS_INTEGRATION_STATUS_DISCONNECTED

Integration is disconnected

trackingQuestionId

string

The question ID used for lbid tracking correlation (empty to disable)

#Response

200

Everything worked as expected.

integration

object

Represents a connected Google Forms integration that syncs form responses to enrich visitor data in Linkbreakers.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.

DELETE/v1/google-forms-integrationsRequires auth

#Disconnect Google Forms integration

Disconnect and remove the Google Forms integration from the workspace.

#Parameters

This endpoint does not accept any parameters.

#Response

200

Everything worked as expected.

No structured schema available for this section.

#Error response

400-599

All endpoints may return an unexpected error payload when a request cannot be processed.

error

objectRequired

Wrapped error response.