Skip to content

Google Cloud Storage

Copy page

Reads objects from a Google Cloud Storage bucket using a service-account key.

Shape: credential — connectable headlessly. Provider id: gcs.

| Field | Required | Notes | | --- | --- | --- | | projectId | ✅ | | | bucket | ✅ | Validated by a bucket-exists check before storing | | serviceAccountKey | ✅ | The whole service-account JSON, as a string |

Terminal window
curl -X POST https://api.divinci.app/api/v1/connectors/gcs/auth \
-H "Authorization: Bearer $DIVINCI_API_KEY" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg key "$(cat sa.json)" '{
credentials: { projectId: "my-project", bucket: "my-docs", serviceAccountKey: $key }
}')"

Objects under an optional prefix, selected on the Connectors page. Sync runs from the web app — the CLI and v1 sync routes cover web_crawl and wordpress only.

Terminal window
divinci connectors status gcs
divinci connectors settings gcs --auto-sync on --cadence 1440
divinci connectors disconnect gcs