# Create Account

Creates a new account under a specific account group. Each account represents a distinct merchant environment or business unit within the group.

**POST** `/organizations/account-groups/{account_group_id}/accounts`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Creates a new account under an account_group_id.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Path parameters

- `account_group_id` (string, required)
  The unique identifier of the account group.

## Body

Content type: `application/json`

- `name` (string, required)
  Account name (min=1, max=255).

Example:

```json
{
  "name": "string"
}
```

## Responses

### 201

Created

- `id` (string<uuid>)
- `name` (string)
- `account_group_id` (string<uuid>)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)

Example:

```json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "account_group_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}
```