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

# Generate Iframe Token

> Generate a one-time token for iframe authentication.

Generate a one-time token (OTT) to authenticate an embedded iframe session. The token expires after a short period and can only be used once.

<ParamField header="X-Api-Key" type="string" required>
  Your API key (prefixed with `wh_`).
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "ott": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expires_in": 30
  }
  ```
</ResponseExample>

<Note>
  This endpoint is used in the iframe embedding authentication flow. See the [Iframe Embedding](/en/embed/overview) guide and the [Embed Authentication](/en/embed/authentication) page for more details.
</Note>
