---
title: KYC ID Basic verification API
slug: api-marketplace/kyc-id-basic-verification-api
description: Learn how the Aadhaar Verification API simplifies customer onboarding and identity verification processes. Validate Aadhaar numbers, access demographic information, and ensure data security and privacy. Integrate this API into your systems across various 
createdAt: 2023-04-19T11:39:21.000Z
---

### Introduction

The KYC ID Basic Verification API serves as a vital tool for instantaneously verifying the validity of KYC ID numbers. It quickly determines whether the provided number is valid on a real-time basis, streamlining the process for businesses and organizations that need to authenticate identities.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/identity/basicVerify
```
:::

:::CodeblockTabs
UAT Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/identity/basicVerify
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                                                               | **Required** |
| ------------- | ------------- | --------------------------------------------------------------------------------------------- | ------------ |
| kycid         | String        | KYC ID number to be verified.                                                                 | Mandatory    |
| consent       | String        | Consent of the ID owner. Y for Yes, N for No. It should be Y for the request to be processed. | Mandatory    |

```json
{
  "kycid": "XXXXXXXX445",
  "consent": "Y"
}
```

***

### Request Headers

| **Name&#x20;** | **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. |

***

### Code Samples

:::CodeblockTabs
Curl

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/id/basicVerify' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Authorization token>' \
--data '{
    "kycid": "<KYC-ID>",
    "consent":"Y/N"
}'
```

Node.js

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "uid": "<Aadhaar Number>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/aadhaar/verify',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

Python

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/aadhaar/basicVerify"

payload = json.dumps({
  "uid": "<Aadhaar number>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Authorization token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

GO

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/aadhaar/basicVerify"
  method := "POST"

  payload := strings.NewReader(`{
    "uid": "<Aadhaar number>"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Authorization token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**   | **Data Type** | **Description**                                                                                                                                                                                                                                                                                                                                                       |
| --------------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| result          | Object        | Contains the response for the input KYC ID.                                                                                                                                                                                                                                                                                                                           |
| result.verified | String        | Possible values are true or false.                                                                                                                                                                                                                                                                                                                                    |
| result.kycid    | String        | Masked KYC ID                                                                                                                                                                                                                                                                                                                                                         |
| message         | String        | Descriptive message about the response.<br />Possible values include:<br />• "Success"<br />• "Invalid kycId"<br />• "kycId must be a string"<br />• "kycId is not allowed to be an empty string"<br />• "Need consent"<br />• "consent can only be Y or N"<br />• "consent is not allowed to be an empty string"<br />• "Invalid input data"<br />• "Data not found" |
| reason          | String        | Indicates the category or cause of the response.<br />"REQUEST\_SUCCESSFUL", "BAD\_REQUEST", "DATA\_NOT\_FOUND".                                                                                                                                                                                                                                                      |
| code            | String        | Response code for tracking. <br />• "S001" — Success<br />• "E001" — Validation or input error etc<br />• "E301" — No data found                                                                                                                                                                                                                                      |

:::CodeblockTabs
200

```json
{
    "result": {
        "verified": true,
        "kycId": "XXXXXXXX3445"
    },
    "message": "Success",
    "reason": "REQUEST_SUCCESSFUL",
    "code": "S001"
}
```

400

```json
// Passing invalid KYC ID number
{
  "result": {},
  "message": "Invalid kycId",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// Passing non-string KYC ID number
{
  "result": {},
  "message": "kycId must be a string",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// KYC ID is an empty string
{
  "result": {},
  "message": "kycId is not allowed to be an empty string",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// Consent is an empty string
{
  "result": {},
  "message": "consent is not allowed to be an empty string",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// Consent is missing
{
  "result": {},
  "message": "Need consent",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// Invalid consent value (not Y or N)
{
  "result": {},
  "message": "consent can only be Y or N",
  "reason": "BAD_REQUEST",
  "code": "E001"
}

// Invalid input data (general validation failure)
{
  "result": {},
  "message": "Invalid input data",
  "reason": "BAD_REQUEST",
  "code": "E001"
}
```

401

```json
// If Authorization token is not passed
{
    "message": "No API key found in request"
}

// If Authorization token is invalid
{
    "message": "Invalid authentication credentials"
}
```

404

```json
// Data not found for provided input
{
  "result": {},
  "message": "Data not found",
  "reason": "DATA_NOT_FOUND",
  "code": "E301"
}
```

409

```json
{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
```
:::

***

**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!
