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

# Update web agent settings

> Update website agent settings for one owned number using its current revision. A stale revision is refused so another editor’s change is preserved.

**FIXED · number** Website chat and website voice offer eligible custom functions only. Built-in calendar booking and availability are excluded. Phone and eligible SMS can use a configured calendar.

**NOT OFFERED → do this instead · number** Website install code is available only from the dashboard for now. The public API does not return ready-to-paste install HTML. Use the dashboard Install action for each customer’s number. The settings read includes install\_id. An install receipt only reports that a widget was seen.

**YOU CAN CHANGE · number** Enable website custom functions only when every enabled function on that number is safe for public visitors. To offer booking, share the business’s booking link or hand off to phone or SMS. Website voice uses one stored switch: `phone_numbers.web_calls_enabled`. Number PATCH (`web_calls_enabled`), web-agent PATCH (`settings.web_calls_enabled`) and web-calls integration PUT (`enabled`) write the same value.

**SCOPE · number** Configure each number’s sms\_prompt for SMS and web\_prompt for website chat and voice. Neither channel inherits its phone custom\_prompt. Both still use the agent knowledge enabled for that channel and follow their own channel rules.

[Read the compact AI rules](https://docs.nixflex.com/ai-rules.md#website-agent)

Update website agent settings for one owned number using its current revision. A stale revision is refused so another editor’s change is preserved.

Method: **PATCH** · Success: **200** · Scope: **Owning account**

**The important part**

* Change only the intended web settings.
* Read back the result and test the actual browser flow before rollout.

[Business guide](https://docs.nixflex.com/guides/voice-widget.md) · [Developer guide](https://docs.nixflex.com/web-assistant/overview.md) · [Glossary](https://docs.nixflex.com/guides/glossary.md)

The stored website voice switch is `phone_numbers.web_calls_enabled`. These three requests write that same value: `PATCH /v1/phone-numbers/{phoneNumber}` with `web_calls_enabled`, `PATCH /v1/agent-web/{number}` with `settings.web_calls_enabled`, and `PUT /v1/integrations/web-calls/number/{phoneNumber}` with `enabled`. The number’s web agent must also allow website access.

Use Install in the dashboard for the number’s embed code. A public install-code API is not offered.

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential. Send `Content-Type: application/json`.

## Request fields

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `number` (path) | string | Yes | None | International number with + and digits; no spaces. Pattern: `^\+[1-9][0-9]{6,14}$`. |

Send a JSON object.

| Field | Type | Required | Default | Limits and meaning |
| - | - | - | - | - |
| `revision` | string | Yes | None | Opaque decimal revision. Keep as a string to avoid precision loss. Pattern: `^[0-9]{1,18}$`. |
| `settings` | object | Yes | None | At least one setting. Omitted top-level settings stay unchanged. Unknown settings are refused. |
| `settings.web_prompt` | string | No | Omitted | Website instructions. The limit is 16,000 UTF-16 code units. |
| `settings.web_design` | integer | No | Omitted | Earlier design choice. Minimum 1. Maximum 10. |
| `settings.web_color` | string | No | Omitted | RGB hex colour. Pattern: `^#[0-9a-fA-F]{6}$`. |
| `settings.web_name` | string | No | Omitted | Website display name; empty clears to the display default. Maximum 80 characters. |
| `settings.web_chips` | string | No | Omitted | Comma-separated questions: at most four, each trimmed question at most 80 characters; total at most 323. Maximum 323 characters. |
| `settings.web_calls_enabled` | boolean | No | Omitted | Per-number website voice setting. |
| `settings.web_appearance` | object | No | Omitted | Complete appearance value, not a nested merge. Database JSON representation must be at most 32,000 bytes. |
| `settings.web_appearance.version` | integer | Yes | None | Appearance schema version. Value: `1`. |
| `settings.web_appearance.launcher` | string | Yes | None | Launcher identifier. Pattern: `^[a-z][a-z0-9-]{0,31}$`. |
| `settings.web_appearance.window` | string | Yes | None | Window layout. Allowed: `"compact"`, `"side"`, `"centre"`, `"full"`. |
| `settings.web_appearance.visit` | string | Yes | None | Initial visit action. Allowed: `"nothing"`, `"greeting"`, `"open"`. |
| `settings.web_appearance.theme` | string | Yes | None | Colour theme. Allowed: `"dark"`, `"light"`. |
| `settings.web_appearance.colourMode` | string | Yes | None | Colour mode. Allowed: `"solid"`, `"gradient"`. |
| `settings.web_appearance.colour` | string | Yes | None | Primary RGB hex colour. Pattern: `^#[0-9a-fA-F]{6}$`. |
| `settings.web_appearance.colour2` | string | Yes | None | Secondary RGB hex colour. Pattern: `^#[0-9a-fA-F]{6}$`. |
| `settings.web_appearance.text` | object | Yes | None | Allowed wording keys; omitted keys are not automatically preserved when replacing appearance. |
| `settings.web_appearance.text.greeting` | string | No | Omitted | Optional greeting wording. Maximum 500 characters. |
| `settings.web_appearance.text.button` | string | No | Omitted | Optional button wording. Maximum 500 characters. |
| `settings.web_appearance.text.title` | string | No | Omitted | Optional title wording. Maximum 500 characters. |
| `settings.web_appearance.text.subtitle` | string | No | Omitted | Optional subtitle wording. Maximum 500 characters. |
| `settings.web_appearance.text.call` | string | No | Omitted | Optional call wording. Maximum 500 characters. |
| `settings.web_appearance.text.chat` | string | No | Omitted | Optional chat wording. Maximum 500 characters. |
| `settings.web_appearance.text.welcome` | string | No | Omitted | Optional welcome wording. Maximum 500 characters. |
| `settings.web_appearance.text.placeholder` | string | No | Omitted | Optional placeholder wording. Maximum 500 characters. |
| `settings.web_appearance.text.status` | string | No | Omitted | Optional status wording. Maximum 500 characters. |
| `settings.web_appearance.text.send` | string | No | Omitted | Optional send wording. Maximum 500 characters. |
| `settings.web_appearance.text.close` | string | No | Omitted | Optional close wording. Maximum 500 characters. |
| `settings.web_appearance.text.footer` | string | No | Omitted | Always normalised to Powered by Nixflex on write and read. Maximum 500 characters. |
| `settings.web_appearance.text.typing` | string | No | Omitted | Optional typing wording. Maximum 500 characters. |
| `settings.web_appearance.text.error` | string | No | Omitted | Optional error wording. Maximum 500 characters. |
| `settings.web_appearance.text.contact` | string | No | Omitted | Optional contact wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactNote` | string | No | Omitted | Optional contactNote wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactName` | string | No | Omitted | Optional contactName wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactPhone` | string | No | Omitted | Optional contactPhone wording. Maximum 500 characters. |
| `settings.web_appearance.text.avatar` | string | No | Omitted | Optional avatar wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceConnecting` | string | No | Omitted | Optional voiceConnecting wording. Maximum 500 characters. |
| `settings.web_appearance.text.voicePrivacy` | string | No | Omitted | Optional voicePrivacy wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceMute` | string | No | Omitted | Optional voiceMute wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceUnmute` | string | No | Omitted | Optional voiceUnmute wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceEnd` | string | No | Omitted | Optional voiceEnd wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceAllow` | string | No | Omitted | Optional voiceAllow wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceCancel` | string | No | Omitted | Optional voiceCancel wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceEnded` | string | No | Omitted | Optional voiceEnded wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceYouEnded` | string | No | Omitted | Optional voiceYouEnded wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceUnavailable` | string | No | Omitted | Optional voiceUnavailable wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceUnavailableNote` | string | No | Omitted | Optional voiceUnavailableNote wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceDisabled` | string | No | Omitted | Optional voiceDisabled wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceInsecure` | string | No | Omitted | Optional voiceInsecure wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceInsecureNote` | string | No | Omitted | Optional voiceInsecureNote wording. Maximum 500 characters. |
| `settings.web_appearance.text.voicePermission` | string | No | Omitted | Optional voicePermission wording. Maximum 500 characters. |
| `settings.web_appearance.text.voicePermissionNote` | string | No | Omitted | Optional voicePermissionNote wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceChecking` | string | No | Omitted | Optional voiceChecking wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceNeeded` | string | No | Omitted | Optional voiceNeeded wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceBlocked` | string | No | Omitted | Optional voiceBlocked wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceMissing` | string | No | Omitted | Optional voiceMissing wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceInUse` | string | No | Omitted | Optional voiceInUse wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceMicError` | string | No | Omitted | Optional voiceMicError wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceBusy` | string | No | Omitted | Optional voiceBusy wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceBusyNote` | string | No | Omitted | Optional voiceBusyNote wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceRinging` | string | No | Omitted | Optional voiceRinging wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceLive` | string | No | Omitted | Optional voiceLive wording. Maximum 500 characters. |
| `settings.web_appearance.text.voiceError` | string | No | Omitted | Optional voiceError wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactSave` | string | No | Omitted | Optional contactSave wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactSavedEdit` | string | No | Omitted | Optional contactSavedEdit wording. Maximum 500 characters. |
| `settings.web_appearance.text.contactRequired` | string | No | Omitted | Optional contactRequired wording. Maximum 500 characters. |
| `settings.web_appearance.text.beforeCallStart` | string | No | Omitted | Optional beforeCallStart wording. Maximum 500 characters. |
| `settings.web_appearance.text.beforeCallCancel` | string | No | Omitted | Optional beforeCallCancel wording. Maximum 500 characters. |
| `settings.web_appearance.contactFields` | array of object | No | Omitted | Up to nine fields; IDs must be unique. Maximum 9 items. |
| `settings.web_appearance.contactFields[].id` | string | Yes | None | Built-in field or one of five custom fields. Pattern: `^(name&#124;phone&#124;email&#124;order&#124;custom_[1-5])$`. |
| `settings.web_appearance.contactFields[].label` | string | Yes | None | Nonblank label, no control characters; trimmed and raw length at most 60. Maximum 60 characters. Minimum 1 characters. |
| `settings.web_appearance.contactFields[].enabled` | boolean | Yes | None | Field enabled. |
| `settings.web_appearance.contactFields[].required` | boolean | Yes | None | Field required. |
| `settings.web_appearance.contactFields[].askInChat` | boolean | No | Omitted | Optional request-in-chat flag. If absent, a disabled field cannot be required. |
| `settings.web_appearance.beforeCall` | object | No | Omitted | Saved value. |
| `settings.web_appearance.beforeCall.enabled` | boolean | Yes | None | Use a contact form before a web call. |
| `settings.web_appearance.beforeCall.message` | string | Yes | None | Before-call message. Maximum 500 characters. |
| `settings.web_appearance.beforeCall.fields` | array of object | Yes | None | Up to nine unique IDs. Each custom ID must exist in contactFields. Maximum 9 items. |
| `settings.web_appearance.beforeCall.fields[].id` | string | Yes | None | Built-in field or one of five custom fields. Pattern: `^(name&#124;phone&#124;email&#124;order&#124;custom_[1-5])$`. |
| `settings.web_appearance.beforeCall.fields[].required` | boolean | Yes | None | Required before starting. |

Read defaults describe the displayed value, not necessarily a persisted setting. web\_agent\_enabled is read-only on this endpoint. The inbox feature must be enabled; responses use Cache-Control: no-store. Read this number’s settings first and preserve revision as a string. Numeric decimal revisions are also accepted, but strings avoid precision loss. An accepted change increments the revision. The entire web\_appearance object is replaced when supplied: preserve the fields you intend to keep. Its footer is always Powered by Nixflex. Contact field IDs must be unique; custom before-call fields must exist in contactFields. No nested merge is performed.

## Response fields

`200 OK` returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

| Field | Type | Meaning |
| - | - | - |
| `phone_number` | string | International number with + and digits; no spaces. Pattern: `^\+[1-9][0-9]{6,14}$`. |
| `agent_id` | string or null | Assigned agent. |
| `web_prompt` | string or null | Saved website instructions. |
| `web_appearance` | object or null | Complete appearance value, not a nested merge. Database JSON representation must be at most 32,000 bytes. |
| `web_appearance.version` | integer | Appearance schema version. Value: `1`. |
| `web_appearance.launcher` | string | Launcher identifier. Pattern: `^[a-z][a-z0-9-]{0,31}$`. |
| `web_appearance.window` | string | Window layout. Allowed: `"compact"`, `"side"`, `"centre"`, `"full"`. |
| `web_appearance.visit` | string | Initial visit action. Allowed: `"nothing"`, `"greeting"`, `"open"`. |
| `web_appearance.theme` | string | Colour theme. Allowed: `"dark"`, `"light"`. |
| `web_appearance.colourMode` | string | Colour mode. Allowed: `"solid"`, `"gradient"`. |
| `web_appearance.colour` | string | Primary RGB hex colour. Pattern: `^#[0-9a-fA-F]{6}$`. |
| `web_appearance.colour2` | string | Secondary RGB hex colour. Pattern: `^#[0-9a-fA-F]{6}$`. |
| `web_appearance.text` | object | Allowed wording keys; omitted keys are not automatically preserved when replacing appearance. |
| `web_appearance.text.greeting` | string | Optional greeting wording. Maximum 500 characters. |
| `web_appearance.text.button` | string | Optional button wording. Maximum 500 characters. |
| `web_appearance.text.title` | string | Optional title wording. Maximum 500 characters. |
| `web_appearance.text.subtitle` | string | Optional subtitle wording. Maximum 500 characters. |
| `web_appearance.text.call` | string | Optional call wording. Maximum 500 characters. |
| `web_appearance.text.chat` | string | Optional chat wording. Maximum 500 characters. |
| `web_appearance.text.welcome` | string | Optional welcome wording. Maximum 500 characters. |
| `web_appearance.text.placeholder` | string | Optional placeholder wording. Maximum 500 characters. |
| `web_appearance.text.status` | string | Optional status wording. Maximum 500 characters. |
| `web_appearance.text.send` | string | Optional send wording. Maximum 500 characters. |
| `web_appearance.text.close` | string | Optional close wording. Maximum 500 characters. |
| `web_appearance.text.footer` | string | Always normalised to Powered by Nixflex on write and read. Maximum 500 characters. |
| `web_appearance.text.typing` | string | Optional typing wording. Maximum 500 characters. |
| `web_appearance.text.error` | string | Optional error wording. Maximum 500 characters. |
| `web_appearance.text.contact` | string | Optional contact wording. Maximum 500 characters. |
| `web_appearance.text.contactNote` | string | Optional contactNote wording. Maximum 500 characters. |
| `web_appearance.text.contactName` | string | Optional contactName wording. Maximum 500 characters. |
| `web_appearance.text.contactPhone` | string | Optional contactPhone wording. Maximum 500 characters. |
| `web_appearance.text.avatar` | string | Optional avatar wording. Maximum 500 characters. |
| `web_appearance.text.voiceConnecting` | string | Optional voiceConnecting wording. Maximum 500 characters. |
| `web_appearance.text.voicePrivacy` | string | Optional voicePrivacy wording. Maximum 500 characters. |
| `web_appearance.text.voiceMute` | string | Optional voiceMute wording. Maximum 500 characters. |
| `web_appearance.text.voiceUnmute` | string | Optional voiceUnmute wording. Maximum 500 characters. |
| `web_appearance.text.voiceEnd` | string | Optional voiceEnd wording. Maximum 500 characters. |
| `web_appearance.text.voiceAllow` | string | Optional voiceAllow wording. Maximum 500 characters. |
| `web_appearance.text.voiceCancel` | string | Optional voiceCancel wording. Maximum 500 characters. |
| `web_appearance.text.voiceEnded` | string | Optional voiceEnded wording. Maximum 500 characters. |
| `web_appearance.text.voiceYouEnded` | string | Optional voiceYouEnded wording. Maximum 500 characters. |
| `web_appearance.text.voiceUnavailable` | string | Optional voiceUnavailable wording. Maximum 500 characters. |
| `web_appearance.text.voiceUnavailableNote` | string | Optional voiceUnavailableNote wording. Maximum 500 characters. |
| `web_appearance.text.voiceDisabled` | string | Optional voiceDisabled wording. Maximum 500 characters. |
| `web_appearance.text.voiceInsecure` | string | Optional voiceInsecure wording. Maximum 500 characters. |
| `web_appearance.text.voiceInsecureNote` | string | Optional voiceInsecureNote wording. Maximum 500 characters. |
| `web_appearance.text.voicePermission` | string | Optional voicePermission wording. Maximum 500 characters. |
| `web_appearance.text.voicePermissionNote` | string | Optional voicePermissionNote wording. Maximum 500 characters. |
| `web_appearance.text.voiceChecking` | string | Optional voiceChecking wording. Maximum 500 characters. |
| `web_appearance.text.voiceNeeded` | string | Optional voiceNeeded wording. Maximum 500 characters. |
| `web_appearance.text.voiceBlocked` | string | Optional voiceBlocked wording. Maximum 500 characters. |
| `web_appearance.text.voiceMissing` | string | Optional voiceMissing wording. Maximum 500 characters. |
| `web_appearance.text.voiceInUse` | string | Optional voiceInUse wording. Maximum 500 characters. |
| `web_appearance.text.voiceMicError` | string | Optional voiceMicError wording. Maximum 500 characters. |
| `web_appearance.text.voiceBusy` | string | Optional voiceBusy wording. Maximum 500 characters. |
| `web_appearance.text.voiceBusyNote` | string | Optional voiceBusyNote wording. Maximum 500 characters. |
| `web_appearance.text.voiceRinging` | string | Optional voiceRinging wording. Maximum 500 characters. |
| `web_appearance.text.voiceLive` | string | Optional voiceLive wording. Maximum 500 characters. |
| `web_appearance.text.voiceError` | string | Optional voiceError wording. Maximum 500 characters. |
| `web_appearance.text.contactSave` | string | Optional contactSave wording. Maximum 500 characters. |
| `web_appearance.text.contactSavedEdit` | string | Optional contactSavedEdit wording. Maximum 500 characters. |
| `web_appearance.text.contactRequired` | string | Optional contactRequired wording. Maximum 500 characters. |
| `web_appearance.text.beforeCallStart` | string | Optional beforeCallStart wording. Maximum 500 characters. |
| `web_appearance.text.beforeCallCancel` | string | Optional beforeCallCancel wording. Maximum 500 characters. |
| `web_appearance.contactFields` | array of object | Up to nine fields; IDs must be unique. Maximum 9 items. |
| `web_appearance.contactFields[].id` | string | Built-in field or one of five custom fields. Pattern: `^(name&#124;phone&#124;email&#124;order&#124;custom_[1-5])$`. |
| `web_appearance.contactFields[].label` | string | Nonblank label, no control characters; trimmed and raw length at most 60. Maximum 60 characters. Minimum 1 characters. |
| `web_appearance.contactFields[].enabled` | boolean | Field enabled. |
| `web_appearance.contactFields[].required` | boolean | Field required. |
| `web_appearance.contactFields[].askInChat` | boolean | Optional request-in-chat flag. If absent, a disabled field cannot be required. |
| `web_appearance.beforeCall` | object | Saved value. |
| `web_appearance.beforeCall.enabled` | boolean | Use a contact form before a web call. |
| `web_appearance.beforeCall.message` | string | Before-call message. Maximum 500 characters. |
| `web_appearance.beforeCall.fields` | array of object | Up to nine unique IDs. Each custom ID must exist in contactFields. Maximum 9 items. |
| `web_appearance.beforeCall.fields[].id` | string | Built-in field or one of five custom fields. Pattern: `^(name&#124;phone&#124;email&#124;order&#124;custom_[1-5])$`. |
| `web_appearance.beforeCall.fields[].required` | boolean | Required before starting. |
| `appearance_version` | integer | Current appearance schema version. Value: `1`. |
| `web_design` | integer | Saved design, displayed as 1 when unset. |
| `web_color` | string | Saved colour, displayed as #25D366 when unset. |
| `web_name` | string | Saved name, displayed as empty when unset. |
| `web_chips` | string | Saved comma-separated questions, empty when unset. |
| `web_calls_enabled` | boolean | Saved voice setting, false when unset. |
| `web_agent_enabled` | boolean or null | Current chat enabled setting; read-only here. |
| `revision` | string | Opaque decimal settings revision. Send current value in PATCH; 0 before an installation exists. |
| `install_id` | string or null | Public widget installation ID, not an API credential. |
| `first_seen_at` | string or null | Saved timestamp, or null. Format: date-time. |
| `last_seen_at` | string or null | Saved timestamp, or null. Format: date-time. |

## Example request

These examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep `NIXFLEX_API_KEY` private. cURL uses Bash; CLI uses PowerShell and reads the key through `NIXFLEX_API_KEY`. Replace fixture identifiers and reserved example numbers with approved account-owned values. Configure the existing MCP installation for the same account at `https://api.nixflex.com` before using the shown tool arguments. Python shows the synchronous client; `AsyncNixflex` uses the same method with `async with` and `await`. This example changes state. Review the target and payload before running it.

```bash cURL theme={"dark"}
curl --request PATCH \
  --url "https://api.nixflex.com/v1/agent-web/%2B12025550123" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"revision":"999999999999999999","settings":{"web_prompt":"","web_name":"","web_calls_enabled":false}}'
```

```javascript Node theme={"dark"}
import Nixflex from 'nixflex';

const c = new Nixflex({
  apiKey: process.env.NIXFLEX_API_KEY,
  baseUrl: 'https://api.nixflex.com',
  maxRetries: 0,
});
const result = await c.webAgent.update("+12025550123", {"revision": "999999999999999999", "settings": {"web_prompt": "", "web_name": "", "web_calls_enabled": false}});
```

```python Python theme={"dark"}
import os
from nixflex import Nixflex

with Nixflex(
    api_key=os.environ["NIXFLEX_API_KEY"],
    base_url="https://api.nixflex.com",
    max_retries=0,
) as c:
    result = c.web_agent.update('+12025550123', revision='999999999999999999', settings={'web_prompt': '', 'web_name': '', 'web_calls_enabled': False})
```

```powershell CLI (PowerShell) theme={"dark"}
$body = @'
{
  "revision": "999999999999999999",
  "settings": {
    "web_prompt": "",
    "web_name": "",
    "web_calls_enabled": false
  }
}
'@
[IO.File]::WriteAllText('request-59.json', $body, (New-Object Text.UTF8Encoding $false))
nixflex web-agent update '+12025550123' --body '@request-59.json' --confirm --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "update_web_agent",
  "arguments": {
    "number": "+12025550123",
    "body": {
      "revision": "999999999999999999",
      "settings": {
        "web_prompt": "",
        "web_name": "",
        "web_calls_enabled": false
      }
    },
    "confirm": true
  }
}
```

## Example response

Illustrative `200` response. Identifiers and values are examples; some optional or compatibility fields are omitted.

```json Response theme={"dark"}
{
  "phone_number": "+12025550101",
  "agent_id": "agent_example",
  "web_prompt": null,
  "web_appearance": null,
  "appearance_version": 1,
  "web_design": 1,
  "web_color": "#25D366",
  "web_name": "Example support",
  "web_chips": "",
  "web_calls_enabled": false,
  "web_agent_enabled": true,
  "revision": "1",
  "install_id": "widget_example",
  "first_seen_at": null,
  "last_seen_at": null
}
```

## Errors

Failures return an `error` object with `code`, `message`, `doc_url` and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 400 | [`invalid_inbox_request`](https://docs.nixflex.com/api-reference/errors#invalid_inbox_request) | A path, query, body or settings value is invalid. | Correct the documented shape and limits. |
| 404 | [`inbox_not_found`](https://docs.nixflex.com/api-reference/errors#inbox_not_found) | The number or thread is unavailable to this account. | Check the number, thread and account state. |
| 503 | [`agent_inbox_disabled`](https://docs.nixflex.com/api-reference/errors#agent_inbox_disabled) | The inbox feature is disabled. | Wait for feature availability. |
| 503 | [`inbox_unavailable`](https://docs.nixflex.com/api-reference/errors#inbox_unavailable) | The inbox read or write could not be confirmed. | Retry reads with bounded backoff; reconcile writes first. |
| 400 | [`web_prompt_too_long`](https://docs.nixflex.com/api-reference/errors#web_prompt_too_long) | Website instructions exceed 16,000 UTF-16 code units. | Shorten the instructions. |
| 409 | [`widget_settings_changed`](https://docs.nixflex.com/api-reference/errors#widget_settings_changed) | The submitted revision is stale. | Read current settings and deliberately reapply the intended changes. |
| 400 | [`invalid_json`](https://docs.nixflex.com/api-reference/errors#invalid_json) | Invalid JSON body. | Correct JSON syntax. |
| 413 | [`payload_too_large`](https://docs.nixflex.com/api-reference/errors#payload_too_large) | The request exceeds the JSON body limit. | Send a smaller request. |
| 401 | [`unauthorized`](https://docs.nixflex.com/api-reference/errors#unauthorized) | The credential is missing or invalid. | Check the full account credential. |
| 429 | [`rate_limit_exceeded`](https://docs.nixflex.com/api-reference/errors#rate_limit_exceeded) | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |

## Retry and idempotency

No idempotency key is documented. A timeout or 5xx can follow a committed change. Read the current state before deciding whether to submit again; never automatically repeat an uncertain write. Do not retry a stale revision unchanged. Reload after 409, compare the changed settings, then submit only the intended edit with the new revision.

## Related endpoints

* [Read web agent settings](https://docs.nixflex.com/api-reference/web-agent/get-agent-web-number.md)
* [Get web calls](https://docs.nixflex.com/api-reference/integration-settings/get-integrations-web-calls-number-phoneNumber.md)
* [Errors and recovery](https://docs.nixflex.com/api-reference/errors.md#error-envelope)


## OpenAPI

````yaml api-reference/public.openapi.json PATCH /agent-web/{number}
openapi: 3.1.0
info:
  title: Nixflex public API
  version: 1.0.0
  description: >-
    Nixflex API reference for agents, calls, messaging, knowledge, organisations
    and integrations. Authenticate with the owning account and follow each
    operation’s permissions, response and retry contract.
servers:
  - url: https://api.nixflex.com/v1
security:
  - bearerAuth: []
paths:
  /agent-web/{number}:
    patch:
      tags:
        - Web agent
      summary: Update web agent settings
      description: >-
        Update website agent settings for one owned number using its current
        revision. A stale revision is refused so another editor’s change is
        preserved. Read defaults describe the displayed value, not necessarily a
        persisted setting. web_agent_enabled is read-only on this endpoint. The
        inbox feature must be enabled; responses use Cache-Control: no-store.
        Read this number’s settings first and preserve revision as a string.
        Numeric decimal revisions are also accepted, but strings avoid precision
        loss. An accepted change increments the revision. The entire
        web_appearance object is replaced when supplied: preserve the fields you
        intend to keep. Its footer is always Powered by Nixflex. Contact field
        IDs must be unique; custom before-call fields must exist in
        contactFields. No nested merge is performed.
      operationId: patch_agent_web_number_
      parameters:
        - name: number
          in: path
          required: true
          schema:
            type: string
            description: International number with + and digits; no spaces.
            pattern: ^\+[1-9][0-9]{6,14}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                revision:
                  type: string
                  description: >-
                    Opaque decimal revision. Keep as a string to avoid precision
                    loss.
                  pattern: ^[0-9]{1,18}$
                settings:
                  type: object
                  properties:
                    web_prompt:
                      type: string
                      description: Website instructions. Limit is 16,000 UTF-16 code units.
                      maxLength: 16000
                    web_design:
                      type: integer
                      description: Earlier design choice.
                      minimum: 1
                      maximum: 10
                    web_color:
                      type: string
                      description: RGB hex colour.
                      pattern: ^#[0-9a-fA-F]{6}$
                    web_name:
                      type: string
                      description: >-
                        Website display name; empty clears to the display
                        default.
                      maxLength: 80
                    web_chips:
                      type: string
                      description: >-
                        Comma-separated questions: at most four, each trimmed
                        question at most 80 characters; total at most 323.
                      maxLength: 323
                    web_calls_enabled:
                      type: boolean
                      description: Per-number website voice setting.
                    web_appearance:
                      type: object
                      properties:
                        version:
                          type: integer
                          description: Appearance schema version.
                          const: 1
                        launcher:
                          type: string
                          description: Launcher identifier.
                          pattern: ^[a-z][a-z0-9-]{0,31}$
                        window:
                          type: string
                          description: Window layout.
                          enum:
                            - compact
                            - side
                            - centre
                            - full
                        visit:
                          type: string
                          description: Initial visit action.
                          enum:
                            - nothing
                            - greeting
                            - open
                        theme:
                          type: string
                          description: Colour theme.
                          enum:
                            - dark
                            - light
                        colourMode:
                          type: string
                          description: Colour mode.
                          enum:
                            - solid
                            - gradient
                        colour:
                          type: string
                          description: Primary RGB hex colour.
                          pattern: ^#[0-9a-fA-F]{6}$
                        colour2:
                          type: string
                          description: Secondary RGB hex colour.
                          pattern: ^#[0-9a-fA-F]{6}$
                        text:
                          type: object
                          properties:
                            greeting:
                              type: string
                              description: Optional greeting wording.
                              maxLength: 500
                            button:
                              type: string
                              description: Optional button wording.
                              maxLength: 500
                            title:
                              type: string
                              description: Optional title wording.
                              maxLength: 500
                            subtitle:
                              type: string
                              description: Optional subtitle wording.
                              maxLength: 500
                            call:
                              type: string
                              description: Optional call wording.
                              maxLength: 500
                            chat:
                              type: string
                              description: Optional chat wording.
                              maxLength: 500
                            welcome:
                              type: string
                              description: Optional welcome wording.
                              maxLength: 500
                            placeholder:
                              type: string
                              description: Optional placeholder wording.
                              maxLength: 500
                            status:
                              type: string
                              description: Optional status wording.
                              maxLength: 500
                            send:
                              type: string
                              description: Optional send wording.
                              maxLength: 500
                            close:
                              type: string
                              description: Optional close wording.
                              maxLength: 500
                            footer:
                              type: string
                              description: >-
                                Always normalised to Powered by Nixflex on write
                                and read.
                              maxLength: 500
                            typing:
                              type: string
                              description: Optional typing wording.
                              maxLength: 500
                            error:
                              type: string
                              description: Optional error wording.
                              maxLength: 500
                            contact:
                              type: string
                              description: Optional contact wording.
                              maxLength: 500
                            contactNote:
                              type: string
                              description: Optional contactNote wording.
                              maxLength: 500
                            contactName:
                              type: string
                              description: Optional contactName wording.
                              maxLength: 500
                            contactPhone:
                              type: string
                              description: Optional contactPhone wording.
                              maxLength: 500
                            avatar:
                              type: string
                              description: Optional avatar wording.
                              maxLength: 500
                            voiceConnecting:
                              type: string
                              description: Optional voiceConnecting wording.
                              maxLength: 500
                            voicePrivacy:
                              type: string
                              description: Optional voicePrivacy wording.
                              maxLength: 500
                            voiceMute:
                              type: string
                              description: Optional voiceMute wording.
                              maxLength: 500
                            voiceUnmute:
                              type: string
                              description: Optional voiceUnmute wording.
                              maxLength: 500
                            voiceEnd:
                              type: string
                              description: Optional voiceEnd wording.
                              maxLength: 500
                            voiceAllow:
                              type: string
                              description: Optional voiceAllow wording.
                              maxLength: 500
                            voiceCancel:
                              type: string
                              description: Optional voiceCancel wording.
                              maxLength: 500
                            voiceEnded:
                              type: string
                              description: Optional voiceEnded wording.
                              maxLength: 500
                            voiceYouEnded:
                              type: string
                              description: Optional voiceYouEnded wording.
                              maxLength: 500
                            voiceUnavailable:
                              type: string
                              description: Optional voiceUnavailable wording.
                              maxLength: 500
                            voiceUnavailableNote:
                              type: string
                              description: Optional voiceUnavailableNote wording.
                              maxLength: 500
                            voiceDisabled:
                              type: string
                              description: Optional voiceDisabled wording.
                              maxLength: 500
                            voiceInsecure:
                              type: string
                              description: Optional voiceInsecure wording.
                              maxLength: 500
                            voiceInsecureNote:
                              type: string
                              description: Optional voiceInsecureNote wording.
                              maxLength: 500
                            voicePermission:
                              type: string
                              description: Optional voicePermission wording.
                              maxLength: 500
                            voicePermissionNote:
                              type: string
                              description: Optional voicePermissionNote wording.
                              maxLength: 500
                            voiceChecking:
                              type: string
                              description: Optional voiceChecking wording.
                              maxLength: 500
                            voiceNeeded:
                              type: string
                              description: Optional voiceNeeded wording.
                              maxLength: 500
                            voiceBlocked:
                              type: string
                              description: Optional voiceBlocked wording.
                              maxLength: 500
                            voiceMissing:
                              type: string
                              description: Optional voiceMissing wording.
                              maxLength: 500
                            voiceInUse:
                              type: string
                              description: Optional voiceInUse wording.
                              maxLength: 500
                            voiceMicError:
                              type: string
                              description: Optional voiceMicError wording.
                              maxLength: 500
                            voiceBusy:
                              type: string
                              description: Optional voiceBusy wording.
                              maxLength: 500
                            voiceBusyNote:
                              type: string
                              description: Optional voiceBusyNote wording.
                              maxLength: 500
                            voiceRinging:
                              type: string
                              description: Optional voiceRinging wording.
                              maxLength: 500
                            voiceLive:
                              type: string
                              description: Optional voiceLive wording.
                              maxLength: 500
                            voiceError:
                              type: string
                              description: Optional voiceError wording.
                              maxLength: 500
                            contactSave:
                              type: string
                              description: Optional contactSave wording.
                              maxLength: 500
                            contactSavedEdit:
                              type: string
                              description: Optional contactSavedEdit wording.
                              maxLength: 500
                            contactRequired:
                              type: string
                              description: Optional contactRequired wording.
                              maxLength: 500
                            beforeCallStart:
                              type: string
                              description: Optional beforeCallStart wording.
                              maxLength: 500
                            beforeCallCancel:
                              type: string
                              description: Optional beforeCallCancel wording.
                              maxLength: 500
                          description: >-
                            Allowed wording keys; omitted keys are not
                            automatically preserved when replacing appearance.
                          additionalProperties: false
                        contactFields:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                description: Built-in field or one of five custom fields.
                                pattern: ^(name|phone|email|order|custom_[1-5])$
                              label:
                                type: string
                                description: >-
                                  Nonblank label, no control characters; trimmed
                                  and raw length at most 60.
                                minLength: 1
                                maxLength: 60
                              enabled:
                                type: boolean
                                description: Field enabled.
                              required:
                                type: boolean
                                description: Field required.
                              askInChat:
                                type: boolean
                                description: >-
                                  Optional request-in-chat flag. If absent, a
                                  disabled field cannot be required.
                            required:
                              - id
                              - label
                              - enabled
                              - required
                            description: ''
                            additionalProperties: false
                          description: Up to nine fields; IDs must be unique.
                          maxItems: 9
                        beforeCall:
                          type: object
                          properties:
                            enabled:
                              type: boolean
                              description: Use a contact form before a web call.
                            message:
                              type: string
                              description: Before-call message.
                              maxLength: 500
                            fields:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: >-
                                      Built-in field or one of five custom
                                      fields.
                                    pattern: ^(name|phone|email|order|custom_[1-5])$
                                  required:
                                    type: boolean
                                    description: Required before starting.
                                required:
                                  - id
                                  - required
                                description: ''
                                additionalProperties: false
                              description: >-
                                Up to nine unique IDs. Each custom ID must exist
                                in contactFields.
                              maxItems: 9
                          required:
                            - enabled
                            - message
                            - fields
                          description: ''
                          additionalProperties: false
                      required:
                        - version
                        - launcher
                        - window
                        - visit
                        - theme
                        - colourMode
                        - colour
                        - colour2
                        - text
                      description: >-
                        Complete appearance value, not a nested merge. Database
                        JSON representation must be at most 32,000 bytes.
                      additionalProperties: false
                  description: >-
                    At least one setting. Omitted top-level settings stay
                    unchanged. Unknown settings are refused.
                  additionalProperties: false
                  minProperties: 1
              required:
                - revision
                - settings
              description: ''
              additionalProperties: false
            example:
              revision: '0'
              settings:
                web_name: Example support
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  phone_number:
                    type: string
                    description: International number with + and digits; no spaces.
                    pattern: ^\+[1-9][0-9]{6,14}$
                  agent_id:
                    type:
                      - string
                      - 'null'
                    description: Assigned agent.
                  web_prompt:
                    type:
                      - string
                      - 'null'
                    description: Saved website instructions.
                  web_appearance:
                    type:
                      - object
                      - 'null'
                    properties:
                      version:
                        type: integer
                        description: Appearance schema version.
                        const: 1
                      launcher:
                        type: string
                        description: Launcher identifier.
                        pattern: ^[a-z][a-z0-9-]{0,31}$
                      window:
                        type: string
                        description: Window layout.
                        enum:
                          - compact
                          - side
                          - centre
                          - full
                      visit:
                        type: string
                        description: Initial visit action.
                        enum:
                          - nothing
                          - greeting
                          - open
                      theme:
                        type: string
                        description: Colour theme.
                        enum:
                          - dark
                          - light
                      colourMode:
                        type: string
                        description: Colour mode.
                        enum:
                          - solid
                          - gradient
                      colour:
                        type: string
                        description: Primary RGB hex colour.
                        pattern: ^#[0-9a-fA-F]{6}$
                      colour2:
                        type: string
                        description: Secondary RGB hex colour.
                        pattern: ^#[0-9a-fA-F]{6}$
                      text:
                        type: object
                        properties:
                          greeting:
                            type: string
                            description: Optional greeting wording.
                            maxLength: 500
                          button:
                            type: string
                            description: Optional button wording.
                            maxLength: 500
                          title:
                            type: string
                            description: Optional title wording.
                            maxLength: 500
                          subtitle:
                            type: string
                            description: Optional subtitle wording.
                            maxLength: 500
                          call:
                            type: string
                            description: Optional call wording.
                            maxLength: 500
                          chat:
                            type: string
                            description: Optional chat wording.
                            maxLength: 500
                          welcome:
                            type: string
                            description: Optional welcome wording.
                            maxLength: 500
                          placeholder:
                            type: string
                            description: Optional placeholder wording.
                            maxLength: 500
                          status:
                            type: string
                            description: Optional status wording.
                            maxLength: 500
                          send:
                            type: string
                            description: Optional send wording.
                            maxLength: 500
                          close:
                            type: string
                            description: Optional close wording.
                            maxLength: 500
                          footer:
                            type: string
                            description: >-
                              Always normalised to Powered by Nixflex on write
                              and read.
                            maxLength: 500
                          typing:
                            type: string
                            description: Optional typing wording.
                            maxLength: 500
                          error:
                            type: string
                            description: Optional error wording.
                            maxLength: 500
                          contact:
                            type: string
                            description: Optional contact wording.
                            maxLength: 500
                          contactNote:
                            type: string
                            description: Optional contactNote wording.
                            maxLength: 500
                          contactName:
                            type: string
                            description: Optional contactName wording.
                            maxLength: 500
                          contactPhone:
                            type: string
                            description: Optional contactPhone wording.
                            maxLength: 500
                          avatar:
                            type: string
                            description: Optional avatar wording.
                            maxLength: 500
                          voiceConnecting:
                            type: string
                            description: Optional voiceConnecting wording.
                            maxLength: 500
                          voicePrivacy:
                            type: string
                            description: Optional voicePrivacy wording.
                            maxLength: 500
                          voiceMute:
                            type: string
                            description: Optional voiceMute wording.
                            maxLength: 500
                          voiceUnmute:
                            type: string
                            description: Optional voiceUnmute wording.
                            maxLength: 500
                          voiceEnd:
                            type: string
                            description: Optional voiceEnd wording.
                            maxLength: 500
                          voiceAllow:
                            type: string
                            description: Optional voiceAllow wording.
                            maxLength: 500
                          voiceCancel:
                            type: string
                            description: Optional voiceCancel wording.
                            maxLength: 500
                          voiceEnded:
                            type: string
                            description: Optional voiceEnded wording.
                            maxLength: 500
                          voiceYouEnded:
                            type: string
                            description: Optional voiceYouEnded wording.
                            maxLength: 500
                          voiceUnavailable:
                            type: string
                            description: Optional voiceUnavailable wording.
                            maxLength: 500
                          voiceUnavailableNote:
                            type: string
                            description: Optional voiceUnavailableNote wording.
                            maxLength: 500
                          voiceDisabled:
                            type: string
                            description: Optional voiceDisabled wording.
                            maxLength: 500
                          voiceInsecure:
                            type: string
                            description: Optional voiceInsecure wording.
                            maxLength: 500
                          voiceInsecureNote:
                            type: string
                            description: Optional voiceInsecureNote wording.
                            maxLength: 500
                          voicePermission:
                            type: string
                            description: Optional voicePermission wording.
                            maxLength: 500
                          voicePermissionNote:
                            type: string
                            description: Optional voicePermissionNote wording.
                            maxLength: 500
                          voiceChecking:
                            type: string
                            description: Optional voiceChecking wording.
                            maxLength: 500
                          voiceNeeded:
                            type: string
                            description: Optional voiceNeeded wording.
                            maxLength: 500
                          voiceBlocked:
                            type: string
                            description: Optional voiceBlocked wording.
                            maxLength: 500
                          voiceMissing:
                            type: string
                            description: Optional voiceMissing wording.
                            maxLength: 500
                          voiceInUse:
                            type: string
                            description: Optional voiceInUse wording.
                            maxLength: 500
                          voiceMicError:
                            type: string
                            description: Optional voiceMicError wording.
                            maxLength: 500
                          voiceBusy:
                            type: string
                            description: Optional voiceBusy wording.
                            maxLength: 500
                          voiceBusyNote:
                            type: string
                            description: Optional voiceBusyNote wording.
                            maxLength: 500
                          voiceRinging:
                            type: string
                            description: Optional voiceRinging wording.
                            maxLength: 500
                          voiceLive:
                            type: string
                            description: Optional voiceLive wording.
                            maxLength: 500
                          voiceError:
                            type: string
                            description: Optional voiceError wording.
                            maxLength: 500
                          contactSave:
                            type: string
                            description: Optional contactSave wording.
                            maxLength: 500
                          contactSavedEdit:
                            type: string
                            description: Optional contactSavedEdit wording.
                            maxLength: 500
                          contactRequired:
                            type: string
                            description: Optional contactRequired wording.
                            maxLength: 500
                          beforeCallStart:
                            type: string
                            description: Optional beforeCallStart wording.
                            maxLength: 500
                          beforeCallCancel:
                            type: string
                            description: Optional beforeCallCancel wording.
                            maxLength: 500
                        description: >-
                          Allowed wording keys; omitted keys are not
                          automatically preserved when replacing appearance.
                        additionalProperties: false
                      contactFields:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Built-in field or one of five custom fields.
                              pattern: ^(name|phone|email|order|custom_[1-5])$
                            label:
                              type: string
                              description: >-
                                Nonblank label, no control characters; trimmed
                                and raw length at most 60.
                              minLength: 1
                              maxLength: 60
                            enabled:
                              type: boolean
                              description: Field enabled.
                            required:
                              type: boolean
                              description: Field required.
                            askInChat:
                              type: boolean
                              description: >-
                                Optional request-in-chat flag. If absent, a
                                disabled field cannot be required.
                          required:
                            - id
                            - label
                            - enabled
                            - required
                          description: ''
                          additionalProperties: false
                        description: Up to nine fields; IDs must be unique.
                        maxItems: 9
                      beforeCall:
                        type: object
                        properties:
                          enabled:
                            type: boolean
                            description: Use a contact form before a web call.
                          message:
                            type: string
                            description: Before-call message.
                            maxLength: 500
                          fields:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: Built-in field or one of five custom fields.
                                  pattern: ^(name|phone|email|order|custom_[1-5])$
                                required:
                                  type: boolean
                                  description: Required before starting.
                              required:
                                - id
                                - required
                              description: ''
                              additionalProperties: false
                            description: >-
                              Up to nine unique IDs. Each custom ID must exist
                              in contactFields.
                            maxItems: 9
                        required:
                          - enabled
                          - message
                          - fields
                        description: ''
                        additionalProperties: false
                    required:
                      - version
                      - launcher
                      - window
                      - visit
                      - theme
                      - colourMode
                      - colour
                      - colour2
                      - text
                    description: >-
                      Complete appearance value, not a nested merge. Database
                      JSON representation must be at most 32,000 bytes.
                    additionalProperties: false
                  appearance_version:
                    type: integer
                    description: Current appearance schema version.
                    const: 1
                  web_design:
                    type: integer
                    description: Saved design, displayed as 1 when unset.
                  web_color:
                    type: string
                    description: 'Saved colour, displayed as #25D366 when unset.'
                  web_name:
                    type: string
                    description: Saved name, displayed as empty when unset.
                  web_chips:
                    type: string
                    description: Saved comma-separated questions, empty when unset.
                  web_calls_enabled:
                    type: boolean
                    description: Saved voice setting, false when unset.
                  web_agent_enabled:
                    type:
                      - boolean
                      - 'null'
                    description: Current chat enabled setting; read-only here.
                  revision:
                    type: string
                    description: >-
                      Opaque decimal settings revision. Send current value in
                      PATCH; 0 before an installation exists.
                  install_id:
                    type:
                      - string
                      - 'null'
                    description: Public widget installation ID, not an API credential.
                  first_seen_at:
                    type:
                      - string
                      - 'null'
                    description: Saved timestamp, or null.
                    format: date-time
                  last_seen_at:
                    type:
                      - string
                      - 'null'
                    description: Saved timestamp, or null.
                    format: date-time
                required:
                  - phone_number
                  - agent_id
                  - web_prompt
                  - web_appearance
                  - appearance_version
                  - web_design
                  - web_color
                  - web_name
                  - web_chips
                  - web_calls_enabled
                  - web_agent_enabled
                  - revision
                  - install_id
                  - first_seen_at
                  - last_seen_at
                description: ''
                additionalProperties: false
              example:
                phone_number: '+12025550101'
                agent_id: agent_example
                web_prompt: null
                web_appearance: null
                appearance_version: 1
                web_design: 1
                web_color: '#25D366'
                web_name: Example support
                web_chips: ''
                web_calls_enabled: false
                web_agent_enabled: true
                revision: '1'
                install_id: widget_example
                first_seen_at: null
                last_seen_at: null
        '400':
          description: >-
            invalid_inbox_request: A path, query, body or settings value is
            invalid. web_prompt_too_long: Website instructions exceed 16,000
            UTF-16 code units. invalid_json: Invalid JSON body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '401':
          description: 'unauthorized: The credential is missing or invalid.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '404':
          description: >-
            inbox_not_found: The number or thread is unavailable to this
            account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '409':
          description: 'widget_settings_changed: The submitted revision is stale.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '413':
          description: 'payload_too_large: The request exceeds the JSON body limit.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '429':
          description: 'rate_limit_exceeded: The account request limit was reached.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
        '503':
          description: >-
            agent_inbox_disabled: The inbox feature is disabled.
            inbox_unavailable: The inbox read or write could not be confirmed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: Machine-readable error code.
                      message:
                        type: string
                        description: Explanation.
                      doc_url:
                        type: string
                        description: Error reference link.
                      details:
                        type: object
                        properties: {}
                        description: >-
                          Optional context; inspect campaign_id, status, outcome
                          and safe_to_retry for uncertain writes.
                        additionalProperties: true
                    required:
                      - code
                      - message
                      - doc_url
                      - type
                    description: ''
                    additionalProperties: false
                required:
                  - error
                description: ''
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A
        verified personal dashboard Bearer session may be used where the
        operation documents role-based access.

````

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