> For the complete documentation index, see [llms.txt](https://docs.stammer.ai/stammer.ai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stammer.ai/stammer.ai-docs/white-label/white-label-api/sub-accounts/create-sub-account.md).

# Create Sub-Account

{% embed url="<https://youtu.be/hrYdGeIuiOA?si=rkkqSZxPHU_ZNvrC>" %}

Create a Sub-Account, either paid or unpaid, via API

You can interact with this API by sending a `POST` request. This allows you to create a Sub-Account in your Agency Account. Make sure you have sufficient sub-accounts available in your plan.

***

**API Endpoint**

The following endpoint/URL should be used in order to access this API:

```
https://app.stammer.ai/en/api/v1/subaccounts/
```

***

**Request Headers**

The API must have the following request headers:

```
Content-Type: application/json
Authorization: Token <Your-API-Token>
```

***

**Request Body**

The API requires the following parameters in the request body:

* **`first_name`** (Type: String, Optional)

  First name of the SubAccount
* **`last_name`** (Type: String, Optional)

  Last name of the SubAccount
*
* **`email`** (Type: Email, Required)

  Email address of the SubAccount
*
* **`password`** (Type: String, Optional)

  Password of the SubAccount. If not provided, it will be autogenerated.
*
* **`package_tier`** (Type: String, Optional)

  Package Tier (Basic, Pro, Premium) of the SubAccount, if applicable.
*
* **`subscription_id`** (Type: String, Optional)

  Subscription ID of the SubAccount, required only if a package plan is selected.

<figure><img src="/files/Yj3ldfNMxJnvCOz7AEmx" alt=""><figcaption></figcaption></figure>
