> For the complete documentation index, see [llms.txt](https://valify.gitbook.io/valify-ios-sdk-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://valify.gitbook.io/valify-ios-sdk-documentation/dockit/android-native-sdk/sdk-response.md).

# SDK Response

#### 🔁 VIDVDocKitResponse Types

| **Type**                            | **Description**              |
| ----------------------------------- | ---------------------------- |
| Success(data)                       | SDK finished successfully    |
| BuilderError(code, message)         | Error in configuration setup |
| ServiceFailure(code, message, data) | OCR failed or invalid result |
| Exit(step, data)                    | User exited early            |

#### 📦 VIDVDocKitData

| **Field**     | **Type**             | **Description**                |
| ------------- | -------------------- | ------------------------------ |
| sessionID     | String               | Unique session ID              |
| deviceID      | String               | Device identifier              |
| captures      | Map\<String,String?> | Document images in Base64      |
| extractedData | Map\<String,String?> | Extracted values from document |

#### 🖼 Captures&#x20;

<details>

<summary>Egyptian National ID</summary>

| **Field**       | **Type** | **Description**    |
| --------------- | -------- | ------------------ |
| egy\_front\_nid | String   | Base64 front image |
| egy\_back\_nid  | String   | Base64 back image  |

</details>

<details>

<summary>MRZ Passport</summary>

| **Field**     | **Type** | **Description**    |
| ------------- | -------- | ------------------ |
| egy\_passport | String   | Base64 front image |

</details>

<details>

<summary>Tunisian National ID</summary>

| **Field**            | **Type** | **Description**    |
| -------------------- | -------- | ------------------ |
| tunisian\_front\_nid | String   | Base64 front image |
| tunisian\_back\_nid  | String   | Base64 back image  |

</details>

<details>

<summary>Algerian National ID</summary>

| **Field**            | **Type** | **Description**    |
| -------------------- | -------- | ------------------ |
| algerian\_front\_nid | String   | Base64 front image |
| algerian\_back\_nid  | String   | Base64 back image  |

</details>

🧾**ExtractedData**&#x20;

<details>

<summary><code>extractedData</code>Map&#x3C;String,String?> (Egyptian National ID)</summary>

* `nid` \<string>
* `first_name` \<string>
* `full_name` \<string>
* `street` \<string>
* `front_nid`  \<string>
* `serial_number` \<string>
* `back_nid` \<string>
* `release_date` \<string>
* `gender` \<string>
* `marital_status` \<string>
* `profession`\<string>
* `religion` \<string>
* `husband_name`  \<string>
* `date_of_birth` \<string>
* `age` \<string>
* `birth_governorate` \<string>
* `gender` \<string>
* `police_station` \<string>
* `governorate`\<string>
* `expiry_date` \<string><br>

</details>

<details>

<summary><code>extractedData</code> Map&#x3C;String,String?> (MRZ Passport)</summary>

* `name` \<string>
* `surname` \<string>
* `date_of_birth` \<string>
* `nationality`  \<string>
* `passport_number` \<string>
* `sex` \<string>
* `expiration_date` \<string><br>

</details>

<details>

<summary><code>extractedData</code> Map&#x3C;String,String?> (Tunisian National ID)</summary>

* `nid` \<string>
* `first_name` \<string>
* `last_name` \<string>
* `father_name` \<string>
* `husband_name`  \<string>
* `birthdate` \<string>
* `birthplace` \<string>
* `mother_name` \<string>
* `profession` \<string>
* `address` \<string>
* `issue_date`\<string>
* `thumbprint_code` \<string>

</details>

<details>

<summary><code>extractedData</code> Map&#x3C;String,String?> (Algerian National ID)</summary>

* `nid` \<string>
* `first_name` \<string>
* `surname` \<string>
* `date_of_birth` \<string>
* `place_of_birth` \<string>
* `blood_type` \<string>
* `gender`\<string>
* `issuance_date`\<string>
* `serial_no`\<string>
* `issuing_authority`\<string>
* `expiration_date` \<string>

</details>


---

# 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://valify.gitbook.io/valify-ios-sdk-documentation/dockit/android-native-sdk/sdk-response.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.
