Light mode version of Land Your Home
V1Chains

Post Chain

POST
/v1/chains

Creates a chain with the user's transaction(s). selling makes the user the Seller of that property, buying makes them the Buyer (selling + buying links the purchase to the sale); or send thirdParty ({ role, representing, property }) on its own to join as, for example, an agent.

A property is { address: { addressLine1, country, ... }, saleState, currency, askingPrice?, acceptedPrice?, agent?, url?, image? }.

Required variables:

  • baseUrl
  • apiKey (needs chains:write)
  • userToken

Sets newChainId and newTransactionId for the requests that follow.

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

application/json

curl -X POST "https://example.com/v1/chains"
{  "data": {    "chainId": "1b18a121-73df-4412-88b8-b71545b6c9fe",    "sellingTransactionId": "a4b26e43-9cba-4715-a8a4-a22ae0c3ecd4",    "buyingTransactionId": "973d31a5-f2ad-4032-b00c-24e2a4bb4a91",    "thirdPartyTransactionId": null  }}