---
title: "Authenticate user, request OTP, and get user information"
method: POST
path: "/users/activate"
tags: ["User"]
---

# Authenticate user, request OTP, and get user information

`POST /users/activate`

## Request body

- object
  - `user` ActivateUser, required
    - `id` string, uuid, required
    - `password` string, required — This string should not be empty.

## Response `200`

user otp is reset and new otp is sent as an sms

- object
  - `user` User, required
    - `id` string, uuid, required
    - `deleted_at` string, date-time, nullable — Timestamp with millisecond precision.
    - `created_at` string, date-time, required — Timestamp with millisecond precision.
    - `updated_at` string, date-time, required — Timestamp with millisecond precision.
    - `full_name` string, required — This string should not be empty.
    - `phone_number` string, required — This string should not be empty.
    - `password_digest` string, required — Bcrypt password digest
    - `registration_facility_id` string, uuid, required
    - `sync_approval_status` string, nullable
    - `sync_approval_status_reason` string, nullable
    - `capabilities` object
      - `can_teleconsult` 'yes' | 'no'
    - `teleconsultation_phone_number` string — This string should not be empty.

## Other responses

- `401` — incorrect user id or password, authentication failed

---

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