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

# Duplicate Widget

> Clone an existing widget configuration into a new draft.

Creates a copy of the widget with the same appearance, behavior, and security settings. Returns `201 Created`.

## Authentication

Requires a Bearer token (API key) or a dashboard session. Accepts an `Idempotency-Key` header.

## Path Parameters

<ParamField path="id" type="string" required>
  The source widget config UUID.
</ParamField>

## Response

<ResponseField name="iframe" type="object">
  The newly created widget config (new `id`).
</ResponseField>

## Example

```bash curl theme={null}
curl -X POST https://www.hitheo.ai/api/v1/iframes/CONFIG_ID/duplicate \
  -H "Authorization: Bearer $THEO_API_KEY"
```
