通过 Queenshow OpenAPI 生成、更新和查询 Queenshow 编辑器下一代产品详情页。当代理需要上传产品图片或视频时使用。
Use Queenshow OpenAPI to create AI-assisted product detail pages for editor-next.
Base URL notes:
https://your-host/api/promotion when calling through the frontend/proxy path.http://localhost:8890/promotion when calling a local backend directly.Read references/openapi.md for endpoint details and payload shapes.
Use Authorization: Bearer <apiKey> or X-API-Key: <apiKey> for every /openapi/* request.
Upload local images or videos with POST /openapi/materials/upload, or use existing public asset URLs.
Create the detail page with POST /openapi/detail-pages.
product.mainImages is required and accepts up to 3 URLs.editor-next document.product_outline_generate task.Poll GET /openapi/detail-pages/{id}/status until status is outline_ready.
Apply the outline with POST /openapi/detail-pages/{id}/outline/apply.
sections to use the outline task result directly.section_image_generate tasks.Poll status until completed.
Fetch the final document with GET /openapi/detail-pages/{id}.
Fetch the final page and verify the document has the expected section/image nodes:
status is completed.value.url and value.generationStatus == "succeeded".Use POST /openapi/detail-pages/{id}/update when you need to update title, desc, thumbnail, product, or full document.
Use scripts/detail_page_client.py for repeatable calls without extra dependencies:
bash
python .codex/skills/queenshow-detail-page/scripts/detail_page_client.py \
--base-url https://your-host/api/promotion \
--api-key qs_live_xxx \
--summary \
run \
--title "Running Shoes Detail Page" \
--main-image https://example.com/shoe-1.png \
--intro "Lightweight running shoes with breathable mesh and rebound foam." \
--detail-style "clean, premium, high contrast product photography"
The script sends JSON as UTF-8 and redacts sensitive output fields such as plainKey by default. Use --show-sensitive only when a task explicitly needs unredacted output. Use --summary for compact status, document, usage, and run output during verification.
Useful commands:
upload: upload local image or video files.materials: list materials uploaded by the current API key.create: create an empty detail page and outline task.pages: list detail pages created by the current API key.status: query detail page task state.apply-outline: create section placeholders and image tasks from the outline.get: fetch final page, document, and tasks.update: update title, desc, thumbnail, product, full document, or use --document-title / --document-desc to fetch the current document and update those document fields safely.task: fetch one task by task id.usage: fetch current API key spend, reserved amount, and resource counts.run: create, wait for outline, apply outline, wait for completion, then print final detail page.POST /openapi/materials/upload to get a unique COS URL before creating the detail page.POST /openapi/detail-pages/{id}/update to write back the full document + set thumbnail after completed.IndustryStyle ReferenceColor PalettePlush ToysJellycat / DisneyCream white + soft pink + sky blueSunglassesRay-Ban / OakleyCool gray + blue + blackPhone CasesCasetifyGradient + white + accentBeauty ToolsMAC / SigmaRose gold + pink + whiteWigsLuvme Hair / UNiceNatural black + beige + rose goldJewelryChow Tai Fook / TiffanyChampagne gold + pearl white + navyFoodDaoxiangcun / Three SquirrelsWarm gold + Chinese red + creamBagsCoach / Michael KorsCaramel + cream + gold hardwareHome DecorIKEA / MUJINatural wood + warm white + greenSneakersNike / Adidas / ONEMIXEnergetic orange + tech blue + black
GET /openapi/usage before batch runs.update to persist content. Share links work regardless of published status.When running multiple products, do not stop on errors. Continue to the next product and handle failures afterward. Efficiency and completion rate take priority.
completed as the final success state.failed as terminal and inspect failed tasks via GET /openapi/tasks/{taskId}.outline_ready as the signal to apply outline sections.outline/apply before the outline task succeeds.GET /openapi/usage before large batch runs.Content-Type: application/json; charset=utf-8./openapi/* endpoints)