Prerequisites
Before you create the connector, make sure you have the following ready:- An active Google Cloud project
- A GCS bucket containing the documents you want to ingest
- A service account with the following IAM permissions on the target bucket:
storage.objects.getstorage.objects.list
- A service account JSON key file downloaded from the Google Cloud Console
Create the connector
Send aPOST /v1/connectors request with type: "gcs" and your project and bucket details in the config object. Pass the contents of your service account JSON key file as a JSON-encoded string in credentials_json.
cURL
Ingest files from GCS
With the connector in place, pass itsid as source.connector_id and supply an array of GCS object names you want to process.
cURL
Config field reference
The ID of the Google Cloud project that owns the bucket (e.g.,
my-gcp-project).The name of the GCS bucket FlexOrch will read from.
The full contents of your service account JSON key file, serialized as a JSON string. You can generate this key in the Google Cloud Console under IAM & Admin → Service Accounts.
An optional object prefix (folder path) used as the default scope for Scheduled Sync — for example,
documents/incoming/. Only objects under this prefix will be polled.