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

# embedded.deprecationWarning

> Emitted when a deprecated embedded API method is called and a migration warning is shown.

## Event Properties

| Field          | Value                           |
| -------------- | ------------------------------- |
| `event`        | `"embedded.deprecationWarning"` |
| `confidential` | `boolean`                       |
| `payload`      | `object`                        |

<Tabs>
  <Tab title="Public Payload">
    | Field               | Type                                           | Description                              |
    | ------------------- | ---------------------------------------------- | ---------------------------------------- |
    | `methodName`        | `"configure" \| "configureSession"`            | Deprecated embedded API method name      |
    | `replacement`       | `"configureApp() and setInteractionOptions()"` | Suggested replacement method or methods  |
    | `migrationGuideUrl` | `string`                                       | Documentation URL for migration guidance |

    #### Example

    ```json theme={null}
    {
      "event": "embedded.deprecationWarning",
      "confidential": false,
      "payload": {
        "methodName": "configure",
        "replacement": "configureApp() and setInteractionOptions()",
        "migrationGuideUrl": "https://docs.corti.ai/assistant/configuration-migration"
      }
    }
    ```
  </Tab>

  <Tab title="Confidential Payload">
    | Field               | Type                                           | Description                              |
    | ------------------- | ---------------------------------------------- | ---------------------------------------- |
    | `methodName`        | `"configure" \| "configureSession"`            | Deprecated embedded API method name      |
    | `replacement`       | `"configureApp() and setInteractionOptions()"` | Suggested replacement method or methods  |
    | `migrationGuideUrl` | `string`                                       | Documentation URL for migration guidance |

    #### Example

    ```json theme={null}
    {
      "event": "embedded.deprecationWarning",
      "confidential": true,
      "payload": {
        "methodName": "configure",
        "replacement": "configureApp() and setInteractionOptions()",
        "migrationGuideUrl": "https://docs.corti.ai/assistant/configuration-migration"
      }
    }
    ```
  </Tab>
</Tabs>
