Add User
POST
/api/user
Add a new user
- username must have 3 to 32 characters and is allowed to contain a-z, 0-9, and underscores in between
- expire must be an UTC timestamp
- data_limit must be in Bytes, e.g. 1073741824B = 1GB
- proxies dictionary of protocol:settings
- inbounds dictionary of protocol:inbound_tags, empty means all inbounds
Authorizations
Request Body required
object
proxies
object
key
additional properties
object
expire
integer
data_limit
Data_limit can be 0 or greater
integer
data_limit_reset_strategy
string
inbounds
object
key
additional properties
Array<string>
note
string
sub_updated_at
string format: date-time
sub_last_user_agent
string
online_at
string format: date-time
on_hold_expire_duration
integer
on_hold_timeout
string format: date-time
username
required
string
status
An enumeration.
string
Responses
200
Successful Response
object
proxies
required
object
expire
integer
data_limit
Data_limit can be 0 or greater
integer
data_limit_reset_strategy
string
inbounds
object
key
additional properties
Array<string>
note
string
sub_updated_at
string format: date-time
sub_last_user_agent
string
online_at
string format: date-time
on_hold_expire_duration
integer
on_hold_timeout
string format: date-time
username
required
string
status
required
An enumeration.
string
used_traffic
required
integer
lifetime_used_traffic
integer
created_at
required
string format: date-time
links
Array<string>
subscription_url
string
excluded_inbounds
object
key
additional properties
Array<string>
409
User already exists
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string