{
  "openapi": "3.1.0",
  "info": {
    "title": "Saige MLS API",
    "version": "1.0.0",
    "summary": "BC MLS listing data in the RESO Web API format.",
    "description": "Listing data from Greater Vancouver REALTORS, the Fraser Valley Real Estate Board, the Chilliwack and District Real Estate Board and the BC Northern Real Estate Board, delivered through Saige's server in the RESO Web API format (OData), with RESO Data Dictionary 2.0 field names.\n\nAccess: a key is given after a review. Request one at https://www.realsaige.com/mls-api-docs. The service root ({SAIGE_MLS_API_URL}) and the key are sent with the approval. Keep the key in server-side secret storage.\n\nField names and types checked against the RESO Data Dictionary 2.0 on November 28, 2026. The resources and fields your key can read are listed in your metadata document.",
    "contact": {
      "name": "Saige",
      "url": "https://www.realsaige.com/contact"
    }
  },
  "externalDocs": {
    "description": "Saige MLS API documentation",
    "url": "https://www.realsaige.com/mls-api-docs"
  },
  "servers": [
    {
      "url": "{SAIGE_MLS_API_URL}",
      "description": "The service root you receive with your key.",
      "variables": {
        "SAIGE_MLS_API_URL": {
          "default": "https://service-root.invalid",
          "description": "Replace with the service root Saige sends you after approval."
        }
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Property",
      "description": "One record per listing: price, status, rooms, size, address, area, description, listing agent and brokerage."
    },
    {
      "name": "Media",
      "description": "Photos, floor plans and other files that belong to a record, such as a listing."
    },
    {
      "name": "OpenHouse",
      "description": "Scheduled open houses, each linked to a listing by ListingKey."
    },
    {
      "name": "Member",
      "description": "Agents. Which fields may appear on a public page is agreed when access is set up."
    },
    {
      "name": "Office",
      "description": "Brokerages and their offices."
    },
    {
      "name": "Lookup",
      "description": "The allowed values of each list field, such as every PropertyType value the feed uses."
    },
    {
      "name": "Metadata",
      "description": "The metadata document."
    }
  ],
  "paths": {
    "/Property": {
      "get": {
        "operationId": "list-properties",
        "summary": "List listings",
        "description": "Returns listings that match the query. Filter by status, area, price and rooms; ask only for the fields you show.\n\nDocs: https://www.realsaige.com/mls-api-docs/property-resource#list-properties",
        "tags": [
          "Property"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          },
          {
            "$ref": "#/components/parameters/expand"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Property\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$filter=StandardStatus eq 'Active' and City eq 'Burnaby'\" \\\n  --data-urlencode \"\\$select=ListingKey,ListPrice,BedroomsTotal,City\" \\\n  --data-urlencode \"\\$orderby=OnMarketDate desc\" \\\n  --data-urlencode \"\\$top=24\""
          }
        ]
      }
    },
    "/Property('{ListingKey}')": {
      "get": {
        "operationId": "get-property",
        "summary": "Get one listing",
        "description": "Returns one listing by its ListingKey. Use it for a listing detail page.\n\nDocs: https://www.realsaige.com/mls-api-docs/property-resource#get-property",
        "tags": [
          "Property"
        ],
        "parameters": [
          {
            "name": "ListingKey",
            "in": "path",
            "required": true,
            "description": "The ListingKey of the Property record, in single quotes inside the brackets.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/expand"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Property"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl \"$SAIGE_MLS_API_URL/Property('{ListingKey}')\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\""
          }
        ]
      }
    },
    "/Property('{ListingKey}')/Media": {
      "get": {
        "operationId": "list-property-media",
        "summary": "List photos of one listing",
        "description": "Returns the media records of one listing. Sort by Order so the first photo is the cover.\n\nDocs: https://www.realsaige.com/mls-api-docs/media-resource#list-property-media",
        "tags": [
          "Media"
        ],
        "parameters": [
          {
            "name": "ListingKey",
            "in": "path",
            "required": true,
            "description": "The ListingKey of the Property record, in single quotes inside the brackets.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Property('{ListingKey}')/Media\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$select=MediaURL,Order,ShortDescription\" \\\n  --data-urlencode \"\\$orderby=Order asc\""
          }
        ]
      }
    },
    "/Media": {
      "get": {
        "operationId": "list-media",
        "summary": "List media",
        "description": "Returns media records across listings. Filter by ResourceRecordKey, or by ModificationTimestamp to fetch only changed photos.\n\nDocs: https://www.realsaige.com/mls-api-docs/media-resource#list-media",
        "tags": [
          "Media"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Media\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$filter=ResourceRecordKey eq '{ListingKey}'\" \\\n  --data-urlencode \"\\$orderby=Order asc\""
          }
        ]
      }
    },
    "/OpenHouse": {
      "get": {
        "operationId": "list-open-houses",
        "summary": "List open houses",
        "description": "Returns open houses. Filter by OpenHouseDate for upcoming ones, or by ListingKey for one listing.\n\nDocs: https://www.realsaige.com/mls-api-docs/openhouse-resource#list-open-houses",
        "tags": [
          "OpenHouse"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenHouseCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/OpenHouse\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$filter=OpenHouseDate ge 2026-11-28\" \\\n  --data-urlencode \"\\$orderby=OpenHouseDate asc,OpenHouseStartTime asc\""
          }
        ]
      }
    },
    "/Member": {
      "get": {
        "operationId": "list-members",
        "summary": "List agents",
        "description": "Returns agent records. Whether your key can read them is agreed when access is set up.\n\nDocs: https://www.realsaige.com/mls-api-docs/member-and-office#list-members",
        "tags": [
          "Member"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MemberCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Member\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$filter=OfficeKey eq '{OfficeKey}'\" \\\n  --data-urlencode \"\\$select=MemberKey,MemberFullName,OfficeName\""
          }
        ]
      }
    },
    "/Office": {
      "get": {
        "operationId": "list-offices",
        "summary": "List offices",
        "description": "Returns brokerage and office records.\n\nDocs: https://www.realsaige.com/mls-api-docs/member-and-office#list-offices",
        "tags": [
          "Office"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OfficeCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Office\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$select=OfficeKey,OfficeName,OfficeCity\""
          }
        ]
      }
    },
    "/Lookup": {
      "get": {
        "operationId": "list-lookups",
        "summary": "List allowed values",
        "description": "Returns the allowed values of list fields. Filter by LookupName, then copy a LookupValue into your filters exactly.\n\nDocs: https://www.realsaige.com/mls-api-docs/lookups-and-metadata#list-lookups",
        "tags": [
          "Lookup"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/filter"
          },
          {
            "$ref": "#/components/parameters/select"
          },
          {
            "$ref": "#/components/parameters/orderby"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/count"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookupCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl -G \"$SAIGE_MLS_API_URL/Lookup\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\" \\\n  -H \"Accept: application/json\" \\\n  --data-urlencode \"\\$filter=LookupName eq 'PropertyType'\" \\\n  --data-urlencode \"\\$select=LookupName,LookupValue,StandardLookupValue\""
          }
        ]
      }
    },
    "/$metadata": {
      "get": {
        "operationId": "get-metadata",
        "summary": "Get the metadata document",
        "description": "Returns an XML document that lists every resource and field your key can read, with each field's type.\n\nDocs: https://www.realsaige.com/mls-api-docs/lookups-and-metadata#get-metadata",
        "tags": [
          "Metadata"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The metadata document.",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Bad request: a malformed query or an unsupported OData version.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed: the key is missing or wrong.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed: the key cannot read this.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The resource or record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request is too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Server error. Retry with a growing wait.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "The server does not support this request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-codeSamples": [
          {
            "lang": "Shell",
            "label": "curl",
            "source": "curl \"$SAIGE_MLS_API_URL/\\$metadata\" \\\n  -H \"Authorization: Bearer $SAIGE_MLS_API_KEY\""
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Send Authorization: Bearer SAIGE_MLS_API_KEY from server code only."
      }
    },
    "parameters": {
      "filter": {
        "name": "$filter",
        "in": "query",
        "required": false,
        "description": "Keep only records that match. Operators: eq, ne, gt, ge, lt, le, and, or, not. Text values go in single quotes.",
        "schema": {
          "type": "string"
        },
        "example": "StandardStatus eq 'Active' and ListPrice le 1200000"
      },
      "select": {
        "name": "$select",
        "in": "query",
        "required": false,
        "description": "Comma-separated fields to return. Ask only for what the page shows.",
        "schema": {
          "type": "string"
        },
        "example": "ListingKey,ListPrice,BedroomsTotal,City"
      },
      "orderby": {
        "name": "$orderby",
        "in": "query",
        "required": false,
        "description": "Sort order: a field, then asc or desc. Add the key as a second field so pages stay stable.",
        "schema": {
          "type": "string"
        },
        "example": "ListPrice asc,ListingKey asc"
      },
      "top": {
        "name": "$top",
        "in": "query",
        "required": false,
        "description": "Largest number of records to return in this answer.",
        "schema": {
          "type": "integer"
        },
        "example": "24"
      },
      "skip": {
        "name": "$skip",
        "in": "query",
        "required": false,
        "description": "Number of records to skip, for page 2 and on. Follow @odata.nextLink when the answer has one.",
        "schema": {
          "type": "integer"
        },
        "example": "24"
      },
      "count": {
        "name": "$count",
        "in": "query",
        "required": false,
        "description": "When true, the answer carries @odata.count, the number of matching records.",
        "schema": {
          "type": "boolean"
        },
        "example": "true"
      },
      "expand": {
        "name": "$expand",
        "in": "query",
        "required": false,
        "description": "Include related records in the same answer, such as the photos of each listing.",
        "schema": {
          "type": "string"
        },
        "example": "Media($select=MediaURL,Order;$orderby=Order asc)"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Error answer, as the RESO Web API Core specification defines it.",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "target": {
                "type": "string"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "Property": {
        "type": "object",
        "description": "One record per listing: price, status, rooms, size, address, area, description, listing agent and brokerage. Key field: ListingKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "ListingKey": {
            "description": "Unique key of the record. Use it to ask for one listing. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListingId": {
            "description": "Listing number shown to people, such as the MLS number. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "StandardStatus": {
            "description": "RESO standard status, such as Active, Pending or Closed. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MlsStatus": {
            "description": "Status in the board's own words. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "PropertyType": {
            "description": "Kind of property, such as Residential. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "PropertySubType": {
            "description": "Finer kind of property, such as Apartment or Townhouse. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListPrice": {
            "description": "Current asking price. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "OriginalListPrice": {
            "description": "First asking price. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "ClosePrice": {
            "description": "Sale price. VOW access only. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "CloseDate": {
            "description": "Date of the sale. VOW access only. RESO type: Date.",
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ListingContractDate": {
            "description": "Date the listing contract was signed. RESO type: Date.",
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "OnMarketDate": {
            "description": "Date the listing went on the market. RESO type: Date.",
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "DaysOnMarket": {
            "description": "Days on the market for this listing. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "CumulativeDaysOnMarket": {
            "description": "Days on the market across relistings. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "BedroomsTotal": {
            "description": "Number of bedrooms. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "BathroomsTotalInteger": {
            "description": "Number of bathrooms as a whole number. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "BathroomsFull": {
            "description": "Full bathrooms. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "BathroomsHalf": {
            "description": "Half bathrooms. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "LivingArea": {
            "description": "Floor area. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "LivingAreaUnits": {
            "description": "Unit of LivingArea, such as square feet. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "LotSizeArea": {
            "description": "Lot size. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "LotSizeUnits": {
            "description": "Unit of LotSizeArea. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "LotSizeSquareFeet": {
            "description": "Lot size in square feet. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "YearBuilt": {
            "description": "Year the building was built. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "StoriesTotal": {
            "description": "Number of storeys. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "ParkingTotal": {
            "description": "Parking spaces. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "GarageSpaces": {
            "description": "Garage spaces. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "ArchitecturalStyle": {
            "description": "Building styles. RESO type: String List, Multi.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "Heating": {
            "description": "Heating types. RESO type: String List, Multi.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "Cooling": {
            "description": "Cooling types. RESO type: String List, Multi.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "Appliances": {
            "description": "Appliances included. RESO type: String List, Multi.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "BuildingName": {
            "description": "Name of the building. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "UnparsedAddress": {
            "description": "Full address in one line. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "StreetNumber": {
            "description": "Street number. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "StreetName": {
            "description": "Street name. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "UnitNumber": {
            "description": "Unit number. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "City": {
            "description": "City or town. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "StateOrProvince": {
            "description": "Province. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "PostalCode": {
            "description": "Postal code. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "Country": {
            "description": "Country. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "Latitude": {
            "description": "Map position, north to south. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "Longitude": {
            "description": "Map position, east to west. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "MLSAreaMajor": {
            "description": "Board area. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MLSAreaMinor": {
            "description": "Board sub-area, the neighbourhood. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "SubdivisionName": {
            "description": "Subdivision or complex name. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "PublicRemarks": {
            "description": "Public description of the listing. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListAgentFullName": {
            "description": "Name of the listing agent. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListAgentKey": {
            "description": "Key of the listing agent's Member record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListAgentMlsId": {
            "description": "MLS ID of the listing agent. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListOfficeName": {
            "description": "Name of the listing brokerage. Show it as your board requires. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListOfficeKey": {
            "description": "Key of the listing brokerage's Office record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListOfficeMlsId": {
            "description": "MLS ID of the listing brokerage. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "PhotosCount": {
            "description": "Number of photos. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "PhotosChangeTimestamp": {
            "description": "When the photos last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "VirtualTourURLUnbranded": {
            "description": "Unbranded virtual tour link. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "AssociationFee": {
            "description": "Strata or association fee. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "AssociationFeeFrequency": {
            "description": "How often the fee is paid. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "TaxAnnualAmount": {
            "description": "Yearly property tax. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "TaxYear": {
            "description": "Year of the tax amount. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "WaterfrontYN": {
            "description": "Whether the property is on the water. RESO type: Boolean.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "ModificationTimestamp": {
            "description": "When the record last changed. Use it to fetch only changes. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "PropertyCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Property"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "Media": {
        "type": "object",
        "description": "Photos, floor plans and other files that belong to a record, such as a listing. Key field: MediaKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "MediaKey": {
            "description": "Unique key of the media record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ResourceRecordKey": {
            "description": "Key of the record it belongs to, such as the ListingKey. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ResourceName": {
            "description": "Resource it belongs to, such as Property. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MediaURL": {
            "description": "Address of the photo or file. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "Order": {
            "description": "Position in the listing's photo set. Sort by it. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "MediaCategory": {
            "description": "Kind of media, such as Photo or Floor Plan. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MediaType": {
            "description": "File type. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "ShortDescription": {
            "description": "Short caption. Use it as alt text. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "LongDescription": {
            "description": "Long caption. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ImageWidth": {
            "description": "Width in pixels. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "ImageHeight": {
            "description": "Height in pixels. RESO type: Number.",
            "type": [
              "number",
              "null"
            ]
          },
          "MediaModificationTimestamp": {
            "description": "When the file itself last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ModificationTimestamp": {
            "description": "When the record last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MediaCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Media"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "OpenHouse": {
        "type": "object",
        "description": "Scheduled open houses, each linked to a listing by ListingKey. Key field: OpenHouseKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "OpenHouseKey": {
            "description": "Unique key of the open house. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListingKey": {
            "description": "Key of the listing it belongs to. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ListingId": {
            "description": "Listing number of the listing it belongs to. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OpenHouseDate": {
            "description": "Date of the open house. RESO type: Date.",
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "OpenHouseStartTime": {
            "description": "Start time. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "OpenHouseEndTime": {
            "description": "End time. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "OpenHouseType": {
            "description": "Kind of open house, such as public or broker. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "OpenHouseStatus": {
            "description": "Status, such as active or cancelled. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "OpenHouseRemarks": {
            "description": "Notes for visitors. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "AppointmentRequiredYN": {
            "description": "Whether an appointment is needed. RESO type: Boolean.",
            "type": [
              "boolean",
              "null"
            ]
          },
          "LivestreamOpenHouseURL": {
            "description": "Link to a live stream. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ModificationTimestamp": {
            "description": "When the record last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "OpenHouseCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpenHouse"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "Member": {
        "type": "object",
        "description": "Agents. Which fields may appear on a public page is agreed when access is set up. Key field: MemberKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "MemberKey": {
            "description": "Unique key of the agent record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberMlsId": {
            "description": "Agent's ID in the MLS. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberFirstName": {
            "description": "First name. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberLastName": {
            "description": "Last name. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberFullName": {
            "description": "Full name. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberEmail": {
            "description": "Email address. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberDirectPhone": {
            "description": "Direct phone. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberMobilePhone": {
            "description": "Mobile phone. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberStatus": {
            "description": "Status of the membership. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberType": {
            "description": "Type of member. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "MemberDesignation": {
            "description": "Designations. RESO type: String List, Multi.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "OfficeKey": {
            "description": "Key of the agent's office. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeName": {
            "description": "Name of the agent's office. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeMlsId": {
            "description": "MLS ID of the agent's office. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ModificationTimestamp": {
            "description": "When the record last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "MemberCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Member"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "Office": {
        "type": "object",
        "description": "Brokerages and their offices. Key field: OfficeKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "OfficeKey": {
            "description": "Unique key of the office record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeMlsId": {
            "description": "Office's ID in the MLS. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeName": {
            "description": "Name of the office. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficePhone": {
            "description": "Phone. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeEmail": {
            "description": "Email address. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeAddress1": {
            "description": "Street address. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeCity": {
            "description": "City. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeStateOrProvince": {
            "description": "Province. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficePostalCode": {
            "description": "Postal code. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeStatus": {
            "description": "Status of the office. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeType": {
            "description": "Type of office. RESO type: String List, Single.",
            "type": [
              "string",
              "null"
            ]
          },
          "OfficeBrokerKey": {
            "description": "Key of the managing broker's Member record. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ModificationTimestamp": {
            "description": "When the record last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "OfficeCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Office"
            }
          }
        },
        "required": [
          "value"
        ]
      },
      "Lookup": {
        "type": "object",
        "description": "The allowed values of each list field, such as every PropertyType value the feed uses. Key field: LookupKey. Your metadata document lists the fields your key can read.",
        "properties": {
          "LookupKey": {
            "description": "Unique key of the lookup value. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "LookupName": {
            "description": "Name of the list, such as PropertyType. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "LookupValue": {
            "description": "The value as the server uses it. Copy it into filters exactly. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "StandardLookupValue": {
            "description": "The matching RESO standard value. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "LegacyODataValue": {
            "description": "Older form of the value. RESO type: String.",
            "type": [
              "string",
              "null"
            ]
          },
          "ModificationTimestamp": {
            "description": "When the value last changed. RESO type: Timestamp.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "LookupCollection": {
        "type": "object",
        "properties": {
          "@odata.context": {
            "type": "string"
          },
          "@odata.count": {
            "type": "integer",
            "description": "Present when the request sets $count=true."
          },
          "@odata.nextLink": {
            "type": "string",
            "description": "Address of the next page. Follow it until it is missing."
          },
          "value": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lookup"
            }
          }
        },
        "required": [
          "value"
        ]
      }
    }
  }
}
