Health social security
Description​
Let you know the health insurance status and type into ESSALUD (Social Security Institute).
HTTP method GET​
Endpoint​
https://api.msla-id.com/experience-idv-socialsecurity-api-v1/api/idv-govcheck/v1/pe-identity/{documentNumber}/check-health-status-security
For testing purposes, use the base domain: apidev.msla-id.com
info
Before proceeding, make sure you have your jwt token, if you don't, check the login documentation.
Request header parameter​
| NAME | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| Authorization | ✅ | string | bearer jwt token |
URI request parameter​
| NAME | REQUIRED | TYPE | DESCRIPTION |
|---|---|---|---|
| documentNumber | ✅ | string | Peru identity document number. |
Status code responses​
| Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Not found |
| 500 | Internal server error. |
The full documentation error codes can be found here.
Response 200 status code​
{
"traceId": "7d1c8e29399db98f",
"timestamp": "2026-02-22 11:21:21",
"data": {
"additionalInfo": {
"documentNumber": "Match",
"fullnames": "Match",
"state": "Match"
},
"age": 37,
"dateOfBirth": "30-05-86",
"gender": "M",
"taxIdNumber": "20608094718",
"fatherLastName": "POTTOZEN",
"motherLastName": "VILLANUEVA",
"firstName1": "LUIS",
"firstName2": "ANTONY",
"typeOfInsured": 10,
"typeOfWorker": 21,
"employeeStartingDate": 20220304,
"monthlyIncome": 2600,
"employeeTerminationDate": 0,
"ocialSecurityStatus": "VIGENTE",
"idType": 1,
"documentNumber": "48893957",
"district": "CHICLAYO",
"maritalStatus": "SOLTERO"
}
}
Response 400 status code​
{
"traceId": "542fc743fffda052",
"timestamp": "2023-05-05 11:20:46",
"code": "IDV-4005",
"message": "-",
"data": null
}
Response 401 status code​
{
"timestamp": "YYYY-MM-DDTHH:mm:ss.sssZ",
"status": 401,
"error": "Unauthorized",
"path": "/api/idv-govcheck/v1/pe-identity/{documentNumber}/check-health-status-security"
}
Response 500 status code​
{
"traceId": "43a20f33d4e8730d",
"timestamp": "yyyy-mm-dd HH:MM:SS",
"code": "IDV-1001",
"message": "A generic error has occurred.",
"data": null
}