> ## 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.

# Read web agent settings

> Read website agent settings for one owned number, including its current revision and optional appearance configuration.

**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)

Read website agent settings for one owned number, including its current revision and optional appearance configuration.

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

**The important part**

* Read the web settings for the owned number.
* A saved setting is not a live browser connection test.

[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)

## Authentication

Send `Authorization: Bearer KEY_ID:KEY_SECRET` using the owning account’s server-side credential.

## 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}$`. |

Do not send a request body.

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. The appearance object is null until saved. Its footer is always returned as Powered by Nixflex. Installation timestamps can be null when the widget has not been seen.

## 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`.

```bash cURL theme={"dark"}
curl --request GET \
  --url "https://api.nixflex.com/v1/agent-web/%2B12025550123" \
  --header "Authorization: Bearer $NIXFLEX_API_KEY"
```

```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.get("+12025550123");
```

```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.get('+12025550123')
```

```powershell CLI (PowerShell) theme={"dark"}
nixflex web-agent get '+12025550123' --json --base-url "https://api.nixflex.com"
```

```json MCP theme={"dark"}
{
  "name": "get_web_agent",
  "arguments": {
    "number": "+12025550123"
  }
}
```

## 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": "",
  "web_chips": "",
  "web_calls_enabled": false,
  "web_agent_enabled": true,
  "revision": "0",
  "install_id": null,
  "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. |
| 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

This is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

## Related endpoints

* [Update web agent settings](https://docs.nixflex.com/api-reference/web-agent/patch-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 GET /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}:
    get:
      tags:
        - Web agent
      summary: Read web agent settings
      description: >-
        Read website agent settings for one owned number, including its current
        revision and optional appearance configuration. 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. The appearance object
        is null until saved. Its footer is always returned as Powered by
        Nixflex. Installation timestamps can be null when the widget has not
        been seen.
      operationId: get_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}$
      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: ''
                web_chips: ''
                web_calls_enabled: false
                web_agent_enabled: true
                revision: '0'
                install_id: null
                first_seen_at: null
                last_seen_at: null
        '400':
          description: >-
            invalid_inbox_request: A path, query, body or settings value is
            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
        '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
        '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.