> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Contacts sync

> Mount Google Contacts sync.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Use `providerEndpoint` from `@bijectionhq/app-rest` to bind the collection,
and supply Google OAuth `contacts.readonly` for the account to read.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "google-contacts/connections.sync",
  "https://people.googleapis.com",
  "/v1/people/me/connections",
  auth,
  data,
);
```

Pass `provider` as `receivers.provider`, with the same label to the binder and as the app's `data`. Grant the app's `operator` role, then call
`source.initialize` with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "google-contacts/connections.sync", limit: 25 } }
```

People resource names key rows. An explicit `metadata.deleted` entry removes its key. The page token advances the current walk, and the terminal sync token starts the next poll. The People API can expire this token after seven days. HTTP 410 with a retained position requires an explicit baseline reset. Rows absent in the replacement baseline stay published.

Up to 100 rows and 36 KiB per response. The bundled parser is required. Pages publish rows and their next
position together. Use [source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
to review failures and recover the feed.

[Provider API reference](https://developers.google.com/people/api/rest/v1/people.connections/list)

## Write contacts

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Bind `providerWriter("google-contacts.contacts.create-update-delete", { endpoint: "https://people.googleapis.com", auth }, data)` and pass it as `receivers.writers["google-contacts.contacts.create-update-delete"]`. Seal a user OAuth token with Contacts write scope. Create takes a People API Person. Update replaces the complete `names` and `emailAddresses` arrays, using the current CONTACT source etag from the read. Pass `c…` without the `people/` prefix as the command ID. Create and update require HTTP 200 and `resourceName`; delete accepts HTTP 200 for the requested contact.

The writer records its evidence under the app's `data` label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://developers.google.com/people/v1/contacts)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.