# Settings

What the LeadConnector integration relays, syncs and writes back, and how to change it with the settings API.

Each connected LeadConnector sub-account has settings that control what it relays, syncs and writes back. Read them with `GET` and change them with `PATCH`:

```bash
curl "https://zernio.com/api/v1/accounts/ACCOUNT_ID/gohighlevel-settings" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```

```bash
curl -X PATCH "https://zernio.com/api/v1/accounts/ACCOUNT_ID/gohighlevel-settings" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "reportToAds": true }'
```

## Fields

| Field | Default | What it does |
|-------|---------|--------------|
| `relayConversions` | `true` | Relays LeadConnector CRM events (contacts, opportunity progress, appointments, paid invoices and orders) as conversion events to Zernio. |
| `writeBackAttribution` | `true` | Writes each relayed conversion onto the `Zernio Conversions` custom field of the LeadConnector contact. |
| `reportToAds` | `true` when the profile already sends events to an ad account, else `false` | Forwards the relayed conversions to the profile's event destinations (Meta, Google, TikTok and the rest) through each platform's server-side API. |
| `syncAdLeads` | `true` | Creates or updates a LeadConnector contact for every lead from the profile's ad network lead forms, tagged with the network, campaign and form. See [Ad leads to contacts](/platforms/leadconnector/ad-leads). |
| `syncContacts` | `true` | Matches inbox contacts to LeadConnector contacts by phone, then email, and creates the ones that do not exist. See [Inbox sync](/platforms/leadconnector/messaging). |
| `logMessages` | `true` | Logs inbox messages and calls on the matched contact, one note per channel and day (Telegram, LINE, WeChat, iMessage and RCS go to Conversations while `mirrorConversations` is on). Off also stops the mirroring. |
| `logDeliveryStatus` | `true` | Marks sent, delivered, read and failed on logged outgoing messages. Follows `logMessages`. |
| `mirrorConversations` | `true` | Puts Telegram, LINE, WeChat, iMessage and RCS messages into the contact's Conversations thread under the Zernio channel, answerable from LeadConnector. See [Conversations](/platforms/leadconnector/conversations). |

Turning `reportToAds` on starts forwarding events received from then on. Deals won in the last 90 days can be sent with **Send past won deals** on the **Zernio Ads & Conversions** page ([What syncs](/platforms/leadconnector/sync)).

The `reportToAds` default is set once, when the sub-account is first connected. Reconnecting keeps every setting as it was.

The same settings are in the dashboard: open **Connections**, then the connected sub-account's settings.

## Related

- [Connect](/platforms/leadconnector/connect)
- [Conversions](/platforms/leadconnector/sync)
- [Inbox sync](/platforms/leadconnector/messaging)
- [Limits and errors](/platforms/leadconnector/reference)