---
title: "Create a new account"
method: POST
path: "/accounts"
tags: ["Account"]
---

# Create a new account

`POST /accounts`

Create new account

## Request body

- Account
  - `amClientId` string — Client ID in AM
  - `amClientSecret` string — Client Secret in AM
  - `dateCreated` string, date-time — Date when the account was created
  - `email` string — Email associated with the given account
  - `firstName` string — First name of the user of the given account
  - `id` integer — Unique identifier of the given account
  - `imageURL` string — Image URL of the user
  - `isPasswordExpired` boolean — Password regeneration required
  - `isProductRecoAllowed` boolean — Product recommendation allowed
  - `lastName` string — Last name of the user of the given account
  - `password` string — Password
  - `passwordBlocked` boolean — Checks if the user is blocked due to exceeding maximum password attempts
  - `passwordConfirm` string — Password confirmation
  - `preferredLocale` 'fr' | 'en' | 'de' — Used locale of the given account
  - `roles` Role[] — User roles
    - `customers` integer[]
    - `name` 'ROLE_CUSTOMER_ADMIN' | 'ROLE_SITE_ADMIN' | 'ROLE_SITE_PRODUCTION' | 'ROLE_SITE_TECHNICAL' | 'ROLE_SITE_MARKETING' | 'ROLE_SITE_DEMO' | 'ROLE_SITE_ABTESTS_RESTRICTED' | 'ROLE_SITE_AUTO_PROMO_PERSO_ONLY'
    - `privileges` string[]
    - `sites` integer[]
  - `solutions` string[] — Solutions enabled for the user
  - `status` 'CREATED' | 'ACTIVATED' | 'DEACTIVATED'
  - `teamId` integer — ID of the team to which the user belongs

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `423` — Locked
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
