---
title: "Create Embed Key"
method: POST
path: "/v1/embed/keys/{template_id}"
tags: ["embed"]
---

# Create Embed Key

`POST /v1/embed/keys/{template_id}`

Generate a publishable embed key for a template. The raw key is shown only once.

Optionally restrict to specific domains. If allowed_domains is empty, the key works from any domain.

## Path parameters

- `template_id` string, required

## Request body

- EmbedKeyCreate
  - `allowed_domains` string[]

## Response `200`

Successful Response

- EmbedKeyCreated
  - `id` string, required
  - `template_id` string, required
  - `label` string, required
  - `allowed_domains` string[], required
  - `created_at` string, required
  - `key` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/roxels/apis/interviewer.md) · [All operations](https://skmtc.dev/roxels/apis/interviewer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roxels/interviewer/revisions/4ef48ed226e1/schema)
