# MOSIP 1.2.0 API endpoints tutorials

**URL:** <https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529>\
**Category:** Support\
**Created:** [June 15, 2023, 2:14am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529 "2023-06-15T02:14:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcsampang](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcsampang](https://community.mosip.io/u/rcsampang)\
**Post date:** [June 15, 2023, 2:14am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/1 "2023-06-15T02:14:17Z")

</div>

Aside from the MOSIP 1.2.0 API documentation on the web, are there any tutorials on API endpoints on how to use them e.g. what are the steps; what are the commands; what are the values that need to be put in the commands.

For Example  
[https://dev2.mosip.net/idrepository/v1/identity/idvid/{id}](https://dev2.mosip.net/idrepository/v1/identity/idvid/%7Bid%7D)  
What value should be placed in {id}

[https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/{ID}](https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/%7BID%7D)  
What value should be placed in {ID}

Is there a document or a tutorial that will explain these commands, and what are the values needed for these commands for MOSIP 1.2.0 API endpoints?

Something similar to this but for MOSIP 1.2.0 and all the API endpoints  
[https://docs.mosip.io/1.1.5/apis/id-repository-apis](https://docs.mosip.io/1.1.5/apis/id-repository-apis)

---

<div class="post-metadata">

**Author:** ![nayakrounak](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/nayakrounak/32/12_2.png) [@nayakrounak](https://community.mosip.io/u/nayakrounak)\
**Post date:** [June 15, 2023, 9:29am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/2 "2023-06-15T09:29:32Z")

</div>

Hi @rcsampang

For our new development on MOSIP, we have started using Stoplight for API documentation.

Currently, we have a few modules documented here: [https://mosip.stoplight.io/](https://mosip.stoplight.io/)

If you are looking at any specific API documentation, please let me know; we will add it to Stoplight for the time being.

Thanks and Regards,  
Rounak

---

<div class="post-metadata">

**Author:** ![rcsampang](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcsampang](https://community.mosip.io/u/rcsampang)\
**Post date:** [June 16, 2023, 2:57am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/3 "2023-06-16T02:57:23Z")

</div>

Hello @nayakrounak

This is quite useful for a proficient API developer. But I am not yet that competent in API development, thus I am still having difficulty in understanding them.

I was hoping to find a tutorial on other commands we could use to check if our MOSIP sandbox API endpoints are working as expected similar to the one discussed previously in my earlier post.

In my previous post I asked how to find the person’s UIN

The steps given were:

1. Please check below roles are assigned to ‘mosip-regproc-client’ service account from Keycloaks:  
Publish\_Registration\_Processor\_workFlow\_Paused\_for\_Additional\_Info\_Event\_General  
Subscriber\_Registration\_Processor\_workFlow\_Paused\_for\_Additional\_Info\_Event\_General.

If not, please add these roles and restart ‘regproc-notifier and regproc-workflow’ stages.

1. Get details from ID Repo - run the command below -  
[https://api-internal.yourenv.mosip.net/idrepository/v1/identity/idvid/yourRID?type=bio](https://api-internal.yourenv.mosip.net/idrepository/v1/identity/idvid/yourRID?type=bio)  
Please replace the host name and RID details as per your environment.

2. Before trying ID Repo, please do authentication  
[https://api-internal.qatriple.mosip.net/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey](https://api-internal.qatriple.mosip.net/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey)

You can get the clientIdSecretKey by running the command in MOSIP K8s cluster  
$ echo “PMS Client Password : $( kubectl -n keycloak get secrets keycloak-client-secrets -o jsonpath={.data.mosip\_regproc\_client\_secret} | base64 -d )”

So basically what I am looking for are other steps/commands that can be used to check the person’s registration information by leveraging the use of MOSIP API endpoints.

For example, there is this command in MOSIP 1.2.0 API documentation  
([Id Repository Identity Service](https://mosip.github.io/documentation/1.2.0/identity-service.html))

[https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/{ID}](https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/%7BID%7D)

What is its’ function ? Check status of the person’s registration?  
What should be put in place of {ID} ? I tried RID and UIN but I got an unauthorized error prompt  
Do I have to authenticate first before I run this command? How? What information are needed for the authentication?

I am trying to learn by issuing the get commands in the MOSIP API documentation ( [https://mosip.github.io/documentation/1.2.0/1.2.0.html](https://mosip.github.io/documentation/1.2.0/1.2.0.html)) but I don’t know where to find more information for each command, what steps to take, commands to run, and values to use.

Is there an existing tutorial for that?

---

<div class="post-metadata">

**Author:** ![nayakrounak](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/nayakrounak/32/12_2.png) [@nayakrounak](https://community.mosip.io/u/nayakrounak)\
**Post date:** [June 16, 2023, 1:30pm UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/4 "2023-06-16T13:30:09Z")

</div>

Hi @rcsampang ,

We don’t have a proper tutorial as of now. But I will be happy to explain a couple of the APIs here.

**API Type 1**

If you are looking to check the status of the resident’s packet, then you can use the below resident-service API.

Swagger for Resident Services: (https://{baseURL}/resident/v1/swagger-ui/index.html?configUrl=/resident/v1/v3/api-docs/swagger-config#/resident-controller/getRidStatus))

This API doesn’t need any authentication 🙂

Request URL: https://{baseURL}/resident/v1/rid/check-status

Request Body:

```auto
{
  "id": "mosip.resident.checkstatus",
  "version": "v1",
  "requesttime": "2023-06-16T11:45:08.162Z",
  "request": {
    "individualId": "11880117741004320230321171036",
    "individualIdType": "RID"
  }
}

```

Response Body:

```auto
{
  "id": "mosip.resident.checkstatus",
  "version": "v1",
  "responsetime": "2023-06-16T11:46:38.556Z",
  "metadata": null,
  "response": {
    "ridStatus": "PROCESSED"
  },
  "errors": null
}

```

**API Type 2**

Now there is another API in the Registration Processor to get the status of the resident’s packet.

Swagger for Registration Processor: (https://{baseURL}/registrationprocessor/v1/registrationstatus/swagger-ui/index.html?configUrl=/registrationprocessor/v1/registrationstatus/v3/api-docs/swagger-config))

This API needs authentication. Hence, you need to get an authentication token with one of the roles specified in registration-processor-default.properties.

> <https://github.com/mosip/mosip-config/blob/0dbf2bd445c43844c5cf8a32461176bf08d8530d/registration-processor-default.properties#L974>

mosip.role.registration.getPostexternalstatussearch=REGISTRATION\_ADMIN,REGISTRATION\_OFFICER,REGISTRATION\_SUPERVISOR,RESIDENT

Here the roles supported by the API are REGISTRATION\_ADMIN, REGISTRATION\_OFFICER, REGISTRATION\_SUPERVISOR, or RESIDENT.

For generating the authentication token with the required role, you need to use the auth manager APIs.

Swagger for Auth Manager: ([https://{baseURL}/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey](https://api-internal.collab.mosip.net/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey))

For getting this token, you need to authenticate using the client credentials, which is having the role RESIDENT, which you can find in keycloak.

 ![Screenshot 2023-06-16 at 6.14.50 PM](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/532797582791202da3e81ee6474c832e50dbeed0.png)

Request URL: https://{baseURL}/v1/authmanager/authenticate/clientidsecretkey

Request Body:

```auto
{
  "id": "string",
  "version": "string",
  "requesttime": "2023-06-16T11:44:29.563Z",
  "metadata": {},
  "request": {
    "clientId": "mosip-resident-client",
    "secretKey": "<secret from keycloak>",
    "appId": "resident"
  }
}

```

Response Body:

```auto
{
  "id": "string",
  "version": "string",
  "responsetime": "2023-06-16T12:48:32.532Z",
  "metadata": null,
  "response": {
    "status": "Success",
    "message": "Clientid and Token combination had been validated successfully"
  },
  "errors": null
}

```

Here, in the response header, you will have the authentication token below,

```auto
 access-control-allow-credentials: true 
 access-control-allow-headers: Date,Content-Type,Accept,X-Requested-With,Authorization,From,X-Auth-Token,Request-Id 
 access-control-allow-methods: POST,GET,OPTIONS,DELETE,PUT,PATCH 
 access-control-allow-origin: https://api-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WFpbCBpZGFfdG9rZW4gYWRkX29pZGNfY2xpZW50IHVwZGF0ZV9vaWRjX2NsaWVudCIsImNsaWVudEhvc3QiOiIxMC40Mi43LjE0MiIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiY2xpZW50SWQiOiJtb3NpcC1yZXNpZGVudC1jbGllbnQiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtbW9zaXAtcmVzaWRlbnQtY2xpZW50IiwiY2xpZW50QWRkcmVzcyI6IjEwLjQyLjcuMTQyIn0.OfXTuYU0g_hOaGIJlrjZifv2Y22TIZWgobbyMOHrwoDIE67S0YdXR8HpGG3YzrFnJ4v6_LQ_HuLY7JMBhEtsnOH7FmPUmljQZYjT56ftkjzfFZfpKR7xs6BpM0p6dSFwi34Jc7_2twXiMAtEYhOernX6jOKkAkD9AJAReyZhTC_rMME0WNurnXsV3-_xX2t1ys-2uUgqs_AT3Bm5TVu-2s5jmfNqjqtlgOdxzF1KfGdrEQKeFeNig9y7ta6Kkg2uZ8qd5QeAaUjCeTp93lgqxMnRIOWSEMqPSzB6cEf6GsqhHJod_MPTcuY1vt8a1_QVptSNge-yvVlt6ATd27873w 
 cache-control: no-cache,no-store,max-age=0,must-revalidate 
 connection: keep-alive 
 content-length: 213 
 content-type: application/json;charset=UTF-8 
 date: Fri,16 Jun 2023 12:48:32 GMT 
 expires: 0 
 pragma: no-cache 
 server: nginx/1.18.0 (Ubuntu) 
 x-content-type-options: nosniff 
 x-envoy-upstream-service-time: 79 
 x-frame-options: SAMEORIGIN 
 x-xss-protection: 1; mode=block 

```

Now, when you use the Registration Processor API, you need to add the above token to the cookie.

Request URL: https://{baseURL}/registrationprocessor/v1/registrationstatus/packetexternalstatus

Request Body:

```auto
{
  "id": "mosip.registration.packet.external.status",
  "version": "1.0",
  "requesttime": "2023-06-16T12:59:50.079Z",
  "request": [
    {
      "packetId": "10001101070000520221112023125"
    }
  ]
}

```

Response Body:

```auto
{
  "response": [
    {
      "packetId": "10001101070000520221112023125",
      "statusCode": "ACCEPTED"
    }
  ],
  "errors": [],
  "id": "mosip.registration.packet.external.status",
  "version": "1.0",
  "responsetime": "2023-06-16T13:07:48.905Z"
}

```

Hope this will help you. Let me know if you need anything else…

---

<div class="post-metadata">

**Author:** ![nayakrounak](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/nayakrounak/32/12_2.png) [@nayakrounak](https://community.mosip.io/u/nayakrounak)\
**Post date:** [June 16, 2023, 1:38pm UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/5 "2023-06-16T13:38:36Z")

</div>

Please find the curl command to add the authentication token in the cookie

```auto
curl --location 'https://qa3.mosip.net/v1/policymanager/policies/group/new' \
--header 'Content-Type: application/json' \
--header 'Cookie: Authorization=eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJQbHBYczdJWG9pY0hTeldPeWVQTjdXZFl4WmhsclczQV9RbXFjUlRRaEJRIn0.eyJqdGkiOiJlYjllMjgzNi1hNmQzLTQyMjAtOTc2MS1mNzRmZTQ5NDgxNTQiLCJleHAiOjE2ODU2MzM2NDIsIm5iZiI6MCwiaWF0IjoxNjg1NTk3NjQyLCJpc3MiOiJodHRwczovL3FhMy5tb3NpcC5uZXQva2V5Y2xvYWsvYXV0aC9yZWFsbXMvbW9zaXAiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiNmY0YTYzMWYtY2U2ZS00OTY4LWJmY2UtNDRkMGM3Zjc1ZDVmIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoibW9zaXAtYWRtaW4tY2xpZW50IiwiYXV0aF90aW1lIjowLCJzZXNzaW9uX3N0YXRlIjoiMThhMTZkYjQtMzQ0Ni00NTQwLWJiOTMtNGIwNmE5MDQ3MTFhIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL3FhMy5tb3NpcC5uZXQiXSwicmVhbG1fYWNjZXNzIjp7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mFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6ImVtYWlsIHByb2ZpbGUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsIm5hbWUiOiJQYXJ0bmVyIEFkbWluIiwicHJlZmVycmVkX3VzZXJuYW1lIjoicGFydG5lcmFkbWluIiwiZ2l2ZW5fbmFtZSI6IlBhcnRuZXIiLCJmYW1pbHlfbmFtZSI6IkFkbWluIiwiZW1haWwiOiJwYXJ0bmVyYWRtaW5AZ21haWwuY29tIn0.Pvs-UBpl_CbERNVKjG_2lmDZmAjo_l_4VbdNAgL7_fnl6ee1sjS_Zfhn99DyP8d9DQ0CnHyuFlRPq-wkSmdblAOXmspFN9wEh9FtlLmfvrImgI5PHy6R8YXCMvLvwfAj1Lt7XEYbcBhvDmxJxMmgi08T1Z0AsmzrDfNFyLVaV1-hMzF2Lw9FQUmDXt5WX6sGB43hiy1lXR06O87oF0j51wZoxPeRSS3eqgqCjXelT-sewDMvFe8fFJe__IObHmN_dd0_xXeKwrmc-KU6PGIEBgUgr3IHd_WIUHrVWRSHXH6-6We1uwy_SK06mZ3DZc5XScjbeZY7O8J_hl6EliLvaA' \
--data '{
  "id": "",
  "metadata": {},
  "request": {
    "desc":"policygroup",
    "name":"misp-policygroup182"
  },
  "requesttime": "2023-06-16T13:36:18.495Z",
  "version": "LTS"
}
'

```

---

<div class="post-metadata">

**Author:** ![rcsampang](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcsampang](https://community.mosip.io/u/rcsampang)\
**Post date:** [June 19, 2023, 12:43am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/6 "2023-06-19T00:43:01Z")

</div>

Thank you very much @nayakrounak This is quite helpful.

I will study them further and ask more questions later.

Best regards!

---

<div class="post-metadata">

**Author:** ![rcsampang](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcsampang](https://community.mosip.io/u/rcsampang)\
**Post date:** [June 19, 2023, 5:06am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/7 "2023-06-19T05:06:13Z")

</div>

@anyone

Quick question, what value should be put in {ID} in this command?

[https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/{ID}](https://dev2.mosip.net/idrepository/v1/identity/authtypes/status/%7BID%7D)

---

<div class="post-metadata">

**Author:** ![nayakrounak](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/nayakrounak/32/12_2.png) [@nayakrounak](https://community.mosip.io/u/nayakrounak)\
**Post date:** [June 23, 2023, 9:33am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/8 "2023-06-23T09:33:04Z")

</div>

The value for ID here is UIN or VID.

This Get API is used to get all the Authentication Types and their respective Statuses for the individual.

---

<div class="post-metadata">

**Author:** ![rcsampang](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rcsampang](https://community.mosip.io/u/rcsampang)\
**Post date:** [June 23, 2023, 12:01pm UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/9 "2023-06-23T12:01:10Z")

</div>

Hi @nayakrounak I tried placing UIN in the command. I ended up with unauthorized error.

I tried authenticating using the command in my previous post

[https://api-internal.qatriple.mosip.net/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey](https://api-internal.qatriple.mosip.net/v1/authmanager/swagger-ui/index.html?configUrl=/v1/authmanager/v3/api-docs/swagger-config#/authmanager/clientIdSecretKey)

I still ended up with the same unauthorized error.

What is the right way to authenticate?

---

<div class="post-metadata">

**Author:** ![nayakrounak](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/nayakrounak/32/12_2.png) [@nayakrounak](https://community.mosip.io/u/nayakrounak)\
**Post date:** [June 26, 2023, 6:28am UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/10 "2023-06-26T06:28:19Z")

</div>

Hi @rcsampang ,

As you can see, this is an ID REPOSITORY API - The role details to access this API will be available in `id-repository-default.properties` in the configurations, as shown below:

> <https://github.com/mosip/mosip-config/blob/0dbf2bd445c43844c5cf8a32461176bf08d8530d/id-repository-default.properties#L409>

Now you need to use client credentials that have one of the roles specified against the API configuration; here the roles are RESIDENT or ID\_REPOSITORY.

Make sure you are using a credential that has one of the above roles, or add one of the roles to the client that you are using.

Thanks,  
Rounak

---

<div class="post-metadata">

**Author:** ![marrycharli105](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@marrycharli105](https://community.mosip.io/u/marrycharli105)\
**Post date:** [March 1, 2026, 4:26pm UTC](https://community.mosip.io/t/mosip-1-2-0-api-endpoints-tutorials/529/11 "2026-03-01T16:26:59Z")

</div>

> [@rcsampang](#):
>
> Aside from the MOSIP 1.2.0 API documentation on the web, are there any tutorials on API endpoints on how to use them e.g. what are the steps; what are the commands; what are the values that need to be put in the commands.

There’s a thread on the official MOSIP Community forum where users discuss exactly your question — how to _use_ the endpoints, what values to substitute and how to put commands together:
