{
  "opencollection": "1.0.0",
  "info": {
    "name": "CoreLogic Trestle Direct Web API — CRM",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query Contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/Contacts"
          },
          "docs": "Returns contact records matching OData query options."
        },
        {
          "info": {
            "name": "Create Contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/Contacts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new contact record."
        },
        {
          "info": {
            "name": "Get Contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/Contacts(:ContactKeyNumeric)",
            "params": [
              {
                "name": "ContactKeyNumeric",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a single Contact by its numeric key."
        },
        {
          "info": {
            "name": "Update Contact",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.cotality.com/trestle/odata/Contacts(:ContactKeyNumeric)",
            "params": [
              {
                "name": "ContactKeyNumeric",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing Contact record."
        },
        {
          "info": {
            "name": "Delete Contact",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.cotality.com/trestle/odata/Contacts(:ContactKeyNumeric)",
            "params": [
              {
                "name": "ContactKeyNumeric",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deletes a Contact record."
        },
        {
          "info": {
            "name": "Get Contact Portal Contents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/Contacts(:ContactKeyNumeric)/PortalContents",
            "params": [
              {
                "name": "ContactKeyNumeric",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the PortalContents records associated with a contact."
        }
      ]
    },
    {
      "info": {
        "name": "EmailHistory",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query Email History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/EmailHistory"
          },
          "docs": "Returns email-history records for messages sent to contacts."
        },
        {
          "info": {
            "name": "Create Email History Record",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/EmailHistory",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Records an email sent to a contact."
        },
        {
          "info": {
            "name": "Get Email History Record",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/EmailHistory(:EmailHistoryKeyNumeric)",
            "params": [
              {
                "name": "EmailHistoryKeyNumeric",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a single EmailHistory record."
        }
      ]
    },
    {
      "info": {
        "name": "Lists",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query Lists",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/Lists"
          },
          "docs": "Returns property list / cart records attached to contacts."
        },
        {
          "info": {
            "name": "Create List",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/Lists",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new property list / cart."
        },
        {
          "info": {
            "name": "Get List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/Lists(ListKey=:ListKey,ClassName=:ClassName)",
            "params": [
              {
                "name": "ListKey",
                "value": "",
                "type": "path"
              },
              {
                "name": "ClassName",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns a single List by composite key."
        }
      ]
    },
    {
      "info": {
        "name": "PortalContents",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query Portal Contents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/PortalContents"
          },
          "docs": "Returns PortalContents records (listing notes, views, preferences)."
        },
        {
          "info": {
            "name": "Create Portal Content Record",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/PortalContents",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new PortalContents record."
        },
        {
          "info": {
            "name": "Add Listing Note",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/PortalContents/AddListingNote",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "OData action that attaches a note to a listing for a contact's portal."
        },
        {
          "info": {
            "name": "Mark Listing As Viewed",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/PortalContents/MarkAsViewed",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "OData action that marks a listing as viewed in a contact's portal."
        },
        {
          "info": {
            "name": "Set Listing Preference",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/PortalContents/SetListingPreference",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "OData action that sets a contact's preference flag on a listing."
        }
      ]
    },
    {
      "info": {
        "name": "SavedSearches",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query Saved Searches",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/SavedSearches"
          },
          "docs": "Returns SavedSearch records (listing search criteria for auto-email)."
        },
        {
          "info": {
            "name": "Create Saved Search",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/SavedSearches",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new SavedSearch record."
        },
        {
          "info": {
            "name": "Get Saved Search Listing IDs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/SavedSearches(:SavedSearchKeyNumeric)/Default.GetSavedSearchListingIDs()",
            "params": [
              {
                "name": "SavedSearchKeyNumeric",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "OData function that returns the listing IDs currently matching a saved search."
        }
      ]
    },
    {
      "info": {
        "name": "UserRegistry",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Query User Registry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/UserRegistry"
          },
          "docs": "Returns per-user preference key/value records."
        },
        {
          "info": {
            "name": "Create User Registry Entry",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.cotality.com/trestle/odata/UserRegistry",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new user registry key/value entry."
        },
        {
          "info": {
            "name": "Get Allowed Registry Keys",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/UserRegistry/GetAllowedKeys()"
          },
          "docs": "Returns the list of allowed key names for the UserRegistry."
        }
      ]
    },
    {
      "info": {
        "name": "DashboardAPI",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Aggregated Dashboard Data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.cotality.com/trestle/odata/DashboardAPI/GetAggregatedData"
          },
          "docs": "Returns MyListings, HotSheet, MarketWatch, Concierge, and Timeline data for the agent dashboard."
        }
      ]
    }
  ],
  "bundled": true
}