Skip to main content

Create Sub UID

Create a new sub user id. Use master account's api key.

tip

The API key must have one of the below permissions in order to call this endpoint

  • master API key: "Account Transfer", "Subaccount Transfer", "Withdrawal"

HTTP Request

POST /v5/user/create-sub-member

Request Parameters

ParameterRequiredTypeComments
usernametruestringGive a username of the new sub user id.
  • 6-16 characters, must include both numbers and letters.
  • cannot be the same as the exist or deleted one.
passwordfalsestringSet the password for the new sub user id.
  • 8-30 characters, must include numbers, upper and lowercase letters.
memberTypetrueinteger1: normal sub account, 6: custodial sub account
switchfalseinteger
  • 0: turn off quick login (default)
  • 1: turn on quick login.
isUtafalseboolean
  • true: create UTA account
  • false(default): create classic account
notefalsestringSet a remark

Response Parameters

ParameterTypeComments
uidstringSub user Id
usernamestringGive a username of the new sub user id.
  • 6-16 characters, must include both numbers and letters.
  • cannot be the same as the exist or deleted one.
memberTypeinteger1: normal sub account, 6: custodial sub account
statusintegerThe status of the user account
  • 1: normal
  • 2: login banned
  • 4: frozen
remarkstringThe remark

Request Example

POST /v5/user/create-sub-member HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXXX
X-BAPI-API-KEY: XXXXXXX
X-BAPI-TIMESTAMP: 1676429344202
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"username": "xxxxx",
"memberType": 1,
"switch": 1,
"note": "test"
}

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {
"uid": "53888000",
"username": "xxxxx",
"memberType": 1,
"status": 1,
"remark": "test"
},
"retExtInfo": {},
"time": 1676429344734
}