导出
基础 URL
https://flarestore.app
快速参考
01 证书检查器
POST /check-cert
验证签名证书的有效性和 OCSP 吊销状态。支持两种模式:上传 P12 文件,或按序列号检查。
请求(multipart/form-data)
method string 检查模式:"p12"(默认)或 "serial"
p12* file P12 证书文件(.p12 / .pfx)— p12 模式必填
provision file 用于兼容性检查的描述文件(.mobileprovision)
password string P12 密码(如有保护)
serial string 证书序列号(用于 serial 模式)
serialType string "decimal"(默认)或 "hex"
响应
{ "success": true, "certificate": { "valid": true, "message": "Certificate is valid and ready for signing", "subject": "Apple Development: John Doe (XXXXXXXXXX)", "issuer": "Apple Worldwide Developer Relations CA", "serialNumber": "123456789", "serialNumberHex": "0x75bcd15", "notBefore": "2024-01-15", "notAfter": "2025-01-14", "expired": false, "revoked": false, "ocspStatus": "good", "matchesProvision": true }, "provision": { "name": "My Profile", "appId": "com.example.app", "teamId": "ABC123XYZ", "teamName": "My Team", "expiration": "2025-01-14", "expired": false, "uuid": "550e8400-e29b-41d4-a716-446655440000" } }
请求示例
curl -X POST \ https://flarestore.app/check-cert \ -F "[email protected]" \ -F "[email protected]" \ -F "password=your_password"
02 一站式签名
POST /api/sign
在一个 multipart 请求中发送 IPA(文件或 ipa_url 链接)、证书和描述文件。直接以文件下载形式返回已签名的 IPA。最适合不需要安装页面的简单集成。
请求(multipart/form-data)
ipa file 要签名的 IPA 文件(最大 500 MB)。发送 ipa_url 时不需要
ipa_url string 代替 ipa:指向 .ipa 的 https:// 链接。服务器会自行下载(最大 500 MB)
p12* file 签名证书(.p12 / .pfx)
provision* file 描述文件(.mobileprovision)
p12_password string 证书密码
icon file 自定义应用图标(.png / .jpg)
tweak file 要注入的 Dylib(.dylib / .deb)
可选签名选项(表单字段)
bundle_id 自定义 Bundle ID
app_name 显示名称
app_version 版本字符串
min_os_version 最低 iOS 版本
duplicate_install "true" 表示多开副本
remove_watch "true" 表示移除手表应用
remove_all_extensions "true" 表示移除扩展
remove_ui_supported_devices "true" 表示移除设备限制
enable_file_browser "true" 表示启用文件共享
enable_itunes_file_sharing "true" 表示启用 iTunes 共享
enable_promotion "true" 表示启用 120Hz
enable_game_mode "true" 表示启用游戏模式
remove_url_schemes "true" 表示移除 URL Scheme
add_url_schemes 逗号分隔的 Scheme
remove_embedded_provision "true" 表示移除内嵌描述文件
is_mac "true" 表示进行 macOS 签名
响应
HTTP/1.1 200 OK Content-Type: application/octet-stream Content-Disposition: attachment; filename="MyApp_signed.ipa" <binary IPA data>
响应是原始的已签名 IPA 二进制文件,而不是 JSON。使用 curl 时加上 -o output.ipa 保存。签名超时为 5 分钟。文件大小上限 500 MB。
请求示例
curl -X POST \ https://flarestore.app/api/sign \ -F "[email protected]" \ -F "[email protected]" \ -F "[email protected]" \ -F "p12_password=pass123" \ -F "app_name=My App" \ -F "duplicate_install=true" \ -o signed.ipa
从 URL 签名:发送 ipa_url 来代替 ipa 文件。服务器会自行下载 IPA,无需上传:大型应用请使用此方式。链接必须是 https://、可公开访问,并且(最多经过 5 次重定向后)直接指向 .ipa 文件本身,而不是下载页面;最大 500 MB。指向私有或内部地址的链接会被拒绝。
ipa_url limits: https:// on port 443 only, no user name or password in the link; every redirect (max 5) is checked again. Private, internal, link-local, CGNAT and cloud-metadata addresses (IPv4 and IPv6) are refused. Max 500 MB (a bigger Content-Length is refused before downloading), finished within 10 minutes. The archive must be a zip that unpacks to at most 8 GB and 200,000 files, without zip-bomb compression or unsafe paths (../, absolute paths, symlinks leaving the app). Up to 2 URL downloads at once and 20 per 10 minutes per client; 429 above that. Errors: 400 (refused link or file), 413 (too large), 429, 504 (timed out).
示例:从 URL 签名
curl -X POST \ https://flarestore.app/api/sign \ -F "ipa_url=https://example.com/MyApp.ipa" \ -F "[email protected]" \ -F "[email protected]" \ -F "p12_password=pass123" \ -o signed.ipa
POST /api/sign/batch
一次请求最多签名 20 个 IPA 文件。所有 IPA 共用同一证书、描述文件和签名选项。返回 JSON,其中包含每个成功签名应用的安装 URL。
请求(multipart/form-data)
ipa* file[] 一个或多个 IPA 文件(最多 20 个,每个最大 500 MB)
p12* file 签名证书(.p12 / .pfx)
provision* file 描述文件(.mobileprovision)
p12_password string 证书密码
icon file 自定义应用图标(.png / .jpg)— 应用于所有 IPA
tweak file 要注入的 Dylib(.dylib / .deb)— 注入所有 IPA
可选签名选项(表单字段)
bundle_id 自定义 Bundle ID
app_name 显示名称
app_version 版本字符串
min_os_version 最低 iOS 版本
duplicate_install "true" 表示多开副本
remove_watch "true" 表示移除手表应用
remove_all_extensions "true" 表示移除扩展
remove_ui_supported_devices "true" 表示移除设备限制
enable_file_browser "true" 表示启用文件共享
enable_itunes_file_sharing "true" 表示启用 iTunes 共享
enable_promotion "true" 表示启用 120Hz
enable_game_mode "true" 表示启用游戏模式
remove_url_schemes "true" 表示移除 URL Scheme
add_url_schemes 逗号分隔的 Scheme
remove_embedded_provision "true" 表示移除内嵌描述文件
is_mac "true" 表示进行 macOS 签名
响应
{ "success": true, "total": 3, "signed": 2, "failed": 1, "results": [ { "filename": "App1.ipa", "success": true, "install_url": "/i/a1b2c3d4", "app_name": "App 1", "bundle_id": "com.example.app1", "version": "1.0" }, { "filename": "App2.ipa", "success": true, "install_url": "/i/e5f6g7h8", "app_name": "App 2", "bundle_id": "com.example.app2", "version": "2.1" }, { "filename": "Bad.ipa", "success": false, "error": "IPA is not a valid zip file" } ] }
每个 IPA 按顺序签名。只要至少有一个 IPA 签名成功,顶层的 success 就为 true。使用每一项的 install_url,通过分发端点访问安装页面、清单和下载。每次请求最多 20 个 IPA。
请求示例
curl -X POST \ https://flarestore.app/api/sign/batch \ -F "[email protected]" \ -F "[email protected]" \ -F "[email protected]" \ -F "[email protected]" \ -F "[email protected]" \ -F "p12_password=pass123" \ -F "duplicate_install=true"
03 基于会话的签名
两步流程:先上传 IPA 获取会话 ID,然后再签名。返回安装 URL,而不是原始二进制文件。会话 1 小时后过期。最多 1000 个并发会话。
POST /upload/ipa
上传 IPA 文件,获取用于签名步骤的会话 ID。
请求(multipart/form-data)
ipa* file IPA 文件(最大 500 MB)
响应
{ "success": true, "session_id": "550e8400-e29b-41d4-a716-446655440000", "filename": "MyApp.ipa", "size": 15728640 }
示例
curl -X POST \ https://flarestore.app/upload/ipa \ -F "[email protected]"
POST /sign
使用会话 ID 签名之前上传的 IPA。返回用于 OTA 分发的安装 URL。你也可以直接发送 ipa 文件或 ipa_url 来代替会话 ID:传入 IPA 链接,返回安装链接。
请求(multipart/form-data)
session_id string 来自 /upload/ipa 的会话 ID。session_id、ipa 或 ipa_url 三者必须提供其一
ipa file 在此请求中发送的 IPA 文件(最大 500 MB)
ipa_url string 指向 .ipa 的 https:// 链接;服务器会自行下载(最大 500 MB,最多 5 次重定向,仅限公网地址)
p12* file 签名证书(.p12 / .pfx)
provision* file 描述文件(.mobileprovision)
p12_password string 证书密码
icon file 自定义应用图标
tweak file 要注入的 Dylib
可选签名选项
bundle_id 自定义 Bundle ID
app_name 显示名称
app_version 版本字符串
min_os_version 最低 iOS 版本
duplicate_install "true" 表示多开副本
remove_watch "true" 表示移除手表应用
remove_all_extensions "true" 表示移除扩展
remove_ui_supported_devices "true" 表示移除设备限制
enable_file_browser "true" 表示启用文件共享
enable_itunes_file_sharing "true" 表示启用 iTunes 共享
enable_promotion "true" 表示启用 120Hz
enable_game_mode "true" 表示启用游戏模式
remove_url_schemes "true" 表示移除 URL Scheme
add_url_schemes 逗号分隔的 Scheme
remove_embedded_provision "true" 表示移除内嵌描述文件
is_mac "true" 表示进行 macOS 签名
响应
{ "success": true, "message": "App signed successfully", "install_url": "/i/a1b2c3d4e5f6" }
示例
curl -X POST \ https://flarestore.app/sign \ -F "session_id=550e8400-e29b-41d4-a716-446655440000" \ -F "[email protected]" \ -F "[email protected]" \ -F "p12_password=pass123" \ -F "app_name=My App" \ -F "duplicate_install=true"
示例:传入 IPA URL,返回安装链接
curl -X POST \ https://flarestore.app/sign \ -F "ipa_url=https://example.com/MyApp.ipa" \ -F "[email protected]" \ -F "[email protected]" \ -F "p12_password=pass123"
服务器会自行下载 IPA,无需上传:大型应用请使用此方式。链接必须是 https://、可公开访问,并且(最多经过 5 次重定向后)直接指向 .ipa 文件本身,而不是下载页面;最大 500 MB。指向私有或内部地址的链接会被拒绝。在设备上打开 https://flarestore.app + 返回的 install_url 即可安装。
04 安装和分发
通过 POST /sign 签名后,install_url 路径可让你访问以下分发端点。{sign_id} 是每个已签名版本的唯一标识符。
GET /i/{sign_id}
带主题样式的 HTML 安装页面,包含 OTA 安装按钮、直接下载和二维码。将此 URL 分享给用户,即可在设备上安装已签名的应用。
路径参数
sign_id* string 签名响应中的唯一 ID
响应
Content-Type: text/html 带主题样式的安装页面,包含: - 应用图标、名称、版本、Bundle ID - “安装”按钮(itms-services:// 协议) - “下载 IPA”按钮 - 供设备扫描的二维码 - 一键复制安装/下载 URL
GET /i/{sign_id}/manifest.plist
itms-services:// 协议使用的 OTA 安装清单。iOS 通过此 plist 得知从哪里下载 IPA 以及要显示哪些元数据。
路径参数
sign_id* string 唯一签名 ID
响应(text/xml)
<?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>items</key> <array><dict> <key>assets</key> <array><dict> <key>kind</key><string>software-package</string> <key>url</key><string>https://flarestore.app/i/{sign_id}/app.ipa</string> </dict></array> <key>metadata</key> <dict> <key>bundle-identifier</key><string>com.example.app</string> <key>bundle-version</key><string>1.0</string> <key>kind</key><string>software</string> <key>title</key><string>My App</string> </dict> </dict></array> </dict> </plist>
GET /i/{sign_id}/app.ipa
直接下载已签名的 IPA 二进制文件。支持 GET 和 HEAD 方法。
路径参数
sign_id* string 唯一签名 ID
响应
Content-Type: application/octet-stream Content-Disposition: attachment; filename="MyApp.ipa" <binary IPA data>
示例
curl -O -J \ https://flarestore.app/i/a1b2c3d4e5f6/app.ipa
GET /i/{sign_id}/icon
获取与已签名版本关联的自定义应用图标。返回 PNG 图片。
路径参数
sign_id* string 唯一签名 ID
响应
Content-Type: image/png <binary PNG data>
05 PLIST 生成器
为托管在任何地方的 IPA 生成 OTA 安装清单。适用于你有自己的 IPA 托管、只需要一个有效 itms-services:// URL 的情况。plist 1 小时后过期。
POST /api/plist
创建指向任意 IPA URL 的独立 OTA 清单 plist。同时返回 plist URL 和可直接使用的 itms-services:// 安装链接。
请求(application/json)
ipa_url* string 托管 IPA 的 HTTPS URL
bundle_id* string Bundle 标识符(例如 "com.example.app")
app_name string 安装时显示的名称
version string 版本字符串(例如 "1.0")
响应
{ "id": "abc123def456", "plist_url": "https://flarestore.app/api/plist/abc123def456", "itms_url": "itms-services://?action=download-manifest&url=https://flarestore.app/api/plist/abc123def456" }
示例
curl -X POST \ https://flarestore.app/api/plist \ -H "Content-Type: application/json" \ -d '{ "ipa_url": "https://example.com/MyApp.ipa", "bundle_id": "com.example.myapp", "app_name": "My App", "version": "1.0" }'
GET /api/plist/{plist_id}
获取之前生成的 plist 清单。返回适用于 itms-services:// OTA 安装的 XML plist。已过期的 plist(超过 1 小时)返回 410 Gone。
路径参数
plist_id* string 创建响应中的 plist ID
响应(text/xml)
OTA 清单 plist(格式与 /i/{sign_id}/manifest.plist 相同) 错误: 404 - 未找到 plist 410 - plist 已过期(TTL 超过 1 小时)
06 错误响应
所有端点都返回格式一致的 JSON 错误响应。
错误格式
{ "success": false, "error": "Human-readable error message" }
HTTP 状态码
200 成功
400 错误请求 — 缺少参数、文件无效、密码错误
404 未找到资源 — sign_id 或 plist_id 无效
410 已失效 — plist 或会话已过期
413 文件过大(最大 500 MB)
500 内部错误 — 签名失败
503 服务器繁忙 — 已达到最大并发会话数
504 超时 — 签名超过 5 分钟限制