# Settings

Choose whether Zernio creates Leads or Contacts, logs conversations and writes delivery status for a connected Salesforce org.

## Read the settings

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

## Change a setting

Send only the fields you change to `PATCH /v1/accounts/{accountId}/salesforce-settings`, or use the Salesforce account's **Settings** on **Connections**:

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

| Setting | Default | What it does |
|---------|---------|--------------|
| `syncContacts` | `true` | Creates a record for an inbox contact that matches no Contact or Lead. Off, messages from unmatched people are skipped. |
| `createAs` | `lead` | What a new record is: `lead` or `contact`. |
| `logMessages` | `true` | Logs each day's conversation as a Task on the record. |
| `logDeliveryStatus` | `true` | Marks each sent message's line with its [delivery status](/platforms/salesforce/delivery-status). Needs `logMessages`. |

## How it behaves

- Settings apply from the next message. Records and Tasks already written are not changed.
- Reconnecting the same org keeps its settings.

## Related

- [Get Salesforce settings](/accounts/get-salesforce-settings)
- [Update Salesforce settings](/accounts/update-salesforce-settings)
- [Inbox sync](/platforms/salesforce/sync)