---
title: Voter ID Verification
slug: api-marketplace/voter-id-verification
description: The Voter ID Verification API by Signzy Technologies enables verifying the authenticity of Indian citizens' voter ID details. This comprehensive documentation offers step-by-step instructions, sample requests, troubleshooting tips, and JSON responses for 
createdAt: 2023-04-19T11:42:52.000Z
---

## Introduction

The Voter ID Verification API allows you to verify Indian citizens' voter IDs.  With this API, you can verify the authenticity of voter ID details using an EPIC (Electors Photo Identity Card) number. It also tells if the name provided in the request packet matches that in the Voter ID or not. For match cases, verification is true, else false.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```none
POST https://api.signzy.app/api/v3/voterid/verification
```
:::

:::CodeblockTabs
UAT Endpoint

```none
POST https://api-preproduction.signzy.app/api/v3/voterid/verification
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | **Required** |
| ------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| epicNumber    | String        | EPIC Number of the individual to be verified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Mandatory    |
| name          | String        | Name of the individual to be verified.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Mandatory    |
| state         | String        | The state of the individual to be verified. Possible values are:<br />Andaman and Nicobar Islands, Andhra Pradesh, Arunachal Pradesh, Assam, Bihar, Chandigarh, Chattisgarh, Dadra & Nagar Haveli, Daman & Diu, Delhi, Goa, Gujarat, Haryana, Himachal Pradesh, Jammu and Kashmir, Jharkhand, Karnataka, Kerala, Lakshadweep, Madhya Pradesh, Maharashtra, Manipur, Meghalaya, Mizoram, Nagaland, Odisha, Puducherry, Punjab, Rajasthan, Sikkim, Tamil Nadu, Telangana, Tripura, Uttar Pradesh, Uttrakhand, West Bengal | Optional     |

```json
{
    "epicNumber": "<EPIC number>",
    "name": "Ram",
    "state": "Uttar Pradesh"
}
```

***

### Request Headers

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

***

### Code Samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/voterid/verification' \
--header 'Authorization: <Token>' \
--header 'Content-Type: application/json' \
--data '{
    "epicNumber": "<EPIC number>",
    "name": "Ram",
    "state": "Uttar Pradesh"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "epicNumber": "<EPIC number>",
  "name": "Ram",
  "state": "Uttar Pradesh"
});

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

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

```

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "epicNumber": "<EPIC number>",
  "name": "Ram",
  "state": "Uttar Pradesh"
})
headers = {
  'Authorization': '<Token>',
  'Content-Type': 'application/json'
}
conn.request("POST", "/api/v3/voterid/verification", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/voterid/verification"
  method := "POST"

  payload := strings.NewReader(`{
    "epicNumber": "<EPIC number>",
    "name": "Ram",
    "state": "Uttar Pradesh"
}`)

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

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

  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 voter id number.                                                                                                                                                                               |
| result.verification | Boolean       | Possible values are true or false.                                                                                                                                                                                                 |
| result.message      | String        | In case the name in the request matches with name in the Voter ID, then the message would be "Verification completed with positive result" else "Verification completed with negative result".<br />The name-match logic is fuzzy. |

:::CodeblockTabs
200

```json
{
    "result": {
        "verification": true,
        "message": "Verification completed with positive result"
    }
}

// When wrong name is passed in request Body
{
    "result": {
        "verification": false,
        "message": "Verification completed with negative result"
    }
}
```

400

```json
// When epicNumber is passed as empty string
{
    "error": {
        "name": "error",
        "message": "\"epicNumber\" is not allowed to be empty",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}

// When epicNumber is not passed in request body
{
    "error": {
        "name": "error",
        "message": "\"epicNumber\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}

// When name is not passed in request body
{
    "error": {
        "name": "error",
        "message": "\"name\" is required",
        "status": 400,
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
// When API key is not passed in headers
{
    "message": "No API key found in request"
}

// When wrong API key is passed in headers
{
    "message": "Invalid authentication credentials"
}
```

404

```json
{
    "error": {
        "name": "error",
        "message": "Epic number not found",
        "status": 404,
        "reason": "NOT_FOUND",
        "type": "Not Found",
        "statusCode": 404
    }
}
```
:::

***

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





