Leases

List a lease's custom fields

Returns every custom field the company has defined for leases, each with its definition and this lease's value if one has been set. Fields with no value still appear, with value absent.

GET
https://api.portal.magicdoor.com/company-app/leases/{leaseId}/custom-fields

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

leaseIdstringrequired

The lease whose custom-field values you want. A Snowflake id, sent as a decimal string.

example: 1830472847398404096

Response

200 · The custom fields and their values on this lease.

customFieldsEntityCustomField[]

One entry per custom field defined for leases.

401 · The access token is missing, expired, or not for this company.

404 · No lease matched the id, or it belongs to another company.