匯出
基礎網址
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 自訂 App 圖示(.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" 移除手錶 App
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
從網址簽署:傳送 ipa_url 取代 ipa 檔案。伺服器會自行下載 IPA,因此不必上傳任何檔案:大型 App 請用這個方式。連結必須是 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).
範例:從網址簽署
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,內含每個簽署成功的 App 的安裝網址。
請求(multipart/form-data)
ipa* file[] 一個或多個 IPA 檔案(最多 20 個,每個最大 500 MB)
p12* file 簽署憑證(.p12 / .pfx)
provision* file 描述檔(.mobileprovision)
p12_password string 憑證密碼
icon file 自訂 App 圖示(.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" 移除手錶 App
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,即可透過 Distribution 端點存取安裝頁面、manifest 和下載。每個請求最多 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,再進行簽署。傳回安裝網址,而不是原始二進位檔。工作階段 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 發佈的安裝網址。你也可以直接傳送 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 自訂 App 圖示
tweak file 要注入的 Dylib
選用簽署選項
bundle_id 自訂 Bundle ID
app_name 顯示名稱
app_version 版本字串
min_os_version 最低 iOS 版本
duplicate_install "true" 以副本安裝
remove_watch "true" 移除手錶 App
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 網址,拿回安裝連結
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,因此不必上傳任何檔案:大型 App 請用這個方式。連結必須是 https://、可公開存取,且(最多經過 5 次重新導向後)直接指向 .ipa 檔案本身,而不是下載頁面;最大 500 MB。指向私人或內部位址的連結會被拒絕。在裝置上開啟 https://flarestore.app 加上傳回的 install_url 即可安裝。
04 安裝與發佈
透過 POST /sign 簽署後,install_url 路徑可讓你存取以下發佈端點。{sign_id} 是每個已簽署版本的唯一識別碼。
GET /i/{sign_id}
套用主題的 HTML 安裝頁面,含 OTA 安裝按鈕、直接下載和 QR 碼。將此網址分享給使用者,即可在裝置上安裝已簽署的 App。
路徑參數
sign_id* string 簽署回應中的唯一 ID
回應
Content-Type: text/html 套用主題的安裝頁面,包含:- App 圖示、名稱、版本、Bundle ID - 「Install」按鈕(itms-services:// 協定)- 「Download IPA」按鈕 - 供裝置掃描的 QR 碼 - 安裝/下載網址的拷貝到剪貼簿功能
GET /i/{sign_id}/manifest.plist
itms-services:// 協定使用的 OTA 安裝 manifest。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
取得與已簽署版本關聯的自訂 App 圖示。傳回 PNG 圖片。
路徑參數
sign_id* string 唯一簽署 ID
回應
Content-Type: image/png <binary PNG data>
05 PLIST 產生器
為任何地方託管的 IPA 產生 OTA 安裝 manifest。適合自行託管 IPA、只需要一個有效 itms-services:// 網址的情況。Plist 1 小時後過期。
POST /api/plist
建立指向任何 IPA 網址的獨立 OTA manifest plist。同時傳回 plist 網址和可直接使用的 itms-services:// 安裝連結。
請求(application/json)
ipa_url* string 託管 IPA 的 HTTPS 網址
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 manifest。傳回適用於 itms-services:// OTA 安裝的 XML plist。已過期的 plist(超過 1 小時)會傳回 410 Gone。
路徑參數
plist_id* string 建立回應中的 Plist ID
回應(text/xml)
OTA manifest 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 Gone:plist 或工作階段已過期
413 檔案太大(最大 500 MB)
500 內部錯誤:簽署失敗
503 伺服器忙碌:已達同時工作階段上限
504 逾時:簽署超過 5 分鐘限制