Add Device V2
Unified single-device add API. Switch between instant and reservation mode with one parameter while keeping legacy APIs available.
/api/adddevice/v2Richiesta parametri
Tutti i parametri possono essere passati tramite Query o Body
| Parametro | Tipo | Obbligo | Descrizione |
|---|---|---|---|
token | string | Obbligo | User API token Esempio: your_api_token_here |
udid | string | Obbligo | Device UDID (must be 25 or 40 characters) Esempio: 00008030-001234567890ABCD |
mode | string | Facoltativo | Add mode: instant or review. Default is instant instantreview Esempio: instant |
add_mode | string | Facoltativo | Alias of mode. Takes priority over mode instantreview Esempio: review |
force | boolean | Facoltativo | Force add flag. true/1/yes/y/on skips force-period and existing-device short-circuit checks Esempio: true |
warranty | string | Facoltativo | Warranty type: 0/1/2/3/4/6. review mode does not support 4/6 012346 Esempio: 1 |
shtype | string | Facoltativo | Legacy alias of warranty, used only when warranty is empty 012346 Esempio: 1 |
type | string | Facoltativo | Pool type: 0=public, 1=private. Defaults follow legacy API logic 01 Esempio: 0 |
deviceType | string | Facoltativo | Device type: iphone or ipad. Default iphone iphoneipad Esempio: iphone |
beizhu | string | Facoltativo | Remark Esempio: 测试设备 |
code | string | Facoltativo | Activation code (optional) Esempio: ABC123XYZ |
Risposta
| Parametro | Tipo | Obbligo | Descrizione |
|---|---|---|---|
code | number | Obbligo | Status code: 1=success, 0=failure Esempio: 1 |
msg | string | Obbligo | Response message Esempio: 添加成功 |
data.id | string | Obbligo | Certificate ID / reservation ID Esempio: AB12CD34 |
data.mobileprovision | string | Obbligo | Base64 mobileprovision. May be empty while review is pending Esempio: Base64EncodedString... |
data.p12 | string | Obbligo | Base64 P12 certificate Esempio: Base64EncodedString... |
Codici di errore
000Lingua di risposta
Personalizza il linguaggio di risposta API con l'intestazione X-Lang. Gli esempi di codice qui sotto utilizzano automaticamente la lingua del tuo sito corrente.
X-Lang: itzh, en, zh-TW, vi, ar, es, ruAccetta-Language è anche supportato; X-Lang prende la priorità.
Esempi di codice
curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/adddevice/v2" \
-H "X-Lang: it" \
-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"
}'Note
- 旧接口 /api/adddevice 和 /api/addyydevice 仍保留并保持兼容
- mode=instant 复用秒出添加逻辑;mode=review 复用预约/审核添加逻辑
- 支持 Query、x-www-form-urlencoded 和 JSON body;JSON body 更推荐用于 V2
- force=true 仅跳过本系统强制添加期/已存在短路判断,不保证 Apple 侧一定允许重复注册
- review 模式仍遵循预约接口限制,例如不支持 warranty=4/6
Provalo in Console
Compila i parametri qui sotto e invia una richiesta al test. Le richieste vanno solo all'API di questo sito; l'URL è bloccato e non può essere modificato e il cookie di login corrente è incluso.
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=ABC123XYZBloccato a questo sitoUser API token
Device UDID (must be 25 or 40 characters)
Add mode: instant or review. Default is instant
Alias of mode. Takes priority over mode
Force add flag. true/1/yes/y/on skips force-period and existing-device short-circuit checks
Warranty type: 0/1/2/3/4/6. review mode does not support 4/6
Legacy alias of warranty, used only when warranty is empty
Pool type: 0=public, 1=private. Defaults follow legacy API logic
Device type: iphone or ipad. Default iphone
Remark
Activation code (optional)