# Accura OCR

### Important Notes:

1. Max file upload size is 1 MB. Request to Pre-Process the images and send to our Document OCR API.
2. User Profile Pic is returned as base64 format.
3. Results are returned in JSON format.
4. For MRZ documents. Use any country code, but card code should be "MRZ".
5. We DO NOT save any User information on our server.

{% hint style="info" %}
Check Country code and Card code from [here](https://accurascan.com/documents-supported-api/)
{% endhint %}

<mark style="color:green;">`POST`</mark> `https://api.accurascan.com/api/v4/ocr`

#### Headers

| Name                                      | Type   | Description  |
| ----------------------------------------- | ------ | ------------ |
| Api-Key<mark style="color:red;">\*</mark> | String | Your Api Key |

#### Request Body

| Name                                                                                     | Type   | Description                                                                                                       |
| ---------------------------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------- |
| country\_code<mark style="color:red;">\*</mark>                                          | String | Add the Country Code                                                                                              |
| card\_code <mark style="color:red;">\*</mark>                                            | String | Add the Card Code                                                                                                 |
| scan\_image or scan\_image\_url or scan\_image\_base64<mark style="color:red;">\*</mark> |        | Upload Image File (jpg, jpeg, png) or You can use image url. (jpg, jpeg, png) or You can use base64 image string. |

<details>

<summary><em>Postman Collection</em></summary>

{% code overflow="wrap" %}

```json
{"collection":{"info":{"_postman_id":"3a65d792-854a-4847-809b-a7258eaffe32","name":"Accura OCR","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","updatedAt":"2024-08-27T07:36:09.000Z","createdAt":"2024-08-27T07:28:20.000Z","lastUpdatedBy":"20339982","uid":"20339982-3a65d792-854a-4847-809b-a7258eaffe32"},"item":[{"name":"https://api.accurascan.com/api/v4/ocr","id":"2f38197c-2d95-480f-abe0-193cd0e3f77e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Api-Key","value":"Your Api Key","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"country_code","value":"","type":"text"},{"key":"card_code","value":"","type":"text"},{"key":"scan_image","type":"file","value":null}]},"url":{"raw":"https://api.accurascan.com/api/v4/ocr","protocol":"https","host":["api","accurascan","com"],"path":["api","v4","ocr"]}},"response":[],"uid":"20339982-2f38197c-2d95-480f-abe0-193cd0e3f77e"}]}}
```

{% endcode %}

</details>

<figure><img src="https://2173810795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ct3oWZAE255BxwYNdp5%2Fuploads%2FZCHe6a0xAF9BWG5AIbHC%2FOCRPost.png?alt=media&#x26;token=2f98620f-022e-489a-ac5d-5cd4d952908c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2173810795-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9ct3oWZAE255BxwYNdp5%2Fuploads%2F89DIyC1vuT0bESzjudy2%2FMRZResp.png?alt=media&#x26;token=f69c487c-3fc5-4a45-beb6-789013f97149" alt=""><figcaption></figcaption></figure>
