Superwall

superwall/skills/tmp/.agents/skills/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 从公开仓库中收录这些内容。

举报或申请下架