GETPOST
v2.1.0stable

Add Device (Instant)

Register a device UDID and return mobileprovision and P12 immediately

GET | POST/api/adddevice
Auth:API Key
Limit:60/minute

Request Parameters

All parameters can be passed via Query or Body

ParameterTypeRequiredDescription
token
stringRequired
User API token
Example: your_api_token_here
udid
stringRequired
Device UDID (must be 25 or 40 characters)
Example: 00008030-001234567890ABCD
warranty
stringOptional
Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly. Missing or invalid values fall back to standard for pricing
012346
Example: 1
shtype
stringOptional
Alias of warranty. Used only when warranty is empty
012346
Example: 1
type
stringOptional
Pool type: 0=public, 1=private. Default is 0
01
Example: 0
deviceType
stringOptional
Device type: iphone or ipad. Default is iphone
iphoneipad
Example: iphone
beizhu
stringOptional
Remark (up to 40 characters; truncated if longer)
Example: 测试设备
code
stringOptional
Activation code (optional)
Example: ABC123XYZ

Response

ParameterTypeRequiredDescription
code
numberRequired
Status code: 1=success, 0=failure
Example: 1
msg
stringRequired
Response message
Example: 添加成功
time
numberRequired
Server timestamp (Unix seconds)
Example: 1769675945
data
objectRequired
Response payload
data.id
stringRequired
Certificate ID (8 characters)
Example: AB12CD34
data.pool
numberRequired
Pool: 0=public, 1=private
Example: 0
data.addtime
numberRequired
Added time (Unix)
Example: 1706500000
data.mobileprovision
stringRequired
Base64-encoded mobileprovision
Example: Base64EncodedString...
data.p12
stringRequired
Base64-encoded P12 certificate
Example: Base64EncodedString...
data.state
booleanRequired
Certificate validity state (returned in some branches)
Example: true
data.reused
booleanRequired
Whether an existing certificate was reused (returned only when code is provided and reuse is possible for the same code and UDID)
Example: true
ysucc
stringRequired
Success flag, returns "Ysucc" on success
Example: Ysucc
Response Example
{
"code":1,
"msg":"Device added successfully",
"time":1769675945,
"data":
{
"id":"AB12CD34",
"pool":0,
"addtime":1706500000,
"mobileprovision":"MIIPhgYJKoZIhvcNAQcCoII...(Base64)",
"p12":"MIINDgIBAzCCDMsGCSqGSIb3DQEHAa...(Base64)"
}
,
"ysucc":"Ysucc"
}

Error Codes

Error Codes5 defined
0
Invalid token
Invalid or expired token
0
Invalid UDID format
UDID length must be 25 or 40 characters
0
Insufficient balance
Insufficient balance (message may vary by branch)

Response Language

Customize the API response language with the X-Lang header. The code examples below automatically use your current site language.

Recommended Header
X-Lang: en
Supported Languages
zh, en, zh-TW, vi, ar

Accept-Language is also supported; X-Lang takes priority. Unsupported languages fall back to English.

Code Examples

curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/adddevice" \
  -H "X-Lang: en" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "token=your_api_token_here&udid=00008030-001234567890ABCD&warranty=1&shtype=1&type=0&deviceType=iphone&beizhu=%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87&code=ABC123XYZ"

Notes

  • Both GET and POST are supported (POST shown here)
  • Send params via Query or x-www-form-urlencoded. JSON body is not parsed
  • shtype is a legacy alias of warranty, used only when warranty is empty
  • UDID validation is length-only (25 or 40 characters)
  • mobileprovision and p12 are Base64 encoded; decode and save as files
  • warranty=4 is not supported with type=1

Try it in Console

Fill in the parameters below and send a request to test. Requests only go to this site's API; the URL is locked and cannot be changed, and your current login cookie is included.

https://testypro.iwai.cc/api/adddevice?token=your_api_token_here&udid=00008030-001234567890ABCD&warranty=1&shtype=1&type=0&deviceType=iphone&beizhu=%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87&code=ABC123XYZLocked to this site
stringRequired

User API token

stringRequired

Device UDID (must be 25 or 40 characters)

string

Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly. Missing or invalid values fall back to standard for pricing

string

Alias of warranty. Used only when warranty is empty

string

Pool type: 0=public, 1=private. Default is 0

string

Device type: iphone or ipad. Default is iphone

string

Remark (up to 40 characters; truncated if longer)

string

Activation code (optional)