# ID Repository Audits

ID Repository contains the record of identity for an individual, and provides API based mechanism to store, retrieve and update identity details by other MOSIP modules.

## ID Repository Service

The ID Repository functionality will store identity data and documents and also retrieve stored identity details by UIN or VID upon receiving the request.

### User Event Type

The following events are triggered as part of System Event Type in ID Repository Service module

| Event ID | Event Type | Event Name                                      | Description                                                                                       | Reference ID    | Reference ID Type |
| -------- | ---------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------- | --------------- | ----------------- |
| IDR-001  | System     | Create Identity Request and Response            | This event triggers an API call to create the requested identity.                                 | Registration ID | Registration ID   |
| IDR-002  | System     | Update Identity Request and Response            | This event triggers an API call to update the requested identity.                                 | Registration ID | Registration ID   |
| IDR-003  | System     | Retrieve Identity Request and Response with UIN | This event triggers an API call to retrieve the requested identity for the UIN.                   | UIN             | UIN               |
| IDR-004  | System     | Retrieve Identity Request and Response with RID | This event triggers an API call to retrieve the requested identity for the RID.                   | Registration ID | Registration ID   |
| IDR-005  | System     | Create VID                                      | This event triggers an API call to create a VID requested for the VID type.                       | UIN             | UIN               |
| IDR-006  | System     | Retrieve VID                                    | This event triggers an API call to retrieve the UIN by the VID requested.                         | VID             | VID               |
| IDR-007  | System     | Revoke VID                                      | This event triggers an API call to revoke the VID requested.                                      | VID             | VID               |
| IDR-008  | System     | Regenerate VID                                  | This event triggers an API call to regenerate the VID requested.                                  | VID             | VID               |
| IDR-009  | System     | Update VID status                               | This event triggers an API call to update the requested VID status.                               | VID             | VID               |
| IDR-010  | System     | Deactivate VID                                  | This event triggers an API call to deactivate the VID requested.                                  | UIN             | UIN               |
| IDR-011  | System     | Reactivate VID                                  | This event triggers an API call to reactivate the VID requested.                                  | UIN             | UIN               |
| IDR-012  | System     | Retrieve UIN                                    | This event triggers an API call to retrieve the VID's based on the UIN requested.                 | UIN             | UIN               |
| IDR-013  | System     | Create Credential Request                       | This event triggers an API call to create a credential request for the partner.                   | ID              | ID                |
| IDR-014  | System     | Cancel Credential Request                       | This event triggers an API call to cancel a credential request for the partner.                   | ID              | ID                |
| IDR-015  | System     | Create Credential                               | This event triggers an API call to create the credentials for the partner.                        | ID              | ID                |
| IDR-016  | System     | Update authentication type status               | This event triggers an API call to update the authentication type status to either true or false. | UIN             | UIN               |
| IDR-017  | System     | Update Credential Request                       | This event triggers an API call to update the credential request for the partner.                 | ID              | ID                |


---

# 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.1.5/modules/kernel/audit-manager-functionality/id-repository-audits.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.
