Skip to main content

Legacy webhooks

Building a new integration? Use webhooks

This page covers legacy webhooks: endpoints registered on each iGuide that receive the ready event. Webhooks supersede them, and new integrations should use webhooks. We continue to support legacy webhooks for existing integrations.

A legacy webhook is registered on a single iGuide. When that iGuide publishes, our backend sends an HTTP POST to the webhook's URL with a JSON body describing the iGuide.

How legacy webhooks differ from webhooks​

WebhooksLegacy webhooks
RegistrationOnce per account, with POST /webhooksOn each iGuide, in the webhooks array of POST /iguides
EventsiGuide and view lifecycle events, such as iguide.created and view.published. See the event reference.ready only
PayloadAn event envelope carrying IDs. Fetch current details from the Portal API.A full snapshot of the iGuide: URLs, media links, property, billing and banner
SecurityEvery delivery is signed with HMAC-SHA256, and your endpoint must pass verificationUnsigned
RetriesFive attempts over about 13 hours, with exponential backoffSeven attempts over about four and a half hours, with growing waits, then dropped
Limitations
  • Legacy webhooks deliver one event type, ready.
  • If your server was unavailable for some time, there is no way to know which events were sent during that time.
  • Only iGuide editors can change an iGuide's legacy webhook list.

Event delivery​

We deliver the event object in the body of an HTTP POST request. Each request times out after 30 seconds, and we don't follow redirects.

Return a 2xx once you have processed the event. If you can't process it right now, return a 5xx and we'll send it again later.

Your serverWhat happens
Returns 2xxDelivered. No retry.
Returns 5xxRetried on the schedule below.
Doesn't respond (connection refused, DNS failure or a 30-second timeout)Retried immediately, up to five tries in all. If every try fails, retried on the schedule below.
Returns anything else, including 3xx and 4xxDropped. Never retried.
Return 5xx when you want a retry

A 4xx tells us you rejected the event on purpose, and we drop it. If your database is down or your server is restarting, return a 500 or 503 instead.

Retry schedule​

A failed delivery is retried up to six times, seven attempts in total, with growing waits of about 5, 10, 20, 40, 70 and 110 minutes. The last attempt goes out about four and a half hours after the first. If it fails too, we drop the event.

If the iGuide becomes ready again while a retry is pending, the new ready event replaces the pending one. You receive the newer event, not both.

Event object structure​

The iGuide event object has the following structure:

PropertyTypeDescription
typestringEvent type.
other JSON properties are populated based on type value.

Other different fields can be present in the object based on the event type value. This field set differs for various event types.

{
"type": "<EVENT TYPE>",
... Other JSON fields specific to this event type ...
}

iGuide ready event​

Once the iGuide data is uploaded and has been made publicly available, the ready event will trigger. The event may be sent multiple times (e.g. if there was a draft error and the iGuide data had to be re-uploaded).

Event object​

PropertyTypeDescription
typestringEvent type, it is set to ready.
iguideIdstringiGuide ID; an immutable value that never changes.
defaultViewIdstringiGuide's Default view Id; the value can change during iGuide life time.
iguideAliasstringiGuide alias; the value can change during iGuide life time.
workOrderIdstringiGuide's current work order Id; the value can change during iGuide life time.
authtokenstringAccess token value.
The token is valid for 3 weeks from the moment the event is issued.
This value is required to access the private documents of an iGuide View. More details are provided in Access Tokens.
urlsURL ObjectCommon iGuide URLs
propertyProperty ObjectProperty information: address, coordinates, etc.
summarySummary ObjectProperty summary: floor area values, room area/dimensions, etc.
billingInfoBillingInfo ObjectBilling information
bannerBanner ObjectBanner information: company, email, phone, etc.
NOTE

A full sample of an iGuide Ready event object for https://youriguide.com/api-docs-sample is available at iguide-ready-event.json.

warning

The actual JSON object you receive may contain other properties not mentioned in this document. These properties are deprecated and are kept for backward compatibility only. Ignore any properties not present in this document, as they may be removed at any time without notice.

On-demand access

Apps with the iguide.events scope can retrieve the event object at any time (after the iGuide is ready) via:

GET /api/v1/iguides/{iguideId}/events/{eventType}/object?taskId={workOrderId}

They can also dispatch the event on-demand via:

POST /api/v1/iguides/{iguideId}/events/{eventType}/dispatch?taskId={workOrderId}

Both endpoints require the iguide.events scope. See the API reference for full details.

An on-demand dispatch makes one delivery attempt and doesn't follow the retry schedule. If your endpoint returns a 5xx, the dispatch call returns an error.

Example of iGuide Ready event object for https://youriguide.com/api-docs-sample

{
"type": "ready",
"iguideId": "igYGFV5GG6V8DD1",
"defaultViewId": "vXY7P2R1A",
"iguideAlias": "api-docs-sample",
"workOrderId": "WO1234",
"authtoken": "<view-access-token>",
"urls": {
"publicUrl": "https://youriguide.com/api-docs-sample/",
"unbrandedUrl": "https://unbranded.youriguide.com/api-docs-sample/",
"embeddedUrl": "https://youriguide.com/embed/api-docs-sample/",
"manageUrl": "https://manage.youriguide.com/iguides/edit/igYGFV5GG6V8DD1",
"mediaUrls": {
"en": {
"galleryFrontImage": "https://youriguide.com/api-docs-sample/doc/front.image",
"pdfMetric": "https://youriguide.com/api-docs-sample/doc/floorplan_metric_en.pdf",
"pdfImperial": "https://youriguide.com/api-docs-sample/doc/floorplan_imperial_en.pdf",
"tagPdfMetric": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"tagPdfImperial": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"galleryZip": "https://youriguide.com/api-docs-sample/doc/gallery.zip",
"galleryLowResZip": "https://youriguide.com/api-docs-sample/doc/gallery-low-res.zip",
"sphereZip": "https://youriguide.com/api-docs-sample/doc/spheres.zip",
"offlineZip": "https://youriguide.com/api-docs-sample/doc/offline_en.zip",
"svgZip": "https://youriguide.com/api-docs-sample/doc/svg.zip",
"dxfZip": "https://youriguide.com/api-docs-sample/doc/dxf_metric.zip",
"embedImage": "https://youriguide.com/api-docs-sample/doc/embed_preview.jpg",
"jpgMetric": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_metric_en_1.jpg"
}
],
"jpgImperial": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_imperial_en_1.jpg"
}
]
}
},
"media": {
"..."
}
},
"property": {
"fullAddress": "301-301 King St E, Kitchener, ON",
"country": "CA",
"postalCode": "N2G 2L3",
"stateProvince": "ON",
"city": "Kitchener",
"streetName": "King St E",
"streetNumber": "301",
"unit": "301",
"location": {
"lat": 43.447568,
"lng": -80.484302
}
},
"billingInfo": {
"iguideType": "standard",
"package": "",
"addons": ["vr", "advmeas"],
"billableAreaSqFeet": 4214.89137997613,
"billableAreaSqMeters": 391.5762224695776
},
"summary": {
"..."
},
"banner": {
"..."
}
}

Property object​

PropertyTypeDescription
fullAddressstringFull property address (for Canada and US the country is omitted)
countrystringCountry abbreviation according to ISO 3166.
citystringCity/town/village name
postalCodestringPostal/ZIP code value
stateProvincestringProvince/state abbreviation according to ISO 3166
streetNamestringStreet name
streetNumberstringStreet number
unitstringUnit number
locationobjectCoordinates
location.latnumberLatitude
location.lngnumberLongitude

Example of Property object for https://youriguide.com/api-docs-sample

{
"fullAddress": "301-301 King St E, Kitchener, ON",
"country": "CA",
"postalCode": "N2G 2L3",
"stateProvince": "ON",
"city": "Kitchener",
"streetName": "King St E",
"streetNumber": "301",
"unit": "301",
"location": {
"lat": 43.447568,
"lng": -80.484302
}
}

BillingInfo Object​

PropertyTypeDescription
iguideTypestringThe package type (human-readable). Possible values:
  • standard -- Standard iGuide
  • premium -- Premium iGuide
  • radix -- Radix iGuide
  • photos -- Photos-only iGuide
  • auto-draft -- AutoDraft iGuide
  • instant -- Instant iGuide
  • instant-sketch -- Instant Sketch iGuide
  • express-sketch -- Express Sketch iGuide
  • flex -- Flex iGuide
