> For the complete documentation index, see [llms.txt](https://huajiangs-organization.gitbook.io/xiao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huajiangs-organization.gitbook.io/xiao/api-en/dynamic-api-integration/createsubaccount.md).

# createSubAccount

**Request Method:&#x20;**<mark style="color:orange;">**POST**</mark>

```
//POST request
https://start.unionproxy.xyz/ip/authorize/register
```

```
// Request credential (Contact customer service to obtain)
headers：  "Authorization": "Bearer MdNtlpQCI8E5wxxxxxxxxxxxxxxxxxx"

```

```
// body-raw
{
    "userName":"X12345xxxxxxx",//Please enter a subaccount username of 6-15 letters and numbers生成一个 15 位长、具有唯一性、且格式规范的字符串 ID（建议结合时间搓生成）
    "password":"X1234xxxxxxxxx"//Please enter a subaccount username of 6-15 letters and numbers生成一个 15 位长、具有唯一性、且格式规范的字符串 ID（建议结合时间搓生成）
    
}
```

```
// Return Description
// code: 200 for success, other codes indicate failure
{
    "code": 200,
    "data": {},
    "msg": "ok"
}
```

```
If the returned code value is not 200, please check the prompts below：

Frequent operations, please try again later

Please enter a subaccount username of 6-15 letters and numbers

Please enter a 6-15 character password that starts with a letter and can only contain letters and numbers

The username already exists, please change the username

```
