---
title: "Send OTP"
method: POST
path: "/staff/sendOtp"
---

# Send OTP

`POST /staff/sendOtp`

Lets admin users to create a staff account for the organization.

## Query parameters

- `otp` 'VALIDATE_EMAIL' | 'LOGIN' | 'VALIDATE_MOBILE', required

## Headers

- `X-CAP-API-AUTH-KEY` string, required
- `X-CAP-API-AUTH-ORG-ID` string, required

## Request body

- object
  - `id` integer, required — Unique id of the staff.
  - `username` string, required — Registered username of the staff.
  - `mobile` string — Registered mobile number of the staff to send OTP. You can use this to validate mobile number and also to authenticate login.
  - `email` string — Registered email id of the staff to send OTP. You can use this to validate email id and also to authenticate login.

## Response `200`

200

- object
  - `entity` integer
  - `warnings` unknown[]
    - unknown
  - `errors` unknown[]
    - unknown
  - `success` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
