---
title: "Update Realtime Lead Scoring Settings"
method: PATCH
path: "/developer/realtime-lead-scoring-settings"
tags: ["Developer", "Developer - Settings"]
---

# Update Realtime Lead Scoring Settings

`PATCH /developer/realtime-lead-scoring-settings`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/developer/realtime-lead-scoring-settings`
- Auth: none declared

Update the realtime lead scoring settings for the current customer.

Validates that every entry in `agent_visible_fields` exists as a key in the customer's
`SettingsLeads.lead_scoring_custom_schema["properties"]`. Requires the customer's lead
scoring mode to be `custom_prompt` and a custom schema to be configured.

## Request body

- UpdateRealtimeLeadScoringSettingsRequest: Update realtime lead scoring settings request model (developer only)
  - `agent_visible_fields` string[], nullable: Allowlist of property keys from lead_scoring_custom_schema that are exposed to the voice agent

## Response `200`

Successful Response

- RealtimeLeadScoringSettingsResponse: Realtime (live, mid-call) lead scoring settings response model
  - `agent_visible_fields` string[]: Allowlist of property keys from lead_scoring_custom_schema that are exposed to the voice agent

## Other responses

- `422`: Validation Error

---

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