---
title: "Create a UserAccount"
method: POST
path: "/api/useraccounts"
tags: ["UserAccounts"]
---

# Create a UserAccount

`POST /api/useraccounts`

## Request body

- CreateUserAccountInputDto
  - `accountId` string, required
  - `name` string, required
  - `avatarId` string, required
  - `platform` string, required
  - `activateToken` string
  - `user` string

## Response `201`

- CreateUserAccountResponseDto
  - `_id` string, required
  - `user` string
  - `accountId` string, required
  - `name` string, required
  - `avatarId` string, required
  - `platform` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `activateToken` string

## Changes

- **2023-03-31** `af4ea0086c6f` — 11 breaking, 1 info
  - the request property `avatarId` became required
  - the `name` request property's maxLength was decreased to `20`
  - the `name` request property's minLength was increased from `2` to `4`
  - the `user` response's property type changed from `object` to `string` for status `201`
  - …8 more
- **2002-04-24** `85037159b344` — 1 breaking, 1 info
  - the response property `avatarId` became optional for the status `201`
  - the request property `avatarId` became optional

[Change history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/useraccounts/post.md)

---

[API](https://skmtc.dev/givepraise/apis/praise-api.md) · [All operations](https://skmtc.dev/givepraise/apis/praise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/givepraise/praise-api/revisions/c6b4d2f6d263/schema)
