---
title: "Activate a user account in order to be able to give praise and receive rewards. Activation a user account creates a new User object or adds user account to User if it already exists."
method: POST
path: "/api/activate"
tags: ["Activate"]
---

# Activate a user account in order to be able to give praise and receive rewards. Activation a user account creates a new User object or adds user account to User if it already exists.

`POST /api/activate`

## Request body

- ActivateInputDto
  - `identityEthAddress` string, required
  - `accountId` string, required
  - `signature` string, required

## Response `200`

The created (or updated) user.

- User
  - `_id` string, required
  - `identityEthAddress` string, required
  - `rewardsEthAddress` string, required
  - `username` string, required
  - `roles` string[], required
  - `accounts` UserAccount[], required
    - `_id` string, required
    - `user` UserNoUserAccountsDto
      - `_id` string, required
      - `identityEthAddress` string, required
      - `rewardsEthAddress` string, required
      - `username` string, required
      - `roles` string[], required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
    - `accountId` string, required
    - `name` string, required
    - `avatarId` string
    - `platform` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `201`

## Changes

- **2023-08-23** `990e717b779e` — 1 info
  - endpoint added
- **2023-08-23** `abdaebb919d2` — 1 breaking
  - api path removed without deprecation
- **2023-08-17** `bc9e361c5d5d` — 2 breaking
  - the `accounts/items/name` response property's minLength was decreased from `4` to `2` for the response status `200`
  - the `accounts/items/name` response property's minLength was decreased from `4` to `2` for the response status `201`
- **2023-05-12** `78c48cd67184` — 2 breaking
  - the `accounts/items/name` response property's maxLength was increased from `20` to `32` for the response status `200`
  - the `accounts/items/name` response property's maxLength was increased from `20` to `32` for the response status `201`
- **2023-04-27** `e14b4c818c53` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/activate/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/d960746392e5/schema)
