> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/web-api/accura-ocr.md).

# 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="/files/qVlEM0KpE4f8fne53iQb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/SSzaOAorR1cqtoS2CVlV" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.accurascan.com/language/web-api/accura-ocr.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