packagestringThe raw package type value. Same as iguideType except Standard iGuides return an empty string ("").
addonsArray of stringArray of enabled add-ons (both paid and free). Possible values: vr, streetview, advmeas, floorplanner
billableAreaSqFeetnumberBillable area in square feet
billableAreaSqMetersnumberBillable area in square meters
tip

Use iguideType for display purposes — it always returns a meaningful string. The package field returns the internal value, which is an empty string for Standard iGuides.

Example of BillingInfo object for https://youriguide.com/api-docs-sample

{
"iguideType": "standard",
"package": "",
"addons": ["vr", "advmeas"],
"billableAreaSqFeet": 4214.89137997613,
"billableAreaSqMeters": 391.5762224695776
}
PropertyTypeDescription
fullNamestringBanner owner's name
titlestringBanner owner's title
companystringCompany name
phonesobjectArray of banner's phone object
emailsArray of stringArray of banner's emails
websitestringCompany's URL
socialLinksobjectArray of banner's social link object
warning

This object does not appear if its View does not have a banner.

Example of object for https://youriguide.com/api-docs-sample

{
"fullName": "John Doe",
"title": "Broker of Record",
"company": "Test Brokerage",
"phones": [
{
"label": "CEO",
"number": "111-222-3333"
},
{
"label": "VP",
"number": "111-222-4444"
}
],
"emails": ["johndoe@brokerage.ca", "slee@planitar.com"],
"website": "http://www.brokerage.ca",
"socialLinks": [
{
"label": "Facebook",
"link": "https://www.facebook.com/realtorradio"
},
{
"label": "Twitter",
"link": "https://twitter.com/realtorradio"
}
]
}

URL object​

PropertyTypeDescription
publicUrlstringPublic iGuide View URL
unbrandedUrlstringPublic iGuide View URL that is guaranteed to display it with no branding information
embeddedUrlstringPublic iGuide View URL to be embedded in an iframe
manageUrlstringURL to edit the iGuide View on iGuide Portal
mediaUrlsLocalized Media URL ObjectURLs to iGuide View Media: Gallery, PDF floor plans, SVG floor plans, etc
tip

When an iGuide View is accessed via unbrandedUrl an unbranded version of iGuide Viewer is displayed to the user. That is, there is no agent branding info, no external video; the "Map" tab may also be hidden.

Example of URL object for https://youriguide.com/api-docs-sample

{
"publicUrl": "https://youriguide.com/api-docs-sample/",
"unbrandedUrl": "https://unbranded.youriguide.com/api-docs-sample/",
"embeddedUrl": "https://youriguide.com/embed/api-docs-sample/",
"manageUrl": "https://manage.youriguide.com/iguides/edit/igYGFV5GG6V8DD1",
"mediaUrls": {
"en": {
"pdfImperial": "https://youriguide.com/api-docs-sample/doc/floorplan_imperial_en.pdf",
"tagPdfMetric": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"tagPdfImperial": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"pdfMetric": "https://youriguide.com/api-docs-sample/doc/floorplan_metric_en.pdf",
"galleryFrontImage": "https://youriguide.com/api-docs-sample/doc/front.image",
"galleryLowResZip": "https://youriguide.com/api-docs-sample/doc/gallery-low-res.zip",
"galleryZip": "https://youriguide.com/api-docs-sample/doc/gallery.zip",
"offlineZip": "https://youriguide.com/api-docs-sample/doc/offline_en.zip",
"sphereZip": "https://youriguide.com/api-docs-sample/doc/spheres.zip",
"svgZip": "https://youriguide.com/api-docs-sample/doc/svg.zip",
"dxfZip": "https://youriguide.com/api-docs-sample/doc/dxf_metric.zip",
"tagImagesZip": "https://youriguide.com/api-docs-sample/doc/tag_images.zip",
"embedImage": "https://youriguide.com/api-docs-sample/doc/embed_preview.jpg",
"jpgMetric": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_metric_en_1.jpg"
}
],
"jpgImperial": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_imperial_en_1.jpg"
}
]
},
"fr": {
"pdfImperial": "https://youriguide.com/api-docs-sample/doc/floorplan_imperial_fr.pdf",
"tagPdfMetric": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_fr.pdf",
"tagPdfImperial": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_fr.pdf",
"pdfMetric": "https://youriguide.com/api-docs-sample/doc/floorplan_metric_fr.pdf",
...
}
}
}

