superwall
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSuperwall
Superwall
API Access
API 访问
A bash helper is included at . It wraps the Superwall REST API V2.
{baseDir}/scripts/sw-api.shRequires: environment variable (org-scoped bearer token).
SUPERWALL_API_KEYbash
undefined在路径下包含一个bash辅助脚本,它封装了Superwall REST API V2。
{baseDir}/scripts/sw-api.sh要求:需设置环境变量(组织级别的Bearer令牌)。
SUPERWALL_API_KEYbash
undefinedList all routes with methods (fetches live OpenAPI spec, no API key needed)
列出所有带请求方法的路由(获取实时OpenAPI规范,无需API密钥)
{baseDir}/scripts/sw-api.sh --help
{baseDir}/scripts/sw-api.sh --help
Show full spec for a specific route (params, request body, responses)
查看特定路由的完整规范(参数、请求体、响应)
{baseDir}/scripts/sw-api.sh --help /v2/projects
{baseDir}/scripts/sw-api.sh --help /v2/projects
List all projects (start here to discover the org structure)
列出所有项目(从此处开始了解组织架构)
{baseDir}/scripts/sw-api.sh /v2/projects
{baseDir}/scripts/sw-api.sh /v2/projects
Get a specific project (includes its applications)
获取特定项目信息(包含其关联的应用)
{baseDir}/scripts/sw-api.sh /v2/projects/{id}
{baseDir}/scripts/sw-api.sh /v2/projects/{id}
Create a project
创建项目
{baseDir}/scripts/sw-api.sh -m POST -d '{"name":"My Project"}' /v2/projects
{baseDir}/scripts/sw-api.sh -m POST -d '{"name":"My Project"}' /v2/projects
Update a project
更新项目
{baseDir}/scripts/sw-api.sh -m PATCH -d '{"name":"Renamed"}' /v2/projects/{id}
The `--help` flag requires `jq`.{baseDir}/scripts/sw-api.sh -m PATCH -d '{"name":"Renamed"}' /v2/projects/{id}
使用`--help`标志需要依赖`jq`工具。Data hierarchy
数据层级
Organization → Projects → Applications. Each application has a (ios, android, flutter, react_native, web), a , and a (used for SDK initialization — distinct from the org API key used for REST calls).
platformbundle_idpublic_api_key组织 → 项目 → 应用。每个应用包含(ios、android、flutter、react_native、web)、以及(用于SDK初始化——与REST调用使用的组织API密钥不同)。
platformbundle_idpublic_api_keyBootstrap workflow
引导工作流
- Call to list all projects
GET /v2/projects - Find the project matching the user's context
- Inspect its array to find the right platform
applications - Use the application's for SDK init, the org
public_api_keyfor REST API callsSUPERWALL_API_KEY
- 调用列出所有项目
GET /v2/projects - 找到与用户上下文匹配的项目
- 查看其数组,找到对应的平台
applications - 使用应用的进行SDK初始化,使用组织的
public_api_key进行REST API调用SUPERWALL_API_KEY
Pagination
分页
Cursor-based. Responses include . Pass (1-100), , or as query params.
has_morelimitstarting_afterending_before基于游标分页。响应结果包含字段。可通过查询参数传递(1-100)、或。
has_morelimitstarting_afterending_beforeAPI Key Setup
API密钥设置
API keys are org-scoped — one key grants access to all projects and applications in the organization.
- Get an API key:
https://superwall.com/select-application?pathname=/applications/:app/settings/api-keys - Store the key as in the environment.
SUPERWALL_API_KEY
API密钥是组织级别的——一个密钥即可访问组织内的所有项目和应用。
- 获取API密钥:访问
https://superwall.com/select-application?pathname=/applications/:app/settings/api-keys - 将密钥存储为环境变量。
SUPERWALL_API_KEY
Documentation
文档
All Superwall documentation is available in machine-readable formats. Do not hardcode doc content — always fetch live.
| Resource | URL | Use when |
|---|---|---|
| Doc index | | Finding the right doc page for a topic |
| Full docs | | Need comprehensive context across many topics |
| Single page | | Reading a specific doc page |
所有Superwall文档均提供机器可读格式。请勿硬编码文档内容——始终获取实时内容。
| 资源 | URL | 使用场景 |
|---|---|---|
| 文档索引 | | 查找对应主题的文档页面 |
| 完整文档 | | 需要跨多个主题的全面上下文信息 |
| 单页文档 | | 阅读特定文档页面 |
Platform doc prefixes
平台文档前缀
- iOS:
/docs/ios/ - Android:
/docs/android/ - Flutter:
/docs/flutter/ - Expo:
/docs/expo/ - React Native:
/docs/react-native/ - Dashboard:
/docs/dashboard/ - Web Checkout:
/docs/web-checkout/ - Integrations:
/docs/integrations/
Tip: Fetch first to find the exact path, then fetch that page with .
llms.txtcurl -sL- iOS:
/docs/ios/ - Android:
/docs/android/ - Flutter:
/docs/flutter/ - Expo:
/docs/expo/ - React Native:
/docs/react-native/ - 仪表盘:
/docs/dashboard/ - Web结账:
/docs/web-checkout/ - 集成:
/docs/integrations/
提示:先获取找到准确路径,再使用获取对应页面。
llms.txtcurl -sLSDK Integration
SDK集成
For SDK integration, use the platform-specific quickstart skills when available:
| Platform | Skill |
|---|---|
| iOS (Swift/ObjC) | |
| Android (Kotlin/Java) | |
| Flutter | |
| Expo | |
For platforms without a dedicated skill (React Native), or when the quickstart skills are not installed, follow the live-doc workflow in references/sdk-integration.md.
对于SDK集成,优先使用平台专属的快速入门技能:
| 平台 | 技能 |
|---|---|
| iOS (Swift/ObjC) | |
| Android (Kotlin/Java) | |
| Flutter | |
| Expo | |
对于没有专属技能的平台(如React Native),或未安装快速入门技能时,请遵循references/sdk-integration.md中的实时文档工作流。
Dashboard Links
仪表盘链接
URL patterns for linking users to Superwall dashboard pages. See references/dashboard-links.md.
用于引导用户访问Superwall仪表盘页面的URL模式,请参考references/dashboard-links.md。
SDK Source (for debugging)
SDK源码(用于调试)
Clone SDK repos locally to trace internal behavior. See references/sdk-source.md.
本地克隆SDK仓库以追踪内部行为,请参考references/sdk-source.md。
Webhooks & Integrations
Webhooks与集成
Live integration catalog (same source the Superwall dashboard pulls from):
bash
curl -s https://webhooks.superwall.me/integrationsAlways fetch live — do not cache.
For general webhook and event documentation, fetch from the docs:
- Webhook setup:
curl -sL https://superwall.com/docs/integrations/webhooks.md - Event catalog: Fetch and search for "events" or "analytics" to find the full event type reference
https://superwall.com/docs/llms.txt
实时集成目录(与Superwall仪表盘使用的数据源相同):
bash
curl -s https://webhooks.superwall.me/integrations始终获取实时内容——请勿缓存。
关于Webhook和事件的通用文档,可从以下文档获取:
- Webhook设置:
curl -sL https://superwall.com/docs/integrations/webhooks.md - 事件目录:获取并搜索"events"或"analytics"以找到完整的事件类型参考
https://superwall.com/docs/llms.txt