---
title: Phone KYC - Phone to Identity Details
slug: api-marketplace/phone-kyc-phone-to-identity-details
createdAt: 2024-03-06T17:25:21.751Z
---

## Introduction:

The Identity Details Retrieval API assists clients in obtaining their users' identity details efficiently. By consuming a customer's Phone Number, PAN, and Name, this API provides comprehensive identity information.

### Key Features

- **Identity Details**: The API retrieves various identity details of the user based on inputs such as Phone Number, PAN, and Name.

### Applications

- **Pre-Filling Use Cases**: This API seamlessly integrates into pre-filling use cases, offering streamlined retrieval of identity details for various processes.

### Conclusion

In summary, the Identity Details Retrieval API offers a convenient solution for clients to access their users' identity information using Phone Number, PAN, and Name inputs. Its seamless application across pre-filling use cases enhances efficiency in identity verification processes.

## Sample cURL:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/phonekyc/phone-to-identity-details' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9766693027",
    "firstName": "NEGI",
    "lastName": "RAHUL",
    "pan": "ANVPN0460H"
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/phonekyc/phone-to-identity-details' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "phoneNumber": "9766693027",
    "firstName": "NEGI",
    "lastName": "RAHUL",
    "pan": "ANVPN0460H"
}'
```
:::

## Input Parameters:

| **Parameter** | **Type** | **Description**                | **Mandatory/Optional** |
| ------------- | -------- | ------------------------------ | ---------------------- |
| phoneNumber   | String   | Phone Number of the Individual | Mandatory              |
| firstName     | String   | First Name of the Individual   | Mandatory              |
| lastName      | String   | Last Name of the Individual    | Optional               |
| pan           | String   | PAN Number of the Individual   | Optional               |



## Sample Response:

:::CodeblockTabs
Sample Response

```json
{
    "response": {
        "name": {
            "fullName": "RAHUL NEGI SO ",
            "firstName": "RAHUL ",
            "lastName": "SO "
        },
        "gender": "Male",
        "dob": "1990-07-27",
        "placeOfBirth": {}
    }
}
```
:::

## Output Parameters:

| **Key**                 | **Type** | **Description**                                                    |
| ----------------------- | -------- | ------------------------------------------------------------------ |
| response                | Object   | The main object contains response data.                            |
| response.name           | Object   | Contains the first name, full name and last name of the individual |
| response.name.fullName  | String   | Full Name of the Individual                                        |
| response.name.firstName | String   | First Name of the Individual                                       |
| response.name.lastName  | String   | Last Name of the Individual                                        |
| response.gender         | String   | Gender of the Individual                                           |
| response.dob            | String   | Date Of Birth of the Individual                                    |
| response.placeOfBirth   | Object   | Represents the Place of Birth of the Individual                    |

## Status Codes:

:::CodeblockTabs
200 OK

```json
{
    "response": {
        "name": {
            "fullName": "RAHUL NEGI SO ",
            "firstName": "RAHUL ",
            "lastName": "SO "
        },
        "gender": "Male",
        "dob": "1990-07-27",
        "placeOfBirth": {}
    }
}
```

404

```json
{
    "error": {
        "reason": "ERROR",
        "status": 404,
        "message": "record not found",
        "type": "Not Found",
        "statusCode": 404,
        "name": "error"
    }
}
```

400

```json
{
    "error": {
        "reason": "VALIDATION_ERROR",
        "status": 400,
        "message": "\"phoneNumber\" is not allowed to be empty",
        "type": "Bad Request",
        "statusCode": 400,
        "name": "error"
    }
}
1. "\"phoneNumber\" is not allowed to be empty"
2. "\"firstName\" is not allowed to be empty"
3. "\"pan\" with value \"ADBDE12345\" fails to match the required pattern: /^[a-zA-Z]{5}[0-9]{4}[a-zA-Z]$/"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::

