Skip to main content

Accounts Status API

This page documents the API endpoint for querying the status of all accounts managed in TikMatrix, including device online/offline status, login state, and tags.

List Accounts

Retrieve all accounts with enriched status information.

  • Endpoint: GET /api/v1/accounts

Query Parameters

ParameterTypeDefaultDescription
platformstringFilter by platform: tiktok or instagram
devicestringFilter by device serial number
loginedintegerFilter by login status: 0 = not logged in, 1 = logged in
statusintegerFilter by account status: 0 = enabled, 1 = disabled
tagstringFilter by tag (exact match)
pageinteger1Page number (1-based)
page_sizeinteger20Items per page (max 100)

Response Fields

FieldTypeDescription
accountsarrayList of account objects (see below)
totalintegerTotal number of accounts matching filters
pageintegerCurrent page number
page_sizeintegerItems per page

Account Object

FieldTypeDescription
idintegerAccount database ID
usernamestring | nullSocial media username
emailstring | nullAccount email address
platformstringPlatform: tiktok or instagram
packagenamestring | nullClone app package name (null = default app)
devicestring | nullADB device serial number
device_onlinebooleanWhether the device is currently connected
device_namestringDevice model name (empty string when offline)
loginedinteger0 = not logged in, 1 = logged in
logined_textstring"logged_in" or "not_logged_in"
statusinteger0 = enabled, 1 = disabled
status_textstring"enabled" or "disabled"
tagsstring[]Tags assigned to this account
Security

The account password is never included in API responses.

Example

curl "http://localhost:50809/api/v1/accounts?page=1&page_size=20"

Filter by platform and login status:

curl "http://localhost:50809/api/v1/accounts?platform=tiktok&logined=1&page=1&page_size=50"

Filter by device serial:

curl "http://localhost:50809/api/v1/accounts?device=emulator-5554"

Sample Response

{
"code": 0,
"message": "success",
"data": {
"accounts": [
{
"id": 1,
"username": "my_tiktok_user",
"email": "user@example.com",
"platform": "tiktok",
"packagename": null,
"device": "emulator-5554",
"device_online": true,
"device_name": "sdk_gphone64_x86_64",
"logined": 1,
"logined_text": "logged_in",
"status": 0,
"status_text": "enabled",
"tags": ["batch-a", "vip"]
},
{
"id": 2,
"username": "another_user",
"email": null,
"platform": "tiktok",
"packagename": "com.zhiliaoapp.musically.clone1",
"device": "192.168.1.101:5555",
"device_online": false,
"device_name": "",
"logined": 0,
"logined_text": "not_logged_in",
"status": 1,
"status_text": "disabled",
"tags": []
}
],
"total": 2,
"page": 1,
"page_size": 20
}
}

Error Responses

HTTP StatusCodeDescription
40340301Forbidden — API access requires Pro+ plan
50050001Internal server error