curl "https://api.scanova.io/theme/user-42-ocean-breeze-a1b2c3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 7,
"name": "Ocean Breeze",
"slug": "user-42-ocean-breeze-a1b2c3",
"description": "A cool blue palette.",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" }, "font": { "heading": "Inter" } },
"schema_version": 2,
"category_hints": ["website-url", "vcard"],
"thumbnail_url": "https://cdn.scanova.io/themes/7/thumb.png",
"is_system": false,
"is_premium": false,
"order": 0
}
主题与页面模板
获取主题
GET /theme//
GET
/
theme
/
{slug}
/
curl "https://api.scanova.io/theme/user-42-ocean-breeze-a1b2c3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 7,
"name": "Ocean Breeze",
"slug": "user-42-ocean-breeze-a1b2c3",
"description": "A cool blue palette.",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" }, "font": { "heading": "Inter" } },
"schema_version": 2,
"category_hints": ["website-url", "vcard"],
"thumbnail_url": "https://cdn.scanova.io/themes/7/thumb.png",
"is_system": false,
"is_premium": false,
"order": 0
}
在 Management API 主机(
如果
api.scanova.io)上按 slug 或 id 获取单个主题,使用您的原始 Management API 密钥进行身份验证。
GET https://api.scanova.io/theme/{slug}/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
string
必填
主题的
slug(数字 id 在同样的路径形式下也可使用)。curl "https://api.scanova.io/theme/user-42-ocean-breeze-a1b2c3/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 7,
"name": "Ocean Breeze",
"slug": "user-42-ocean-breeze-a1b2c3",
"description": "A cool blue palette.",
"config_json": { "color": { "accent": "#0077be", "background": "#f0f8ff" }, "font": { "heading": "Inter" } },
"schema_version": 2,
"category_hints": ["website-url", "vcard"],
"thumbnail_url": "https://cdn.scanova.io/themes/7/thumb.png",
"is_system": false,
"is_premium": false,
"order": 0
}
此处不进行所有权检查——任何活跃主题,包括其他账户的主题,都可以通过 slug 或 id 获取,因为主题是页面构建器的共享只读资源。写入您不拥有的主题仍然会被阻止——参见更新主题。
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.
路径参数
响应
One theme.
此页面对您有帮助吗?