---
title: "Create"
method: POST
path: "/site/{site_name}/sitewidehtml"
---

# Create

`POST /site/{site_name}/sitewidehtml`

## Request

- Base URL: `https://api-sandbox.duda.co/api/integrationhub/application`
- URL: `https://api-sandbox.duda.co/api/integrationhub/application/site/{site_name}/sitewidehtml`
- Auth: none required

Create a site-wide HTML embed.

## Path parameters

- `site_name` string, required

## Headers

- `x-duda-access-token` string
- `authorization` string

## Request body

- object
  - `location` 'BODY' | 'HEAD' | 'CONTENT_END' | 'BEFORE_SCRIPTS': Location of where the code will be added in the website.
  - `markup` string: The raw HTML you want to embed into the site.

## Response `200`

200

- object
  - `location` string
  - `markup` string
  - `uuid` string

## Changes

- **2026-11-03** `b3190126015a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/duda/apis/partner-api/changes/site/:site_name/sitewidehtml/post.md)

---

[API](https://skmtc.dev/duda/apis/partner-api.md) - [All operations](https://skmtc.dev/duda/apis/partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/partner-api/revisions/b3190126015a?raw)
