CR API Details
The Central Registry API can be accessed using the following URL format:
https://<path-to-cr>.sahamati.org.in/entityInfo/{Entity_Type}
The <path-to-cr>
varies for UAT/PROD environments and can be requested from Sahamati services.
The Central Registry API can be used by the caller to fetch the details of all entities, subject to restrictions based on the role of the API caller (as per the role in the identity token).
API callers that present an identity token.roles = AA
will be able to fetch details of all FIPs and FIUs (but not that of other AAs). If the request is for Entity_type = AA
, they will get their own details only in the response.
API callers that present an identity token.roles = FIU
will be able to fetch details of all AAs and all FIPs (but not that of other FIUs). If the request is for Entity_type = FIU
, they will get their own details only in the response.
API callers that present an identity token.roles = FIP
will be able to fetch details of all AAs (but not that of other FIPs or FIUs). If the request is for Entity_type = FIP
, they will get their own details only in the response.
Authentication Header
Every request to Central Registry API requires an authentication header present in the request.
Header Name | Description |
---|---|
Authorization | Access token with prefix |
Request Type
HTTP GET
method is expected for the Central Registry API.
Sample response:
Error Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized or Invalid Access Token |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Last updated