Skip to content

GET /api/v1/me/natural-person

Retrieve personal profile information for the authenticated user.

Endpoint

text
GET /api/v1/me/natural-person

Authentication

This endpoint accepts either:

  • an OAuth access token with the eprospera:person.details.read scope, or
  • an Agent Key (ak-) with the agent:person.details.read scope

Standard API keys (sk-) are not supported on this endpoint.

text
Authorization: Bearer <access-token-or-agent-key>

Accepted Scopes

Provide the scope that matches the token type you are using:

  • eprospera:person.details.read
  • agent:person.details.read

Example Request

bash
curl https://portal.eprospera.com/api/v1/me/natural-person \
  -H "Authorization: Bearer <access-token-or-agent-key>"

Response

Success Response (200 OK)

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"
}

403 Forbidden - Insufficient Scopes

Returned when an OAuth token lacks the required scope:

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

403 Forbidden — Insufficient Scope

Returned when an Agent Key lacks the required scope:

json
{
  "error": "Insufficient permissions"
}

500 Internal Server Error

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

Notes

  • Returns null if the user has no natural-person record (i.e., no approved residency application).
  • Phone numbers use E.164 format. Dates use ISO 8601.
  • The citizenships array may be empty if the user has not provided this information.