---
# System prepended metadata

title: AP OCR Reading API Documentation

---

# Read the AP OCR API Documentation

Base URL : http://192.168.51.9/

# Server Status

## Description 
Get server status is live or not 
```
- doc-verification/
- Method: GET
```
Response Body:
```javascript=16
{"AmiProbashi": "Document Service IS LIVE"}
```

# Bangladeshi Passport

## Description
This API endpoint allows bangladeshi passport file only. It returns a JSON response indicating passport nuumber, full name, fathers name, mothers name, date of birth etc.

## API Endpoints
### Bangladshi Passport Scan By File Image Code:
```
- URL: /doc-verification/doc-service/api/countries/bn/passport/scan-file/
- Method: POST
```
#### Parameters

* passport_image [File]

##### Request Body:
```javascript=16
    {
	"file": ""
    }
```
##### Response Body:
```javascript=16
{
	"status_code": 200,
	"status": true,
	"data": {
		"name": "MD NAZRUL ISLAM",
		"father_name": "SHAH NOWAZ",
		"mother_name": "AMENA BEGUM",
		"spouse_name": "MST KOHINUR",
		"date_of_birth": "10 JUL 1975",
		"passport_issue_date": "05 SEP 2023",
		"passport_expiry_date": "04 SEP 2033",
		"passport_number": "A11391571"
	}
}
```
## Bangladshi Passport Scan By Base64 Image Code:
```
- URL: /doc-verification/doc-service/api/countries/bn/passport/scan-b64/
- Method: POST
```
#### Parameters

* Base64 passport_image

##### Request Body:
```javascript=16
    {
	"b64_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAAIQAABtbnRyUkdCIFh......"
    }
```
##### Response Body:
```javascript=16
{
	"status_code": 200,
	"status": true,
	"data": {
		"name": "MD NAZRUL ISLAM",
		"father_name": "SHAH NOWAZ",
		"mother_name": "AMENA BEGUM",
		"spouse_name": "MST KOHINUR",
		"date_of_birth": "10 JUL 1975",
		"passport_issue_date": "05 SEP 2023",
		"passport_expiry_date": "04 SEP 2033",
		"passport_number": "A11391571"
	}
}
```
## Dubai

### Dubai Contract Document Scan By File Image Code:
```
- URL:/doc-verification/doc-service/api/countries/uae/contact-paper/scan-file/
- Method: POST
```
#### Parameters

* Contract Document [File]

##### Request Body:
```javascript=16
    {
	"file": ""
    }
```
##### Response Body:
```javascript=16
    {
	"status_code": 200,
	"status": true,
	"data": {
		"establishment_name": "MUSTAKIM ALNUR TECHNICAL SERVICES CO.",
		"establishment_no": "1696308",
		"emp_passport_no": "ZPC437371",
		"candidate_name": "MD SHAHIN MD HABIB MIAH",
		"date_of_birth": "15/05/1999",
		"passport_number": "EE0416500",
		"telephone_number": "8801610931348"
	}
    }
```
### Dubai Contract Document Scan By Base64 Image Code:
```
- URL:/doc-verification/doc-service/api/countries/uae/contact-paper/scan-b64/
- Method: POST
```
#### Parameters

* Base64 document 

##### Request Body:
```javascript=16
    {
	"b64_image": "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwM....."
    }
```
##### Response Body:
```javascript=16
    {
	"status_code": 200,
	"status": true,
	"data": {
		"establishment_name": "MUSTAKIM ALNUR TECHNICAL SERVICES CO.",
		"establishment_no": "1696308",
		"emp_passport_no": "ZPC437371",
		"candidate_name": "MD SHAHIN MD HABIB MIAH",
		"date_of_birth": "15/05/1999",
		"passport_number": "EE0416500",
		"telephone_number": "8801610931348"
	}
    }
```

### Dubai Contract Document Verification By File Image Code:
```
- URL:/doc-verification/doc-service/api/countries/uae/contact-paper/verification/file/
- Method: POST
```
#### Parameters

* Base64 document 

##### Request Body:
```javascript=16
    {
	"file": ""
    }
```
##### Response Body:
```javascript=16
{
	"status_code": 200,
	"status": true,
	"data": {
		"establishment_name": "MUSTAKIM ALNUR TECHNICAL SERVICES CO.",
		"establishment_no": "1696308",
		"emp_passport_no": "ZPC437371",
		"candidate_name": "MD SHAHIN MD HABIB MIAH",
		"date_of_birth": "15/05/1999",
		"passport_number": "EE0416500",
		"telephone_number": "8801610931348"
	},
	"percentage": 6.700854700854701,
	"verification_status": "verified"
}
```

### Dubai Visa Document Scan By Base 64 Image Code:
```
- URL:doc-verification/doc-service/api/countries/uae/visa-verification/scan-b64/
- Method: POST
```
#### Parameters

* Base64 document 

##### Request Body:
```javascript=16
    {
	"b64_image": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQA..."
    }
```
##### Response Body:
```javascript=16
{
	"status_code": 200,
	"status": "true",
	"data": {
		"visa_number": "201/2023/2582020",
		"visa_issue_date": "14-04-2023",
		"visa_expire_date": "12-06-2023",
		"full_name": "Mg HASMOT ALI SALEMAN KHAN",
		"passport_no": "Sis Jss311/22330150058634/",
		"professin": "MARKETING MANAGER",
		"sponsor": "AMAL ZAKIA TECHNICAL SERVICES"
	}
}
```
### Dubai Visa Document Scan By File Code:
```
- URL:doc-verification/doc-service/api/countries/uae/visa-verification/scan-file/
- Method: POST
```
#### Parameters

* File document 

##### Request Body:
```javascript=16
    {
	"file": ""
    }
```
##### Response Body:
```javascript=16
{
	"status_code": 200,
	"status": "true",
	"data": {
		"visa_number": "201/2023/2582020",
		"visa_issue_date": "14-04-2023",
		"visa_expire_date": "12-06-2023",
		"full_name": "Mg HASMOT ALI SALEMAN KHAN",
		"passport_no": "Sis Jss311/22330150058634/",
		"professin": "MARKETING MANAGER",
		"sponsor": "AMAL ZAKIA TECHNICAL SERVICES"
	}
}
```