Localized media URL object​

Document URL object looks as follows:

PropertyTypeDescription
enMedia URL ObjectURLs to iGuide View Media in English: Gallery, PDF floor plans, SVG floor plans, etc
frMedia URL ObjectURLs to iGuide View Media in French: Gallery, PDF floor plans, SVG floor plans, etc.
esMedia URL ObjectURLs to iGuide View Media in Spanish: Gallery, PDF floor plans, SVG floor plans, etc.
itMedia URL ObjectURLs to iGuide View Media in Italian: Gallery, PDF floor plans, SVG floor plans, etc.
zhMedia URL ObjectURLs to iGuide View Media in Mandarin: Gallery, PDF floor plans, SVG floor plans, etc.

Media URL object​

The Get asset URLs endpoint returns the same fields for each language. Its private URLs already carry an access token, while the ready event's don't.

PropertyTypeDescription
galleryFrontImagestringURL to the front image in the Gallery. public
pdfMetricstringPDF floor plan in metric units. Omitted when the View hides it with the Hide Floor Plan PDF View option. public
pdfImperialstringPDF floor plan in imperial units. Present and omitted under the same conditions as pdfMetric. public
tagPdfMetricstringTag Report PDF. There is one report for both units, so this carries the same URL as tagPdfImperial. Omitted when the View hides it with the Hide Tag Report PDF View option. The URL can be present even when no report is available: Radix and Photos iGuides don't support the Tag Report, and a View with no visible tags has nothing to report. public
tagPdfImperialstringTag Report PDF. Same URL as tagPdfMetric, and present and omitted under the same conditions. public
galleryZipstringURL to a ZIP file containing all original Gallery images. private
galleryLowResZipstringURL to a ZIP file containing all low-resolution Gallery images. private
galleryMlsZipstringDeprecated. Same URL as galleryLowResZip. private
sphereZipstringURL to a ZIP file containing all panorama sphere images. private
svgZipstringURL to a ZIP file containing SVG floor plans for all floors. private
dxfZipstringURL to a ZIP file containing DXF floor plans for all floors. Omitted for Instant and Instant Sketch iGuides, and while an iGuide's published floor plans are still a preview. private
offlineZipstringURL to the Offline ZIP file. Omitted for Express and Photos iGuides. Instant, Instant Sketch and Express Sketch iGuides include it only when the Offline ZIP add-on is enabled. Other iGuides omit it while their published floor plans are still a preview. private
tagImagesZipstringURL to a ZIP file containing the images attached to the View's tags, one entry per tag image named [tagId]-[floor]-[room].ext. Present only when the View has tag images — i.e. a visible tag references an image from the gallery. A View with text-only tags omits this field (the Tag Report PDF is still provided). Also omitted when the View hides the Tag Report PDF. private
embedImagestringURL to a preview image displayed in an iframe embedding the iGuide View. public
jpgMetricarrayArray containing one metric JPG floor plan per visible floor that has a floor plan. Omitted when no floor has one. Each entry has the floor id, its floorName and a url. public
jpgImperialarrayArray containing one imperial JPG floor plan per floor, in the same shape as jpgMetric. public
bpoPdfMetricstringBranded Property Overview (BPO) PDF in metric units. The BPO is a branded, printable overview of the property built from its floor plans. Omitted when the View hides the BPO (the Hide Branded Property Overview PDF View option). Instant and Instant Sketch iGuides hide it by default. An iGuide with no floor plans, such as a Photos iGuide, can still list the URL even though it has no overview to download. public
bpoPdfImperialstringBPO PDF in imperial units. Present and omitted under the same conditions as bpoPdfMetric. public
bpoJpgZipMetricstringURL to a ZIP file containing every page of the metric BPO as a JPG image. Present and omitted under the same conditions as bpoPdfMetric. public
bpoJpgZipImperialstringURL to a ZIP file containing every page of the imperial BPO as a JPG image. Present and omitted under the same conditions as bpoPdfMetric. public
bpoJpgMetricarrayArray containing one metric JPG per BPO page. Each entry has a page number (starting at 1) and a url. Omitted under the same conditions as bpoPdfMetric, and also when the iGuide has no floor plans to put in the overview. public
bpoJpgImperialarrayArray containing one imperial JPG per BPO page, in the same shape as bpoJpgMetric. Present and omitted under the same conditions as bpoJpgMetric. public

