Skip to main content

Create User Account ApiKey

Type: POST

Description: /v4/user/account/api-key

Parameters

NameTypeMandatoryDefaultDescriptionRanges
userAccountIdstringtrue-Account id-
keyNamestringtrue-ApiKey name-
bindIpsstringfalse-Bind ip list, multiple can be separated by commas-
roleScopesstringtrue-Permissions codeQUERY: query is enabled; TRADE: spot and margin trade is enabled; WITHDRAW: withdraw is enabled; LEVER_LOAN: margin pledged is enabled; FUTURE: future trade is enabled; TRANSFER: transfer is enabled
tagsstringfalse-Tags-

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [{}],
"result": {
"id": 4564,
"userAccountId": "1626456841938669570",
"userAccountLevel": 2,
"userId": 1352123154435,
"keyName": "123aaa",
"bindIps": null,
"accessKey": "99258227-f053-46a2-9b10-66c155eb705c",
"secretKey": "4b1839e11bf7a1c6de5f078bd9f4b6e0850da3cf",
"isLock": 0,
"roleScopes": "QUERY_TRADE",
"tags": null,
"createTime": "2023-02-20 07:39:56.768",
"updateTime": "2023-02-20 07:39:56.768"
}
}