Light mode version of Land Your Home
V1Me

Get Me

GET
/v1/me

The user's own name, contact and company settings, each with how widely it is shared.

Required variables:

  • baseUrl
  • apiKey (needs profile:read)
  • userToken

Authorization

bearerAuth userTokenAuth
AuthorizationBearer <token>

Partner API key (lyh_...): identifies the calling partner, its scopes and rate limit.

In: header

X-User-Token<token>

The user's OAuth 2.1 access token, issued by Land Your Home's OAuth server to this partner's OAuth client. Requests run as this user.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/me"
{  "data": {    "name": {      "salutation": "Dr",      "firstName": "Alex",      "lastName": "Morgan",      "visibility": "full"    },    "contact": {      "email": "alex@example.com",      "emailVisibility": "Direct",      "phone": "+447700900123",      "phoneVisibility": "Private"    },    "company": {      "name": "Morgan Conveyancing",      "website": "https://morgan.example.com",      "visibility": "Public"    }  }}