---
title: "Admin Embed Test"
method: POST
path: "/v1/admin/embed/test"
---

# Admin Embed Test

`POST /v1/admin/embed/test`

## Request

- Base URL: `https://api.storyflo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.storyflo.com/v1/admin/embed/test`
- Auth: none declared

Validate the merchant-side ``/embed/badge`` flow end-to-end for an
arbitrary URL. Reuses the same intake helpers + DB lookups as
``/v1/badge/resolve`` and emits a per-stage pass/fail report.

Stages: fetch_page, publisher_resolve, article_upsert,
render_enqueue, render_complete (polls up to ~60s), embed_html.

``dry_run=true`` stops after publisher_resolve.

Auth: admin token (X-Storyflo-Email-Token). This endpoint fetches
arbitrary URLs server-side, so it must require admin auth, not the
shared api_key.

## Headers

- `x-storyflo-email-token` string, nullable

## Request body

- EmbedTestRequest
  - `url` string, required
  - `dry_run` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/storyflo/apis/storyflo-inference-router.md) · [All operations](https://skmtc.dev/storyflo/apis/storyflo-inference-router/llms.txt) · [OpenAPI document](https://skmtc.dev/storyflo/apis/storyflo-inference-router/revisions/c3a1a735ac7a?raw)
