---
title: "Get chat widget embed code and test URL"
method: GET
path: "/chat-widgets/{id}/embed-code"
tags: ["Chat widgets"]
---

# Get chat widget embed code and test URL

`GET /chat-widgets/{id}/embed-code`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/chat-widgets/{id}/embed-code`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

## Path parameters

- `id` string, required

## Response `200`

Embed code

## Other responses

- `404`: The resource does not exist in the API key's organization.

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
