# 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="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2F4O0Hu2yOY8RVBfhaOhv9%2FScreenshot%202024-07-03%20at%202.54.35%E2%80%AFPM.jpg?alt=media&#x26;token=91f8741a-3d94-4c52-800b-0f8bfcb37529" alt=""><figcaption></figcaption></figure>
