---
title: Verification API
slug: v2-apis/verification-api
description: Learn how to verify the passport of an Indian citizen with this helpful API document. Input the file number, name, and date of birth to receive a detailed response including verified status, message, and upstream name. Plus, find a sample code for making 
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API helps to verify Passport of any indian citizen by giving the File Number, name and Date of Birth, as input.

## How to call the API

You will need to [login](https://docs.signzy.com/sandboxapis) before sending the request. You are required to pass the access token received from the login call, as authorization header in the Verification API request.

## API Input Guidelines

- For verification of Passport details, card fileNumber, dob and name on card are mandatory.

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<patron ID>/passportV2",
  "name": "Passport Verification",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "Contains the id parameter returned from the login step"
      },
      {
        "kind": "required",
        "name": "content-type",
        "type": "string",
        "children": [],
        "description": "Application/JSON"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "task",
        "type": "string",
        "description": "Task- verification"
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "essentials.fileNumber",
            "type": "string",
            "description": "File Number corresponding to the Passport"
          },
          {
            "kind": "required",
            "name": "essentials.dob",
            "type": "string",
            "description": "Date of birth of passport holder"
          },
          {
            "kind": "required",
            "name": "essentials.name",
            "type": "string",
            "description": "Name of passport holder"
          },
          {
            "kind": "required",
            "name": "essentials.fuzzy",
            "type": "string",
            "description": "strings that match a pattern approximately.\nidentifies similar, but not identical elements in data table sets\n"
          }
        ],
        "description": "Essential part of request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "gDDew30G0-pZwIgXKWX4e",
        "code": "{\n    \"essentials\": {\n        \"fileNumber\": \"\",\n        \"dob\": \"\",\n        \"name\": \"\",\n        \"fuzzy\": \"true\"\n    },\n    \"id\": \"\",\n    \"patronId\": \"\",\n    \"task\": \"\",\n    \"result\": {\n        \"verified\": \"true\",\n        \"message\": \"Verification completed with positive results\",\n        \"upstreamName\": \"\"\n    }\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "gDDew30G0-pZwIgXKWX4e"
  },
  "examples": {
    "languages": [
      {
        "id": "58rspsRezcj6Yfqyntx_T",
        "code": "curl --location --request POST 'https://preproduction.signzy.tech/api/v2/patrons/<patron ID>/passportV2' \\\n\n--header 'Authorization: <token>' \\\n--header 'content-type: application/json' \\\n--data-raw '{\n    \"task\": \"verification\",\n    \"essentials\": {\n        \"fileNumber\": \"<file number of the passport>\",\n        \"dob\": \"<date of birth>\",\n        \"name\": \"<name>\",\n        \"fuzzy\": \"true/false\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "XHqR-NF5DQyalIn9DhPiU",
        "code": "curl --location --request POST 'https://signzy.tech/api/v2/patrons/<patron ID>/passportV2' \\\r\n\r\n--header 'Authorization: <token>' \\\r\n--header 'content-type: application/json' \\\r\n--data-raw '{\r\n    \"task\": \"verification\",\r\n    \"essentials\": {\r\n        \"fileNumber\": \"<file number of the passport>\",\r\n        \"dob\": \"<date of birth>\",\r\n        \"name\": \"<name>\",\r\n        \"fuzzy\": \"true/false\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "XHqR-NF5DQyalIn9DhPiU"
  },
  "description": "Verifying Passport Data",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::

### Response Parameter

| **Parameter Name&#x20;** | **Description**                                                                                                                |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| essentials               | Essential part of the request                                                                                                  |
| essentials.fileNumber    | File Number associated with the passport                                                                                       |
| essentials.dob           | Date of birth of passport holder.                                                                                              |
| essentials.name          | Name of passport holder.                                                                                                       |
| essentials.fuzzy         | strings that match a pattern approximately.&#xD;<br />identifies similar, but not identical elements in data<br /> table sets. |
| id                       | Unique User ID                                                                                                                 |
| patronId                 | Unique Patron ID                                                                                                               |
| task                     | Task to be performed- verification                                                                                             |
| result                   | Response obtained corresponding to API hit                                                                                     |
| result.verified          | Status of verification (i.e. true/false)                                                                                       |
| result.message           | Message corresponding to status of verification                                                                                |
| result.upstreamName      | Name as recorded in the passport database.                                                                                     |

***

:::hint{type="info"}
### Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.


You can reach out to us at [help@signzy.com](mailto\:help@signzy.com).
:::

