GETPOST
v2.1.0stable

Add Device (Instant)

Register a device UDID and return mobileprovision and P12 immediately

GET | POST/api/adddevice
অনুমোদন:API Key
সীমা:60/minute

অনুরোধ করা পরামিতি

সকল পরামিতি অনুসন্ধান বা মৃতদেহের মাধ্যমে অতিক্রম করা যাবে

পরামিতিধরনআবশ্যকবিবরণ
token
stringআবশ্যক
User API token
উদাহরণ: your_api_token_here
udid
stringআবশ্যক
Device UDID (must be 25 or 40 characters)
উদাহরণ: 00008030-001234567890ABCD
warranty
stringবিকল্প
Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly. Missing or invalid values fall back to standard for pricing
012346
উদাহরণ: 1
shtype
stringবিকল্প
Alias of warranty. Used only when warranty is empty
012346
উদাহরণ: 1
type
stringবিকল্প
Pool type: 0=public, 1=private. Default is 0
01
উদাহরণ: 0
deviceType
stringবিকল্প
Device type: iphone or ipad. Default is iphone
iphoneipad
উদাহরণ: iphone
beizhu
stringবিকল্প
Remark (up to 40 characters; truncated if longer)
উদাহরণ: 测试设备
code
stringবিকল্প
Activation code (optional)
উদাহরণ: ABC123XYZ

প্রতিক্রিয়া

পরামিতিধরনআবশ্যকবিবরণ
code
numberআবশ্যক
Status code: 1=success, 0=failure
উদাহরণ: 1
msg
stringআবশ্যক
Response message
উদাহরণ: 添加成功
time
numberআবশ্যক
Server timestamp (Unix seconds)
উদাহরণ: 1769675945
data
objectআবশ্যক
Response payload
data.id
stringআবশ্যক
Certificate ID (8 characters)
উদাহরণ: AB12CD34
data.pool
numberআবশ্যক
Pool: 0=public, 1=private
উদাহরণ: 0
data.addtime
numberআবশ্যক
Added time (Unix)
উদাহরণ: 1706500000
data.mobileprovision
stringআবশ্যক
Base64-encoded mobileprovision
উদাহরণ: Base64EncodedString...
data.p12
stringআবশ্যক
Base64-encoded P12 certificate
উদাহরণ: Base64EncodedString...
data.state
booleanআবশ্যক
Certificate validity state (returned in some branches)
উদাহরণ: true
data.reused
booleanআবশ্যক
Whether an existing certificate was reused (returned only when code is provided and reuse is possible for the same code and UDID)
উদাহরণ: true
ysucc
stringআবশ্যক
Success flag, returns "Ysucc" on success
উদাহরণ: Ysucc
রেসপন্স উদাহরণ
{
"code":1,
"msg":"Device added successfully",
"time":1769675945,
"data":
{
"id":"AB12CD34",
"pool":0,
"addtime":1706500000,
"mobileprovision":"MIIPhgYJKoZIhvcNAQcCoII...(Base64)",
"p12":"MIINDgIBAzCCDMsGCSqGSIb3DQEHAa...(Base64)"
}
,
"ysucc":"Ysucc"
}

ত্রুটিপূর্ণ কোড

ত্রুটিপূর্ণ কোড5 নির্ধারিত
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)

বহিরাগত ভাষা

X-Lang হেডারের সাথে API প্রতিক্রিয়া গ্রহণ করুন। টি কোড স্বয়ংক্রিয়ভাবে আপনার বর্তমান অবস্থানের জন্য ব্যবহার করা হচ্ছে।

প্রস্তাবিত হেডার
X-Lang: bn
সমর্থিত ভাষা
zh, en, zh-TW, vi, ar, es, ru

সমর্থিত ভাষাও সমর্থিত নয়; X-Lang এর অগ্রাধিকার গ্রহণ করা হয়। ওয়েব-সাইট ফাইলটির সাহায্যে সমর্থিত হয়।

কোড উদাহরণ

curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/adddevice" \
  -H "X-Lang: bn" \
  -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"

নোট

  • 支持 GET 和 POST(示例使用 POST)
  • 参数通过 Query 或 x-www-form-urlencoded 传递,后端不解析 JSON Body
  • shtype 为 warranty 的兼容参数,仅在 warranty 为空时使用
  • UDID 仅校验长度(25 或 40)
  • mobileprovision 与 p12 为 Base64 编码,需自行解码保存
  • warranty=4 时不支持独立池(type=1)

কনসোলের মধ্যে এটি চেষ্টা করুন

বাগ পূরণ করুন এবং এটি পরীক্ষা করুন। এই সাইটের API- এ কেবল অনুরোধ করা হয়; URL- টি লক করা হয়েছে এবং আপনার বর্তমান লগ- ইন কুকি অন্তর্ভুক্ত করা যাবে না।

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=ABC123XYZএই সাইটের লক করা হয়েছে
stringআবশ্যক

User API token

stringআবশ্যক

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)