---
title: Fetch API
slug: v2/ND-N-fetch-api
description: Learn how to use the Indian passport holder API to fetch necessary details. Gain access with an authorization token and follow input guidelines for file number and date of birth. Find sample curl code examples for making requests and receive responses enc
createdAt: 2022-09-19T07:28:09.000Z
---

# Introduction

This API is used to fetch the details of Indian passport holders.

## 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 Fetch API request.

## API Input Guidelines

A valid file number along with and the dob should be provided. DOB should be in the format dd/mm/yyyy

## Sample Curl

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://preproduction.signzy.tech/api/v2/patrons/<Patron Id>/passportV2",
  "name": "Fetch Passport Details",
  "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- fetching Passport information "
      },
      {
        "kind": "required",
        "name": "essentials",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "essentials.fileNumber",
            "type": "string",
            "description": "File number of the Passport"
          },
          {
            "kind": "required",
            "name": "essentials.dob",
            "type": "string",
            "description": "Date of bith of the passport holder"
          }
        ],
        "description": "Essential part of the request"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "v_zcX7CF1v6HhmpCaFv96",
        "code": "{\r\n    \"essentials\": {\r\n        \"fileNumber\": \"\",\r\n        \"dob\": \"\"\r\n    },\r\n    \"id\": \"\",\r\n    \"patronId\": \"\",\r\n    \"task\": \"fetch\",\r\n    \"result\": {\r\n        \"fileNumber\": \"\",\r\n        \"givenName\": \"\",\r\n        \"surname\": \"\",\r\n        \"typeOfApplication\": \"\",\r\n        \"applicationReceivedOnDate\": \"\",\r\n        \"name\": \"\",\r\n        \"dob\": \"\"\r\n    }\r\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "v_zcX7CF1v6HhmpCaFv96"
  },
  "examples": {
    "languages": [
      {
        "id": "u6a9OkgxwhGAtxruDpMVU",
        "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\": \"fetch\",\n    \"essentials\": {\n        \"fileNumber\": \"<file Number of the passport>\",\n        \"dob\": \"<Date of Birth>\"\n    }\n}'",
        "language": "curl",
        "customLabel": "Preproduction"
      },
      {
        "id": "v-p-C6sMNrSrJBfEifB_Z",
        "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\": \"fetch\",\r\n    \"essentials\": {\r\n        \"fileNumber\": \"<file Number of the passport>\",\r\n        \"dob\": \"<Date of Birth>\"\r\n    }\r\n}'",
        "language": "curl",
        "customLabel": "Production"
      }
    ],
    "selectedLanguageId": "u6a9OkgxwhGAtxruDpMVU"
  },
  "description": "Fetching details of passport by passing Filenumber and date of birth as input.",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "fetch-passport-details",
  "legacyHash": "fecWJ_j9vIbMvEw7BIan1"
}
```
:::

### Response Parameter

| ***Parameter Name&#x20;***       | **Description**                                          |
| -------------------------------- | -------------------------------------------------------- |
| essentials                       | Essential part of request                                |
| essentials.fileNumber            | File number of the passport                              |
| essentials.dob                   | Date of birth of the passport holder                     |
| id                               | Unique user ID                                           |
| patronId                         | Unique Patron ID                                         |
| task                             | Task-fetching passport information                       |
| result                           | It contains the response  to the API hit                 |
| result.fileNumber                | File number of the passport                              |
| result.givenName                 | First name of passport holder                            |
| result.surname                   | middle and last name of the Passport holder              |
| result.typeOfApplication         | It describes the Application type                        |
| result.applicationReceivedOnDate | Date on which the application is received for processing |
| result.name                      | Name of the passport holder                              |
| result.dob                       | Date of birth of Passport holder                         |

***

:::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).
:::
