Skip to main content

Create Agent Subaccount

Create Agent Subaccount

Frequency limit: 1 times/1s (UID)

Description

Create a dedicated sub-account for an AI Agent instance. Agent sub-accounts are not editable after creation (name, permissions, and other configurations cannot be modified). Each main account shares the total sub-account quota with regular sub-accounts.

HTTP Request

  • POST /api/v2/user/create-agent-subaccount
Request
curl -X POST "https://api.bitget.com/api/v2/user/create-agent-subaccount" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{"username": "xxxx", "passphrase": "xxxx", "note": "xxxx"}'

Request Parameters

ParameterTypeRequiredDescription
usernameStringYesUsername used to generate the virtual email address. Only lowercase letters are allowed; maximum 20 characters
passphraseStringYesAPI key passphrase. Must be 8–32 characters, consisting of letters and numbers
noteStringNoSub-account note
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"username": "xxxx@virtual-bitget.com",
"subUid": "xxxx",
"apiKey": "***********************************",
"secret": "*********************************************",
"note": "xxxx",
"createdTime": "1740211445041"
}
}

Response Parameter

ParameterTypeDescription
usernameStringAgent sub-account username
subUidStringAgent sub-account ID
apiKeyStringAgent sub-account API key
secretStringAgent sub-account secret
noteStringNote
createdTimeStringCreation time, Unix millisecond timestamp

How was your Reading Experience with us?