Pgyer Docs
API 2.0

API 2.0

Pgyer Open API 2.0 overview: what the API covers, authentication, common parameters, and error codes.

Overview

Pgyer's API lets you plug app upload, hosting, and install into your own systems, and pull app data back for reporting — useful for distributing and managing beta apps.

This page covers the current API 2.0. The legacy API 1.0 is no longer maintained.

API Groups

By capability, API 2.0 breaks down into the groups below. See each page for endpoint details.

GroupWhat It Covers
Upload & ReleaseFast upload, HarmonyOS cert and Hsp upload, legacy upload
InstallGeneric install endpoint, iOS in-app install
App InfoFetch and update app details, list your uploads, lookup by short URL
Version ManagementList versions, set / clear "latest", check for updates
App GroupsList and view user-defined app groups
FeedbackFeedback list and detail
CertificatesCertificate list
DeletionDelete apps, delete versions

Authentication

Most APIs require authentication. Grab your API Key from the API info page in the Pgyer dashboard, then pass it via POST on endpoints that require auth:

ParameterDescription
_api_keyIdentifies the caller. Required on every endpoint unless noted otherwise. Fixed per Pgyer account.

Call Conventions

Send requests as Content-Type: application/x-www-form-urlencoded. Unless noted otherwise, the request method is POST and responses are JSON.

Common parameter concepts:

ParameterDescription
appKeyUnique identifier for an app. Three versions of the same app share one appKey. Find it on the app management page, or in some API responses.
buildKeyUnique identifier for a specific app version. Three versions have three different buildKeys. Returned by several APIs.

Error Codes

CodeDescription
1001_api_key is required
1002_api_key is invalid
1003Error syncing user info to Tracup
1007Search term too short
1008buildKey and appKey cannot both be empty
1009App info not found
1010appKey is required
1011buildId is required
1012userKey is required
1013User not found
1014App type is required
1015Wrong file or app type
1016Invalid package name
1017Short URL already in use or invalid
1018App count exceeds the plan's limit
1019Missing identity photos; upload the front, back, and handheld ID photos
1020User is banned from uploading
1021Invalid file
1022File too large
1023buildKey is required
1024Distribution range exceeds the limit
1025File upload failed
1026Invalid file; wrong file type
1027App name length out of range
1028App identifier not found
1029Short URL already in use or invalid
1030Enterprise-signing count exceeds the plan's maximum
1031Short URL is required
1032Short URL is invalid
1033You can only modify your own apps
1035Too many fields modified
1036Change content is empty
1037Images must be uploaded as an array
1038Image data is empty
1039At most 5 app screenshots
1040Screenshot upload failed
1041Screenshot key is required
1042Feedback content is empty
1043Feedback content too long (max 200 chars)
1044Error adding feedback
1045Invalid userKey
1047This app is paid; install from a phone
1048App has expired
1049App download quota exhausted
1050Wrong password
1051App violates policy
1052App is restricted to verified users
1053Download speed limit reached
1054Daily download quota exhausted
1055Invalid api key
1056Open this link on iOS
1057Wrong params syncing expert-test enterprise-signed app
1058Error parsing the app
1059Deprecated method
1060Email is required
1061Password is required
1062Wrong username or password
1063Email already exists
1064Username is required
1065Username must be 15 chars or fewer
1066Name is required
1067Company is required
1068Occupation is required
1069Phone number already exists
1070Verification code is required
1071Invalid verification code
1072Email not found
1073Enter valid account info
1075appGroupKey is required
1076appKey is invalid
1079Voice upload failed
1080Feedback failed
1081Invalid request
1082feedbackKey is required
1083Feedback not found
1084Log content is required
1085Wrong system type
1089Platform parameter is required
1090Platform must be windows or mac
1091Wrong version parameter
1092Version info not found
1093Info not found
1094appGroupKey is invalid
1095App name too long
1096Wrong method
1097Signature error
1098Hourly API rate limit reached
1099Update app failed
1100App group info not found
1102Email verification code is required
1103Verification code is incorrect
1104Invalid email address
1105Account already exists
1106Real name must be 15 chars or fewer
1107Password is required
1108Enter a valid phone number
1109Enter the 6-digit verification code
1110Registration failed
1111Account is required
1112This phone is linked to multiple accounts; sign in with a password
1113Email is required
1115User does not exist
1116Wrong phone or password
1117Wrong email or password
1118Phone number is required
1120SMS must be at least 30 seconds apart
1121Verification failed
1122Insufficient permissions
1123Wrong stats type
1124Authorization failed
1125Bound to existing account
1126Email not changed
1127Email already exists
1128Insufficient permissions — you can only delete apps you uploaded
1129Account is already linked to a WeChat ID; enter a different account
1130Enter a new password
1131Confirm the password
1132Passwords do not match
1133JSCode is required
1134JSCode is invalid
1135Credential file not found
1136Failed to delete credential file
1137Error uploading credential file
1138File count exceeds the limit
1139At most two files per type
1140Failed to add credential file
1141Transaction type is required
1142This version cannot be hidden
1143encryptedData and iv are required
1144Install start and end times are required
1145End time must be after start time
1148Upload the front side of your ID card
1149Upload the back side of your ID card
1150Upload a handheld ID card photo
1151Company name is required
1152Business license number is required
1153Upload the business license photo
1154Province is required
1155City is required
1156Daily auto-review quota exhausted
1157Auto review did not pass
1158Image must not exceed 10 MB
1159Image must not be smaller than 15 KB
1160Wrong image type
1161fileType is required
1162Name is required
1163Description is required
1164appKeys is required
1165Description is too long
1166Group name does not match the rules
1167A group needs at least two apps
1168URL suffix is required
1169New number must differ from the old one
1170Invalid phone number
1171Real name is required
1172ID number is required
1173Real name does not match
1174ID number does not match
1175Release time is required
1176Enter a valid release time
1177Failed to fetch app info
1178App type is required
1179Cannot merge a blank app
1180App is already merged
1181Merge an iOS app
1182Merge an Android app
1183Must be your own app
1184Cannot merge an app with itself
1185Icon already exists; don't upload another
1186App has not been released
1187Upgrade your version
1188An error occurred
1189File cannot be changed at the moment
1190Upload the Online Cultural Operating License
1191Upload the ICP license
1192Upload the software copyright registration
1193Upload the business license
1194Upload the financial license
1195Upload the other required certificate
1196Upload the required credential file
1197Upload the license for online AV program transmission
1198Re-upload the rejected file
1199Mismatched file count
1200Appeal reason must be between 20 and 500 chars
1201At most 5 appeal images
1202Cannot delete every downloadable version; delete the app from Settings if that's the goal
1203Cannot delete every displayed version
1212Channel short URL is invalid — check the short URL

On this page