Public documents are publicly accessible using their URLs. These documents are marked with public in the table above.

Private documents cannot be accessed publicly and require an access token to be present in the URL. For more details please refer to Access Tokens. Private documents are marked with private in the table above.

Example of Media URL object for https://youriguide.com/api-docs-sample

{
"pdfImperial": "https://youriguide.com/api-docs-sample/doc/floorplan_imperial.pdf",
"tagPdfMetric": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"tagPdfImperial": "https://youriguide.com/api-docs-sample/doc/tag_floorplan_en.pdf",
"pdfMetric": "https://youriguide.com/api-docs-sample/doc/floorplan_metric.pdf",
"galleryFrontImage": "https://youriguide.com/api-docs-sample/doc/front.image",
"galleryLowResZip": "https://youriguide.com/api-docs-sample/doc/gallery-low-res.zip",
"galleryZip": "https://youriguide.com/api-docs-sample/doc/gallery.zip",
"offlineZip": "https://youriguide.com/api-docs-sample/doc/offline_en.zip",
"sphereZip": "https://youriguide.com/api-docs-sample/doc/spheres.zip",
"svgZip": "https://youriguide.com/api-docs-sample/doc/svg.zip",
"dxfZip": "https://youriguide.com/api-docs-sample/doc/dxf_metric.zip",
"tagImagesZip": "https://youriguide.com/api-docs-sample/doc/tag_images.zip",
"embedImage": "https://youriguide.com/api-docs-sample/doc/embed_preview.jpg",
"jpgMetric": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_metric_en_1.jpg"
}
],
"jpgImperial": [
{
"id": 1,
"floorName": "Main Floor",
"url": "https://youriguide.com/api-docs-sample/doc/floor_imperial_en_1.jpg"
}
],
"bpoPdfMetric": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_metric_en.pdf",
"bpoPdfImperial": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_imperial_en.pdf",
"bpoJpgZipMetric": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_metric_en.zip",
"bpoJpgZipImperial": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_imperial_en.zip",
"bpoJpgMetric": [
{
"page": 1,
"url": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_metric_en_1.jpg"
}
],
"bpoJpgImperial": [
{
"page": 1,
"url": "https://youriguide.com/api-docs-sample/doc/branded_property_overview_imperial_en_1.jpg"
}
]
}

Access tokens​

Private documents cannot be accessed without an access token. When sharing private documents, be sure to add an access token value to the Query String of the document URL as follows: <DOC URL>?accessToken=<ACCESS-TOKEN-VALUE>.

For example, suppose you get an iGuide Ready event with following values: Offline ZIP URL is https://youriguide.com/api-docs-sample/doc/offline.zip, and access token value is qD8iA. Then the Offline ZIP URL presented to the end user should be: https://youriguide.com/api-docs-sample/doc/offline.zip?accessToken=qD8iA (that is <iGuide View Doc URL>?accessToken=<ACCESS-TOKEN-VALUE>).

warning

Both public and private documents for Protected Views require a special access token. More details to come.

Test webhook endpoint​

In order to test your endpoint:

  1. Store the sample iGuide ready event object available at iguide-ready-event.json on your local file system.
  2. Run cURL to simulate an iGuide event submission.
# Store iguide-ready-event.json locally:
curl -fsL 'https://docs.youriguide.com/samples/iguide-ready-event.json' \
-o iguide-ready-event.json

# Submit iguide-ready-event.json to your webhook URL:
curl -fsv \
-X POST \
-H 'Content-Type: application/json' \
-d @iguide-ready-event.json \
"<YOUR WEBHOOK URL>"