---
title: "Create Subaccount"
method: POST
path: "/subaccounts/createSubaccount"
tags: ["Subaccount API"]
---

# Create Subaccount

`POST /subaccounts/createSubaccount`

Create a new Email API subaccount under your master account.

## Headers

- `api_key` string, required

## Request body

- object
  - `username` string, required — Add a unique username for the subaccount. Use this value in all future subaccount API calls.
  - `email` string, required — Add the subaccount owner email address where the activation link will be sent.
  - `setpassword` integer, required — Set whether you want to define the password now — use 1 to set password here or 0 to let the user set it via email link.
  - `password` string — Add a password for the subaccount when setpassword = 1. Must meet password policy requirements.
  - `credit_type` string — Choose credit mode for this subaccount — unlimited or one_time_credit.

## Response `200`

Subaccount created successfully

## Other responses

- `400` — Invalid request

---

[API](https://skmtc.net/netcorecloud/apis/email-api-v6.md) · [All operations](https://skmtc.net/netcorecloud/apis/email-api-v6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/netcorecloud/email-api-v6/versions/73f83bc2eff8/schema)
