GETPOST
v2.2.0stable

Add Device V2

Unified single-device add API. Switch between instant and reservation mode with one parameter while keeping legacy APIs available.

GET | POST/api/adddevice/v2
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
mode
stringOptional
Add mode: instant or review. Default is instant
instantreview
Example: instant
add_mode
stringOptional
Alias of mode. Takes priority over mode
instantreview
Example: review
force
booleanOptional
Force add flag. true/1/yes/y/on skips force-period and existing-device short-circuit checks
Example: true
warranty
stringOptional
Warranty type: 0/1/2/3/4/6. review mode does not support 4/6
012346
Example: 1
shtype
stringOptional
Legacy alias of warranty, used only when warranty is empty
012346
Example: 1
type
stringOptional
Pool type: 0=public, 1=private. Defaults follow legacy API logic
01
Example: 0
deviceType
stringOptional
Device type: iphone or ipad. Default iphone
iphoneipad
Example: iphone
beizhu
stringOptional
Remark
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: 添加成功
data.id
stringRequired
Certificate ID / reservation ID
Example: AB12CD34
data.mobileprovision
stringRequired
Base64 mobileprovision. May be empty while review is pending
Example: Base64EncodedString...
data.p12
stringRequired
Base64 P12 certificate
Example: Base64EncodedString...
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 Codes3 defined
0
Invalid token
Invalid or expired token
0
Invalid UDID format
UDID length must be 25 or 40
0
Within force-add period
Pass force=true to force a new add attempt

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/v2" \
  -H "X-Lang: en" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "your_api_token_here",
    "udid": "00008030-001234567890ABCD",
    "mode": "instant",
    "add_mode": "review",
    "force": true,
    "warranty": "1",
    "shtype": "1",
    "type": "0",
    "deviceType": "iphone",
    "beizhu": "测试设备",
    "code": "ABC123XYZ"
  }'

Notes

  • Legacy /api/adddevice and /api/addyydevice remain available and compatible
  • mode=instant reuses instant add logic; mode=review reuses reservation/review add logic
  • Query, x-www-form-urlencoded, and JSON body are supported; JSON body is recommended for V2
  • force=true only skips local force-period/existing short-circuit checks. Apple may still reject duplicates
  • review mode still follows reservation API restrictions, e.g. warranty=4/6 is unsupported

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/v2?token=your_api_token_here&udid=00008030-001234567890ABCD&mode=instant&add_mode=review&force=true&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

Add mode: instant or review. Default is instant

string

Alias of mode. Takes priority over mode

boolean

Force add flag. true/1/yes/y/on skips force-period and existing-device short-circuit checks

string

Warranty type: 0/1/2/3/4/6. review mode does not support 4/6

string

Legacy alias of warranty, used only when warranty is empty

string

Pool type: 0=public, 1=private. Defaults follow legacy API logic

string

Device type: iphone or ipad. Default iphone

string

Remark

string

Activation code (optional)