GETPOST
v1.0.0stable

Get Device List

Query the authenticated user device list with pagination and status filters.

GET | POST/api/device/list
Auth:API Key

Request Parameters

All parameters can be passed via Query or Body

ParameterTypeRequiredDescription
token
stringRequired
User API token
Example: your_api_token_here
page
numberOptional
Page number. Default 1
Example: 1
per_page
numberOptional
Items per page. Default 20, maximum 100
Example: 20
zt
stringOptional
Status filter: all, normal, hidden, reviewing, or update
allnormalhiddenreviewingupdate
Example: all
shtype
stringOptional
After-sales type filter. Separate multiple values with commas
Example: 1,2

Response

ParameterTypeRequiredDescription
code
numberRequired
Status code: 1=success, others=failure
Example: 1
msg
stringRequired
Response message
Example: 获取成功
data.devices
arrayRequired
Device list
data.devices[].kid
stringRequired
Device KID
Example: KID001
data.devices[].udid
stringRequired
Device UDID
Example: 00008030-001234567890002E
data.devices[].pname
stringRequired
Device name
Example: iPhone 15 Pro
data.devices[].zt
stringRequired
Device/certificate status
Example: normal
data.devices[].ytime
numberRequired
Membership expiry timestamp. 0 means permanent
Example: 1772267945
data.devices[].enabled
booleanRequired
Whether the device is enabled
Example: true
data.total
numberRequired
Total matched devices
Example: 36
data.page
numberRequired
Current page number
Example: 1
data.per_page
numberRequired
Actual items per page, maximum 100
Example: 20
data.last_page
numberRequired
Last page number
Example: 2
data.count_normal
numberRequired
Normal device count
Example: 30
data.count_hidden
numberRequired
Dropped/banned device count
Example: 4
data.count_reviewing
numberRequired
Reviewing device count
Example: 2
Response Example
{
"code":1,
"msg":"Success",
"time":1769675945,
"data":
{
"devices":
[
{
"kid":"KID001",
"udid":"00008030-001234567890002E",
"pname":"iPhone 15 Pro",
"type":"iphone",
"shtype":1,
"zt":"normal",
"ytime":1772267945,
"model":"iPhone16,1",
"beizhu":"主力设备",
"enabled":true
}
]
,
"total":36,
"page":1,
"per_page":20,
"last_page":2,
"count_normal":30,
"count_hidden":4,
"count_reviewing":2
}
,
"ip":"192.168.1.100",
"ysucc":"Ysucc"
}

Query first page

Get the first 20 devices of the current user

Query first page
{
"token":"your_api_token_here",
"page":1,
"per_page":20
}

Only normal devices

Use zt=normal to return only normal available devices

Only normal devices
{
"token":"your_api_token_here",
"zt":"normal",
"page":1,
"per_page":50
}

Reviewing devices

Use zt=reviewing to return devices still in review/reservation

Reviewing devices
{
"token":"your_api_token_here",
"zt":"reviewing"
}

Maximum 100 items per page

If per_page is greater than 100, the backend automatically caps it at 100

Maximum 100 items per page
{
"token":"your_api_token_here",
"page":1,
"per_page":100
}

Error Codes

Error Codes2 defined
12
Token is required
Missing token parameter
10
Invalid token
Token does not exist or user status is not allowed

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/device/list" \
  -H "X-Lang: en" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "token=your_api_token_here&page=1&per_page=20&zt=all&shtype=1%2C2"

Notes

  • The list only returns devices owned by the current token user
  • The maximum per_page is 100. Larger values are automatically capped at 100
  • zt=hidden includes dropped and update-needed states. zt=reviewing returns devices still in review/reservation

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/device/list?token=your_api_token_here&page=1&per_page=20&zt=all&shtype=1%2C2Locked to this site
stringRequired

User API token

number

Page number. Default 1

number

Items per page. Default 20, maximum 100

string

Status filter: all, normal, hidden, reviewing, or update

string

After-sales type filter. Separate multiple values with commas