Skip to content

GET /api/v1/me/natural-person

Retrieve detailed personal information for the authenticated user.

Endpoint

GET /api/v1/me/natural-person

Authentication

Requires a valid OAuth access token with the eprospera:person.details.read scope.

Authorization: Bearer <access-token>

Required Scopes

  • eprospera:person.details.read

Request

No request body or query parameters required.

Example Request

bash
curl https://portal.eprospera.com/api/v1/me/natural-person \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."

Response

Success Response (200 OK)

Returns detailed personal information for the authenticated user.

FieldTypeDescription
givenNamestringUser's first/given name
surnamestringUser's last name/surname
namestringFull name (formatted combination of given name and surname)
residentPermitNumberstringPróspera Resident Permit Number (RPN)
countryOfBirthstring | nullCountry where the user was born
citizenshipsstring[]Array of countries where the user holds citizenship
dateOfBirthstring | nullDate of birth in ISO 8601 format (YYYY-MM-DD)
sexstring | nullBiological sex (Male, Female, or Other)
addressobject | nullCurrent residential address
address.countrystringCountry
address.line1stringAddress line 1 (street address)
address.line2string | nullAddress line 2 (apartment, suite, etc.)
address.citystringCity
address.statestring | nullState/Province/Region
address.postalCodestringPostal/ZIP code
phoneNumberstring | nullFormatted phone number with country code

Example Response

json
{
  "givenName": "Maria",
  "surname": "Rodriguez",
  "name": "Maria Rodriguez",
  "residentPermitNumber": "90000000000123",
  "countryOfBirth": "Honduras",
  "citizenships": ["Honduras", "United States"],
  "dateOfBirth": "1990-05-15",
  "sex": "Female",
  "address": {
    "country": "Honduras",
    "line1": "Calle Principal 123",
    "line2": "Apt 4B",
    "city": "Roatan",
    "state": "Islas de la Bahía",
    "postalCode": "34101"
  },
  "phoneNumber": "+50498765432"
}

Null User Response

If no natural person record exists for the authenticated user:

json
null

Error Responses

401 Unauthorized - Missing Token

json
{
  "error": "missing_token"
}

401 Unauthorized - Invalid Token

json
{
  "error": "invalid_token"
}

401 Unauthorized - Insufficient Scopes

json
{
  "error": "missing_scopes: eprospera:person.details.read"
}

500 Internal Server Error

json
{
  "error": "Internal server error"
}

Usage Notes

  • This endpoint returns information from the user's e-Próspera profile
  • All users with approved residency applications will have a natural person record
  • The residentPermitNumber is a unique identifier for each resident
  • Phone numbers are formatted according to international standards (E.164)
  • Date of birth is returned in ISO 8601 format (YYYY-MM-DD)
  • Address information reflects the user's current registered address
  • Citizenships array may be empty if the user hasn't provided this information
  • Multiple citizenships are supported and returned as an array

Data Privacy

  • Only the authenticated user's own data is accessible
  • Data is only returned if the correct scope is granted during OAuth authorization
  • All personal information is subject to e-Próspera's privacy policy
  • Access tokens should be kept secure and never exposed in client-side code or logs