> For the complete documentation index, see [llms.txt](https://docs.vida.id/identity-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vida.id/identity-stack/verify/document-ai/ocr-and-document-verification/ocr-and-document-verification-v2/full-details-endpoint/ocr.md).

# OCR

**OCR (Optical Character Recognition)** is used to extract details like **date of birth** and **name** from a predefined set of ID cards. To use this operation, users must include **"ocr"** in the operations list of their request and provide the required image data. The OCR technology then processes the image, analyzes the data, and returns the extracted information.

### API Description

<mark style="color:green;">`POST`</mark> `https://{vida-host}/api/v2/verify`

#### Headers

<table><thead><tr><th width="245">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>Content-Type</td><td>application/json</td><td>Format type of request body</td></tr><tr><td>Authentication<mark style="color:red;">*</mark></td><td>String</td><td>Bearer &#x3C;Token></td></tr></tbody></table>

#### Request Body

<table><thead><tr><th width="178">Name</th><th width="109">Type</th><th>Description</th></tr></thead><tbody><tr><td>operations<mark style="color:red;">*</mark></td><td>String</td><td>["ocr"]</td></tr><tr><td>payload<mark style="color:red;">*</mark></td><td>String</td><td><p>{ </p><p>    "partnerTrxId": "random-uuid", </p><p>    "groupId": "random-uuid",</p><p>    "country": "country code",</p><p>    "idType": "ID_TYPE",</p><p>    "idSubtype": "IDSubType",</p><p>    "idFrontSideImage": "Base64 encoded image of ID frontside",</p><p>     "idBackSideImage": "Base64 encoded image of ID backside" </p><p><em><strong>(if backside enabled, this parameter needs to be send)</strong></em></p><p>}</p></td></tr><tr><td>userConsent<mark style="color:red;">*</mark></td><td>String</td><td><p>{ </p><p>    "userIp": "0.0.0.0",</p><p>    "country": "MYS",</p><p>    "obtained": true,</p><p>    "obtainedAt": "1680700959"</p><p>}</p></td></tr></tbody></table>
