---
title: "Update HubSpot account settings"
method: PATCH
path: "/v1/accounts/{accountId}/hubspot-settings"
tags: ["Accounts"]
---

# Update HubSpot account settings

`PATCH /v1/accounts/{accountId}/hubspot-settings`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/accounts/{accountId}/hubspot-settings`
- Auth: HTTP bearer

Turn contact sync or message logging on or off for a connected HubSpot portal. Send at least one field; omitted fields keep their value. Settings survive reconnecting the same portal.

## Path parameters

- `accountId` string, required

## Request body

- object
  - `syncContacts` boolean: Create a HubSpot contact for an inbox contact that matches none by email or phone. A match is linked as it is and never updated.
  - `logMessages` boolean: Log inbound and outbound inbox messages on the contact's HubSpot timeline.

## Response `200`

Updated settings

- object
  - `message` string
  - `account` HubSpotSettings
    - `_id` string, required: Zernio account ID of the HubSpot connection.
    - `platform` 'hubspot', required
    - `hubId` string, required: HubSpot portal (hub) ID.
    - `hubDomain` string, nullable, required: HubSpot portal domain, when HubSpot reports one.
    - `scopes` string[], required: OAuth scopes the portal granted.
    - `syncContacts` boolean, required: Whether Zernio creates HubSpot contacts for inbox contacts that match none.
    - `logMessages` boolean, required: Whether Zernio logs inbox messages on HubSpot contact timelines.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `404`: Account not found

## Changes

- **2026-10-20** `b626f8dbba05`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/accounts/:accountId/hubspot-settings/patch.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) · [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/4e74db179e73?raw)
