Connector guide — Google Gemini API (gemini)

Fixed sections (Phase D1 format; tests/governance/test_onboarding_connector_guides.py pins them). Facts marked [Validated] are measured in code or tests; [Observed] facts carry a date; [Gap] names an open item. No credential, token, account identifier or tenant value appears in this file. No connector is unconditional; consent is the one universal requirement.

What it is

A tenant-supplied Gemini API key, tenant-scoped by construction, for enrichment/extraction on this tenant's own data. It is the tenant's own key, never a platform secret: platform LLM calls stay on virtuoso_call role routing and never read this key (catalog description; owner ruling 2026-08-20 §2). Catalog category ai, wave 2.

Status (measured)

[Validated] available: true in CONNECTOR_CATALOG (services/service-marketing-connectors/connector_credentials.py, measured 2026-10-12). Required field api_key; no optional field. Test connection lists models (/v1beta/models, pageSize 1) — a read that never generates. Collectable today (checklist P3-9). [Observed 2026-10-12] a search of services/ and src/ for a vault read of provider gemini found no consumer other than the catalog entry and the connection test (grep -rn 'load_credentials(.*gemini|"gemini")' --include=*.py services src, excluding tests); the tenant-scoped enrichment path that would read the key is therefore reported as not yet available, not as live. The key is collectable so that it is never asked for ad hoc later (law 10).

Who owns the account

The tenant. The Google AI Studio or Google Cloud project that issued the key stays in the tenant's account; the tenant can restrict, rotate or delete the key at any time (law 3). The platform never uses this key for its own model calls, and no other tenant's data is ever sent under it.

Prerequisites

Visibility invite (click path)

None. There is no account to grant a seat on: the only access is the tenant's own key, entered on the card. Playbook §5 lists no Gemini row.

Connecting in the onboarding UI

  1. Open /onboarding → Connectors → the Gemini card (optional for every tenant; it is not a measurement rail).
  2. In Google AI Studio (or the Cloud console) create an API key restricted to the Gemini API. Paste it into api_key on the card — nowhere else (law 2).
  3. Click Test connection. Move on only when it passes.

Fields

key where the tenant finds it format secret? required?
api_key Google AI Studio → API keys, or Cloud Console → APIs & Services → Credentials catalog placeholder AIza…; never echoed, masked hint only yes yes

Test connection

Failure Plain-English fix
422 missing_required_fields on api_key The key is required; re-save the card with it.
422 unknown_fields Only api_key is accepted on this card; remove anything else.
"Gemini rejected the API key" (400/401/403) The key is wrong, deleted, restricted to a different API, or the Gemini API is not enabled on its project. Create a new key restricted to the Gemini API and re-save.
"Gemini answered HTTP " The models listing did not answer 200; retry once, then check the project's quota and billing state.
404 not_configured (stored-credential test) Nothing is saved for this tenant yet; connect first.
429 test_rate_limited More than 20 tests for this provider in 60 s from this tenant; wait the retry_after_seconds it names.
503 fail-closed (vault error) The credential vault could not be read; an operator checks vault health. Nothing for the tenant to re-enter.

What it feeds

Tenant-scoped enrichment/extraction on the tenant's own data, under the tenant's key (catalog description). Nothing leaves the platform under this key except the tenant's own data, sent to Gemini. Platform model calls — every virtuoso_call — never read it. [Observed 2026-10-12] no governed consumer beyond the connection test was found (see Status); until one lands, the honest answer to "what does this do today" is "not yet available". Saving the key arms nothing (law 8).

Any tenant data sent to Gemini under this key is the tenant's own and stays inside the tenant's approved data scope. Person-level data reaches an enrichment path only after the consent gate (fail-closed, per-subject basis required); the deny-list categories are never predicted, stored or surfaced, and person-level data is never sent to third-party enrichment outside the entity-spine scope (rule 03). The tenant's consent declaration (P2-5) is required of every tenant and never substitutes for a per-subject basis. Consent is the one universal requirement; no connector is unconditional.

Revoke / offboard

Tenant side: Google AI Studio → API keys → delete the key (or Cloud Console → Credentials → delete / rotate). Platform side: the operator removes the tenant's gemini vault entry through the governed path, or offboards the whole tenant with POST /api/v1/tenant/offboard/credentials. Readiness never gaps on this provider (it is not a rail), so the readout simply reports it not configured.

Known gaps

Last verified

Catalog and readiness code measured 2026-10-12 on main 47309238. Vendor documentation: Google AI for Developers — "Using Gemini API keys" (ai.google.dev/gemini-api/docs/api-key) — fetched 2026-10-12. Lane records: docs/tenants/TENANT_ONBOARDING_CHECKLIST.md P3-9; catalog comment on the tenant-onboarding surface (owner ruling 2026-08-20 §2).

← All docsView source on GitHub →