---
title: "Get Widget Embed Code"
method: GET
path: "/api/v1/widgets/{widget_id}/embed-code"
tags: ["Widgets"]
---

# Get Widget Embed Code

`GET /api/v1/widgets/{widget_id}/embed-code`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/v1/widgets/{widget_id}/embed-code`
- Auth: none declared

Return the script tag to paste on the site the widget belongs to.

## Path parameters

- `widget_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: No widget with this id in the workspace.
- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
