Light mode version of Land Your Home
V1Address book

Get My Address Book

GET
/v1/me/address-book

Happy path: the other active people on every chain the user is in, with their role on each transaction. Details a person doesn't share with this user are null.

Pagination: limit (1-100, default 25) and cursor (an opaque nextCursor from a previous response; null when there are no more pages). Results are newest-updated first. Responses are { "data": [...], "nextCursor": "..." | null }.

Required variables:

  • baseUrl
  • apiKey (needs contacts: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

Query Parameters

limit?string
cursor?string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/me/address-book"
{  "data": [    {      "id": "3f1a9c6e5b0d4f0f8a2c7e91b6d34a58c1e2f7a09b4d5c6e8f1a2b3c4d5e6f70",      "relationship": "direct",      "name": "Mrs B. Brown",      "email": "bella@example.com",      "phone": null,      "company": null,      "companyWebsite": null,      "transactions": [        {          "chainId": "1b18a121-73df-4412-88b8-b71545b6c9fe",          "transactionId": "9a5424e0-2413-4890-a5ca-6e90f4604ae9",          "role": "Buyer",          "representing": "Buyer",          "address": "5 HOLLY CRESCENT"        }      ]    },    {      "id": "a7b1c9d2e3f4051627384950a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4",      "relationship": "chain",      "name": "Anon",      "email": null,      "phone": null,      "company": null,      "companyWebsite": null,      "transactions": [        {          "chainId": "1b18a121-73df-4412-88b8-b71545b6c9fe",          "transactionId": "9a5424e0-2413-4890-a5ca-6e90f4604ae9",          "role": "Buyer",          "representing": "Buyer",          "address": "5 HOLLY CRESCENT"        }      ]    }  ],  "nextCursor": null}