---
title: Udyam Certificate Generate OTP
slug: api-marketplace/udyam-certificate-generate-otp
createdAt: 2023-11-02T11:46:52.780Z
---

## Introduction

The Udyam Send OTP API is a secure and reliable solution for generating an OTP (One-Time Password) and sending it to the mobile number or email registered with [UDYAM](https://udyamregistration.gov.in/). This API accepts the UDYAM number, the registered mobile number, and the OTP delivery channel (mobile or email), and dispatches a unique OTP to the chosen destination. The generated OTP can be used in the Submit OTP API to fetch UDYAM details and certificate. The API returns a reference ID in the response for tracking purposes.

## API details

### Endpoint

:::CodeblockTabs
Production Environment

```jsx
POST https://api.signzy.app/api/v3/udyam/send-otp
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/udyam/send-otp
```
:::

***

### Request headers&#x20;

| Name          | Value            | Required  | Description                                                                                                |
| ------------- | ---------------- | --------- | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                                                           | **Required**          |
| ------------- | ------------- | ----------------------------------------------------------------------------------------- | --------------------- |
| mobile        | String        | 10-digit mobile number registered with the Udyam Number.                                  | Mandatory             |
| udyamNo       | String        | Udyam Number.                                                                             | Mandatory<br /><br /> |
| otpVia        | String        | Channel through which the OTP should be delivered. Accepted<br />values: mobile , email . | Mandatory             |

```json
{
"udyamNo": "UDYAM-KR-03-070XXXX",
"mobile": "XXXXX47418",
"otpVia": "mobile"
}
```

## API Curl

:::CodeblockTabs
Production

```json
curl --location 'https://api.signzy.app/api/v3/udyam/send-otp' \
--header 'Content-Type: application/json' \
--header 'Authorization: <your-auth-key>' \
--data '{
    "udyamNo": "",
    "mobile": "",
    "otpVia": ""
}'
```

Pre Production

```json
curl --location 'https://api.signzy.app/api/v3/udyam/send-otp' \
--header 'Content-Type: application/json' \
--header 'Authorization: <your-auth-key>' \
--data '{
    "udyamNo": "",
    "mobile": "",
    "otpVia": ""
}'
```
:::

## Response body parameters

| **Parameter**  | **Data Type** | **Description**                                                             |
| -------------- | ------------- | --------------------------------------------------------------------------- |
| result         | Object        | Contains the result of the task.                                            |
| result.success | Boolean       | Indicates whether the OTP was sent successfully.                            |
| result.refId   | String        | Reference ID to pass in Submit OTP to get details of the Udyam<br />number. |
| result.udyamNo | String        | The Udyam Number for which the OTP was generated.                           |
| result.message | String        | Human-readable message describing the outcome.                              |

:::CodeblockTabs
200

```json
{
 "result": {
     "success": true,
     "refId": "8c093d9a3bc04c8dadf766d6d3ef1936",
     "udyamNo": "UDYAM-KR-03-070XXXX",
     "message": "OTP sent successfully on registered mobile."
 }
}
```

400

```json
// Missing Udyam Number
{
    "error": {
        "name": "error",
        "message": "please enter udyamNumber",
        "status": 400,
        "reason": "BadRequest",
        "type": "Bad Request",
        "statusCode": 400
    }
}

// Missing Mobile Number
{
    "error": {
        "name": "error",
        "message": "please enter mobile",
        "status": 400,
        "reason": "BadRequest",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
//Missing API key
{
    "message": "No API key found in request"
}

// Invalid API key
{
    "message": "Invalid authentication credentials"
}
```
:::

***

:::hint{type="info"}
**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!
:::



