# Datashare

## Overview

The DataShare service is used to share data with other entrusted services and partners. The mechanism shares are the following:

1. Retrieves and stores data to be shared in [Object Store](/1.2.0/id-lifecycle-management/supporting-components/persistence/object-store.md) and returns a Datashare URL.
2. It fetches data from the Object Store when the Datashare URL is called.

The sharing of data is controlled by the [Datashare policy](/1.2.0/id-lifecycle-management/support-systems/partner-management-services/pms-existing/partner-policies.md#datashare-policy).

Data is encrypted before sharing it with partners. Learn more about [datashare encryption](/1.2.0/readme/principles/privacy-and-security/data-protection.md#datashare).

The relationship of Datashare Service with other services is explained here. *NOTE: The numbers do not signify the sequence of operations or control flow. Arrows indicate the data flow.*

![](/files/Prq0uaDtKaVCVquoNa0A)

1. ABIS Handler Stage creates datashare for ABIS.
2. Manual Adjudication Stage creates datashare for adjudication.
3. Verification Stage creates datashare for verification.
4. Datashare Service calls [Policy Manager Service](/1.2.0/id-lifecycle-management/support-systems/partner-management-services.md#policy-management-service) to get the policy for creating shares.
5. It calls the [Keymanager](/1.2.0/id-lifecycle-management/supporting-components/keymanager.md) Service to encrypt data as per policy.
6. Stores datashare inside [object store](/1.2.0/id-lifecycle-management/supporting-components/persistence/object-store.md).
7. Retrieves datashare from the object store when the datashare URL is called.
8. External systems like [ABIS](/1.2.0/id-lifecycle-management/supporting-components/biometrics/abis.md), Print System, Adjudication system etc. calls Datashare Service to get the datashare.
9. Print Service creates UIN PDF and uploads to datashare through Credential.
10. [Partner Manager Service](/1.2.0/id-lifecycle-management/support-systems/partner-management-services.md) creates credentials for CA certificates to be used by [ID Authentication](/1.2.0/id-lifecycle-management/identity-verification/id-authentication.md).
11. Printing Stage creates credentials for printing systems and sends the data through datashare.
12. [ID Repository](/1.2.0/id-lifecycle-management/identity-issuance/id-repository.md) Service sends data to ID Authentication system through Credential.


---

# Agent Instructions: 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:

```
GET https://docs.mosip.io/1.2.0/id-lifecycle-management/supporting-components/datashare.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
