# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stammer.ai/stammer.ai-docs/white-label/white-label-api/sub-accounts/create-sub-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
