curl "https://api.scanova.io/page-template/public/product-launch-a1b2c3/"
{
"slug": "product-launch-a1b2c3",
"blocks_json": [{ "type": "hero" }],
"theme": {
"slug": "user-42-ocean-breeze-a1b2c3",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" } },
"schema_version": 2
},
"accent_color": "#0077be",
"preview_bg": "#f0f8ff"
}
主题与页面模板
获取用于渲染的公开页面模板
GET /page-template/public//
GET
/
page-template
/
public
/
{slug}
/
curl "https://api.scanova.io/page-template/public/product-launch-a1b2c3/"
{
"slug": "product-launch-a1b2c3",
"blocks_json": [{ "type": "hero" }],
"theme": {
"slug": "user-42-ocean-breeze-a1b2c3",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" } },
"schema_version": 2
},
"accent_color": "#0077be",
"preview_bg": "#f0f8ff"
}
在 Management API 主机(
此响应有意精简——不包含
api.scanova.io)上获取某个页面模板的精简、以渲染为导向的数据形态。
GET https://api.scanova.io/page-template/public/{slug}/
无需身份验证。
string
必填
模板的
slug。curl "https://api.scanova.io/page-template/public/product-launch-a1b2c3/"
{
"slug": "product-launch-a1b2c3",
"blocks_json": [{ "type": "hero" }],
"theme": {
"slug": "user-42-ocean-breeze-a1b2c3",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" } },
"schema_version": 2
},
"accent_color": "#0077be",
"preview_bg": "#f0f8ff"
}
name、description 或其他图库元数据——旨在渲染已发布的页面,而非用于浏览图库。当您需要完整的模板记录时,请改用获取页面模板。如果 slug 不匹配任何活跃模板,则返回 404。
相关内容
- 获取页面模板——完整的、需身份验证的等效端点。
- Management API 概览——适用于此端点的身份验证方案和配额规则。
授权
Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.
路径参数
响应
Minimal template shape for rendering.
此页面对您有帮助吗?