> For the complete documentation index, see [llms.txt](https://api2-ekycportal.innov8tif.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api2-ekycportal.innov8tif.com/emas-ekyc-portal/centralized-okayid/additional-okayid-information/base64-images-returned-by-okayid.md).

# Base64 images returned by OkayID

## Guideline to extract the image (For OkayID)

For the user that is interested in extracting the image from OkayID API, please refer below to how to retrieve the image from the API:

1. Once the API is called with the ***imageEnabled: "true"*** and ***faceImageEnabled: "true"***, it will return the OkayID's result along with the cropped id image and cropped portrait image that can get from the ***"Base64ImageString"*** and ***"faceImage"*** row *(refer to Sample Response - Selfie Image in Base64 & Sample Response - Id Card Image in Base64)*
2. Users can then copy the whole base64 string and paste it into any **base64 to image** converter tools and convert it accordingly.&#x20;
3. After that, the user will be able to retrieve the cropped portrait image or the cropped Id card image from the API response.

![Sample Response - Cropped Portrait Image in Base64](/files/SxCpY3YUeAsiTpPXcAGa)

![Sample Response - Cropped Id Card Image in Base64](/files/5mlsOMc4bPcm2FUmrWtX)

{% hint style="info" %}
This will only applies to the customer that set the parameter of the **imageEnabled and faceImageEnabled to "true".**
{% endhint %}


---

# 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://api2-ekycportal.innov8tif.com/emas-ekyc-portal/centralized-okayid/additional-okayid-information/base64-images-returned-by-okayid.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.
