Skip to main content
POST
/
cabinet
/
admin
/
users
/
{user_id}
/
sync
/
from-panel
Sync User From Panel
curl --request POST \
  --url http://localhost:8080/cabinet/admin/users/{user_id}/sync/from-panel \
  --header 'Content-Type: application/json' \
  --data '
{
  "update_subscription": true,
  "update_traffic": true,
  "create_if_missing": false
}
'
{
  "success": true,
  "message": "<string>",
  "panel_user": {
    "uuid": "<string>",
    "short_uuid": "<string>",
    "username": "<string>",
    "status": "<string>",
    "expire_at": "2023-11-07T05:31:56Z",
    "traffic_limit_gb": 0,
    "traffic_used_gb": 0,
    "device_limit": 1,
    "subscription_url": "<string>",
    "active_squads": []
  },
  "changes": {},
  "errors": []
}

Path Parameters

user_id
integer
required

Body

application/json

Request to sync user from panel.

update_subscription
boolean
default:true

Update subscription data

update_traffic
boolean
default:true

Update traffic usage

create_if_missing
boolean
default:false

Create subscription if user exists in panel but not in bot

Response

Successful Response

Response after syncing from panel.

success
boolean
required
message
string
required
panel_user
PanelUserInfo · object

User info from panel.

changes
Changes · object
errors
string[]