Superwall

作者 superwalla64b7d1b6392無授權條款30 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 天前更新

Provides Superwall REST API access, documentation lookup, SDK integration triage, dashboard linking, and SDK source cloning. Use when the user asks about Superwall paywalls, campaigns, subscriptions, API usage, SDK integration, webhook events, or debugging SDK behavior.

AI 產生的概覽

提供 Superwall REST API 存取、文件查詢、SDK 整合排查、儀表板連結和 SDK 原始碼複製。

功能
透過內建的 bash 輔助指令碼封裝 Superwall REST API V2,支援專案與應用程式的探索、建立和更新,並支援以游標為基礎的分頁。它也引導取得即時 Superwall 文件、儀表板 URL 模式、webhook 與整合目錄,以及複製 SDK 儲存庫用於除錯。參考檔案涵蓋 SDK 整合和 SDK 原始碼工作流程。
適用情境
當使用者詢問 Superwall 付費牆、活動、訂閱、API 用法、SDK 整合、webhook 事件或除錯 SDK 行為時使用。它既適合唯讀分析,也適合針對組織專案和應用程式執行完整的 API 操作。
執行需求
REST 呼叫需要 SUPERWALL_API_KEY 環境變數(組織層級 bearer token),--help 旗標需要 jq,文件和 webhook 取得需要 curl,並需要網路存取。附帶可執行指令碼 scripts/sw-api.sh 以及參考文件。

Superwall

API Access

A bash helper is included at {baseDir}/scripts/sw-api.sh. It wraps the Superwall REST API V2.

Requires: SUPERWALL_API_KEY environment variable (org-scoped bearer token).

bash
# List all routes with methods (fetches live OpenAPI spec, no API key needed){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
# List all projects (start here to discover the org structure){baseDir}/scripts/sw-api.sh /v2/projects
# Get a specific project (includes its applications){baseDir}/scripts/sw-api.sh /v2/projects/{id}
# Create a project{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.

Data hierarchy

Organization → Projects → Applications. Each application has a platform (ios, android, flutter, react_native, web), a bundle_id, and a public_api_key (used for SDK initialization — distinct from the org API key used for REST calls).

Bootstrap workflow

  1. Call GET /v2/projects to list all projects
  2. Find the project matching the user's context
  3. Inspect its applications array to find the right platform
  4. Use the application's public_api_key for SDK init, the org SUPERWALL_API_KEY for REST API calls

Pagination

Cursor-based. Responses include has_more. Pass limit (1-100), starting_after, or ending_before as query params.


API Key Setup

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 SUPERWALL_API_KEY in the environment.

Required scopes

For full use of this skill, the API key requires all scopes. However, you may also provision just read access if you'll just be doing analysis.


Documentation

All Superwall documentation is available in machine-readable formats. Do not hardcode doc content — always fetch live.

ResourceURLUse when
Doc indexhttps://superwall.com/docs/llms.txtFinding the right doc page for a topic
Full docshttps://superwall.com/docs/llms-full.txtNeed comprehensive context across many topics
Single pagecurl -sL https://superwall.com/docs/{path}.mdReading a specific doc page

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 llms.txt first to find the exact path, then fetch that page with curl -sL.


SDK Integration

For SDK integration, use the platform-specific quickstart skills when available:

PlatformSkill
iOS (Swift/ObjC)superwall-ios-quickstart
Android (Kotlin/Java)superwall-android-quickstart
Fluttersuperwall-flutter-quickstart
Exposuperwall-expo-quickstart

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 [blocked].


Dashboard Links

URL patterns for linking users to Superwall dashboard pages. See references/dashboard-links.md [blocked].


SDK Source (for debugging)

Clone SDK repos locally to trace internal behavior. See references/sdk-source.md [blocked].


Webhooks & Integrations

Live integration catalog (same source the Superwall dashboard pulls from):

bash
curl -s https://webhooks.superwall.me/integrations

Always 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 https://superwall.com/docs/llms.txt and search for "events" or "analytics" to find the full event type reference

來源與署名

來源:superwall/skills位於tmp/.agents/skills/superwall提交a64b7d1

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架