---
title: Passport verification V2
slug: api-marketplace/passport-verification-v2
description: Learn how to create an identity object and perform verification tasks using the Snoops API with this comprehensive document. Discover the API endpoints and parameters necessary for creating the object, such as type, email, callbackUrl, and images. Explore
createdAt: 2023-04-19T11:41:58.000Z
---

## Introduction



***

### API Endpoint's

### Identity Object

:::CodeblockTabs
UAT Endpoint

```text
POST https://preproduction.signzy.tech/api/v2/patrons/<patron-id>/identities
```
:::

:::CodeblockTabs
Production Endpoint

```text
POST https://signzy.tech/api/v2/patrons/<patron-id>/identities
```
:::

### Headers

| Key           | Value                                                |
| ------------- | ---------------------------------------------------- |
| Authorization | access token (returned as id field of login request) |
| Content-type  | application/json                                     |

### Request Data

```json
{
    "type": "passport",
    "email": "admin@signzy.com",
    "callbackUrl": "https://your-domain.com/your-callback-system",
    "images": [
  
    ]
}
```

| PARAMETERS  | DESCRIPTION                                                                                                                                                                             | TYPE   | VALUE (COMPULSORY OR OPTIONAL) |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------ |
| type        | **Supported type parameter for creation of Identity objects**<br />- individualPan<br />- businessPan<br />- aadhaar<br />- passport<br />- drivingLicence<br />- cheque<br />- voterid | String | COMPULSORY                     |
| email       | E-mail can't be empty                                                                                                                                                                   | String | COMPULSORY                     |
| callbackUrl | callbackUrl is where the data is posted on each activity performed on this Identity object.                                                                                             | String | COMPULSORY                     |
| images      | blank                                                                                                                                                                                   | List   | COMPULSORY                     |

### Response

```json
{
              "type": "passport",
              "email": "admin@signzy.com",
              "callbackUrl": "https://your-domain.com/your-callback-system",
              "images": [
                
              ],
              "autoRecognition": [],
              "verification": [],
              "forgeryCheck": [],
              "accessToken": "..access-token-for-the-snoop-request..",
              "id": "..itemId-for-the-snoop-request....",
              "patronId": "..your-id-into-signzy-system-(userId-returned-from-the-login-call).."
            }

```

***

### Snoops

:::CodeblockTabs
UAT Endpoint

```text
POST https://preproduction.signzy.tech/api/v2/snoops
```
:::

:::CodeblockTabs
Production Endpoint

```text
POST https://signzy.tech/api/v2/snoops
```
:::

### Headers

| Key           | Value                                                |
| ------------- | ---------------------------------------------------- |
| Authorization | access token (returned as id field of login request) |
| Content-type  | application/json                                     |

### Request Data

```json
{
    "service": "Identity",
    "itemId": "<..itemId-from-the-Identity-Object-request....>",
    "task": "verification",
    "accessToken": "<..access-token-from-the-Identity-Object-request..>",
    "essentials": {
       "fileNumber":"...fileNumber...",
            "dob":"...dob...",
            "name":"...name...",
            "fuzzy" : "true/false"
    }
}
```

| Parameter  | Type   | Required | Description                                                                                                              |
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| task       | string | Yes      | The task to be performed by the API. For the driving license verification, the value should be "verification".           |
| essentials | object | Yes      | The essential details of the driving license that you want to verify. This should include the fileNumber, date of birth. |

### Response

```json
{
    "service": "Identity",
    "itemId": "..item Id..",
    "task": "verification",
    "essentials": {},
    "accessToken": "...accessToken...",
    "id": "...id...",
    "response": {
        "files": [
            "...image url..."
        ],
        "id": 537,
        "instance": {
            "id": "...id...",
            "callbackUrl": "...callback url..."
        },
        "result": {
        "verified": true/false,
        "message": "Verification completed successfully",
        "upstreamName": "..upstreamName.."
      }
    }
}
```

