> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Lookup Kenya Passport

> Verify a Kenyan passport and fetch holder details from the immigration database using the passport number.

### Request

```http [GET] theme={null}
{{baseURL}}/api/v1/ke/kyc/passport
```

### Header

| Header        | Type   | Description                                                                                         |
| ------------- | ------ | --------------------------------------------------------------------------------------------------- |
| AppId         | string | Create an app to get your app ID on dashboard [here](https://app.dojah.io/developers/configuration) |
| Authorization | string | Private/secret key. Use `<key>` not `Bearer <key>`                                                  |

#### Query parameter

| Parameter    | Type   | Description         | Required |
| ------------ | ------ | ------------------- | -------- |
| id\_number\* | string | The Passport Number | required |

### Sample response

```json Response theme={null}
{
  "entity": {
    "address": "BOX 12345-67890 NAIROBI KAREN KAREN LOCATION",
    "citizenship": "",
    "date_of_birth": "2000-09-20",
    "date_of_birth_from_passport": "",
    "date_of_issue": "2019-02-14",
    "expiration_date": "2022-02-13",
    "first_name": "John",
    "gender": "M",
    "last_name": "Musa",
    "middle_name": "Doe",
    "occupation": "",
    "passport_number": "A00000000",
    "phone_number": "Not Available",
    "phone_number2": "Not Available",
    "photo": "/9j/4AAQSkZJRgABAQABLAEsAAD/2wBDAAYEBQYFBAYGB...",
    "photo_from_passport": "/9j/4AAQSkZJRgABAQABLAEsAAD/2w...",
    "place_of_birth": "NAIROBI"
  }
}
```

### Response Fields

| Field                                  | Type   | Description                                            |
| -------------------------------------- | ------ | ------------------------------------------------------ |
| entity                                 | object | Contains the verification response data                |
| entity.address                         | string | Residential address of the passport holder             |
| entity.citizenship                     | string | Citizenship of the individual                          |
| entity.date\_of\_birth                 | string | Date of birth from the national registry (yyyy-MM-dd)  |
| entity.date\_of\_birth\_from\_passport | string | Date of birth as recorded on the passport (yyyy-MM-dd) |
| entity.date\_of\_issue                 | string | Date the passport was issued (yyyy-MM-dd)              |
| entity.expiration\_date                | string | Expiry date of the passport (yyyy-MM-dd)               |
| entity.first\_name                     | string | First name of the passport holder                      |
| entity.gender                          | string | Gender of the individual                               |
| entity.last\_name                      | string | Last name of the passport holder                       |
| entity.middle\_name                    | string | Middle name of the passport holder                     |
| entity.occupation                      | string | Occupation of the individual                           |
| entity.passport\_number                | string | Passport number                                        |
| entity.phone\_number                   | string | Primary phone number of the individual                 |
| entity.phone\_number2                  | string | Secondary phone number of the individual               |
| entity.photo                           | string | Base64-encoded photo from the national registry        |
| entity.photo\_from\_passport           | string | Base64-encoded photo from the passport                 |
| entity.place\_of\_birth                | string | Place of birth of the individual                       |

### Test Credentials for Sandbox

Kindly use this Test Passport Number in sandbox Environment

Passport Number = `A00123456`
