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
Limite:60/minute

Richiesta parametri

Tutti i parametri possono essere passati tramite Query o Body

ParametroTipoObbligoDescrizione
token
stringObbligo
User API token
Esempio: your_api_token_here
udid
stringObbligo
Device UDID (must be 25 or 40 characters)
Esempio: 00008030-001234567890ABCD
mode
stringFacoltativo
Add mode: instant or review. Default is instant
instantreview
Esempio: instant
add_mode
stringFacoltativo
Alias of mode. Takes priority over mode
instantreview
Esempio: review
force
booleanFacoltativo
Force add flag. true/1/yes/y/on skips force-period and existing-device short-circuit checks
Esempio: true
warranty
stringFacoltativo
Warranty type: 0/1/2/3/4/6. review mode does not support 4/6
012346
Esempio: 1
shtype
stringFacoltativo
Legacy alias of warranty, used only when warranty is empty
012346
Esempio: 1
type
stringFacoltativo
Pool type: 0=public, 1=private. Defaults follow legacy API logic
01
Esempio: 0
deviceType
stringFacoltativo
Device type: iphone or ipad. Default iphone
iphoneipad
Esempio: iphone
beizhu
stringFacoltativo
Remark
Esempio: 测试设备
code
stringFacoltativo
Activation code (optional)
Esempio: ABC123XYZ

Risposta

ParametroTipoObbligoDescrizione
code
numberObbligo
Status code: 1=success, 0=failure
Esempio: 1
msg
stringObbligo
Response message
Esempio: 添加成功
data.id
stringObbligo
Certificate ID / reservation ID
Esempio: AB12CD34
data.mobileprovision
stringObbligo
Base64 mobileprovision. May be empty while review is pending
Esempio: Base64EncodedString...
data.p12
stringObbligo
Base64 P12 certificate
Esempio: Base64EncodedString...
Esempio di risposta
{
"code":1,
"msg":"Device added successfully",
"time":1769675945,
"data":
{
"id":"AB12CD34",
"pool":0,
"addtime":1706500000,
"mobileprovision":"MIIPhgYJKoZIhvcNAQcCoII...(Base64)",
"p12":"MIINDgIBAzCCDMsGCSqGSIb3DQEHAa...(Base64)"
}
,
"ysucc":"Ysucc"
}

Codici di errore

Codici di errore3 definito
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

Lingua 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.

Intestazione consigliata
X-Lang: it
Lingue supportate
zh, en, zh-TW, vi, ar, es, ru

Accetta-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 sito
stringObbligo

User API token

stringObbligo

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)