Legacy 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
| Webhooks | Legacy webhooks | |
|---|---|---|
| Registration | Once per account, with POST /webhooks | On each iGuide, in the webhooks array of POST /iguides |
| Events | iGuide and view lifecycle events, such as iguide.created and view.published. See the event reference. | ready only |
| Payload | An event envelope carrying IDs. Fetch current details from the Portal API. | A full snapshot of the iGuide: URLs, media links, property, billing and banner |
| Security | Every delivery is signed with HMAC-SHA256, and your endpoint must pass verification | Unsigned |
| Retries | Five attempts over about 13 hours, with exponential backoff | Seven attempts over about four and a half hours, with growing waits, then dropped |
- 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 server | What happens |
|---|---|
Returns 2xx | Delivered. No retry. |
Returns 5xx | Retried 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 4xx | Dropped. Never retried. |
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:
| Property | Type | Description |
|---|---|---|
type | string | Event 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
| Property | Type | Description |
|---|---|---|
type | string | Event type, it is set to ready. |
iguideId | string | iGuide ID; an immutable value that never changes. |
defaultViewId | string | iGuide's Default view Id; the value can change during iGuide life time. |
iguideAlias | string | iGuide alias; the value can change during iGuide life time. |
workOrderId | string | iGuide's current work order Id; the value can change during iGuide life time. |
authtoken | string | Access 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. |
urls | URL Object | Common iGuide URLs |
property | Property Object | Property information: address, coordinates, etc. |
summary | Summary Object | Property summary: floor area values, room area/dimensions, etc. |
billingInfo | BillingInfo Object | Billing information |
banner | Banner Object | Banner information: company, email, phone, etc. |
A full sample of an iGuide Ready event object for https://youriguide.com/api-docs-sample is available at iguide-ready-event.json.
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.
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
| Property | Type | Description |
|---|---|---|
fullAddress | string | Full property address (for Canada and US the country is omitted) |
country | string | Country abbreviation according to ISO 3166. |
city | string | City/town/village name |
postalCode | string | Postal/ZIP code value |
stateProvince | string | Province/state abbreviation according to ISO 3166 |
streetName | string | Street name |
streetNumber | string | Street number |
unit | string | Unit number |
location | object | Coordinates |
location.lat | number | Latitude |
location.lng | number | Longitude |
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
| Property | Type | Description |
|---|---|---|
iguideType | string | The package type (human-readable). Possible values:
|
package | string | The raw package type value. Same as iguideType except Standard iGuides return an empty string (""). |
addons | Array of string | Array of enabled add-ons (both paid and free). Possible values: vr, streetview, advmeas, floorplanner |
billableAreaSqFeet | number | Billable area in square feet |
billableAreaSqMeters | number | Billable area in square meters |
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
}
Banner object
| Property | Type | Description |
|---|---|---|
fullName | string | Banner owner's name |
title | string | Banner owner's title |
company | string | Company name |
phones | object | Array of banner's phone object |
emails | Array of string | Array of banner's emails |
website | string | Company's URL |
socialLinks | object | Array of banner's social link object |
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
| Property | Type | Description |
|---|---|---|
publicUrl | string | Public iGuide View URL |
unbrandedUrl | string | Public iGuide View URL that is guaranteed to display it with no branding information |
embeddedUrl | string | Public iGuide View URL to be embedded in an iframe |
manageUrl | string | URL to edit the iGuide View on iGuide Portal |
mediaUrls | Localized Media URL Object | URLs to iGuide View Media: Gallery, PDF floor plans, SVG floor plans, etc |
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:
| Property | Type | Description |
|---|---|---|
en | Media URL Object | URLs to iGuide View Media in English: Gallery, PDF floor plans, SVG floor plans, etc |
fr | Media URL Object | URLs to iGuide View Media in French: Gallery, PDF floor plans, SVG floor plans, etc. |
es | Media URL Object | URLs to iGuide View Media in Spanish: Gallery, PDF floor plans, SVG floor plans, etc. |
it | Media URL Object | URLs to iGuide View Media in Italian: Gallery, PDF floor plans, SVG floor plans, etc. |
zh | Media URL Object | URLs 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.
| Property | Type | Description |
|---|---|---|
galleryFrontImage | string | URL to the front image in the Gallery. public |
pdfMetric | string | PDF floor plan in metric units. Omitted when the View hides it with the Hide Floor Plan PDF View option. public |
pdfImperial | string | PDF floor plan in imperial units. Present and omitted under the same conditions as pdfMetric. public |
tagPdfMetric | string | Tag 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 |
tagPdfImperial | string | Tag Report PDF. Same URL as tagPdfMetric, and present and omitted under the same conditions. public |
galleryZip | string | URL to a ZIP file containing all original Gallery images. private |
galleryLowResZip | string | URL to a ZIP file containing all low-resolution Gallery images. private |
galleryMlsZip | string | Deprecated. Same URL as galleryLowResZip. private |
sphereZip | string | URL to a ZIP file containing all panorama sphere images. private |
svgZip | string | URL to a ZIP file containing SVG floor plans for all floors. private |
dxfZip | string | URL 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 |
offlineZip | string | URL 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 |
tagImagesZip | string | URL 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 |
embedImage | string | URL to a preview image displayed in an iframe embedding the iGuide View. public |
jpgMetric | array | Array 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 |
jpgImperial | array | Array containing one imperial JPG floor plan per floor, in the same shape as jpgMetric. public |
bpoPdfMetric | string | Branded 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 |
bpoPdfImperial | string | BPO PDF in imperial units. Present and omitted under the same conditions as bpoPdfMetric. public |
bpoJpgZipMetric | string | URL 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 |
bpoJpgZipImperial | string | URL 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 |
bpoJpgMetric | array | Array 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 |
bpoJpgImperial | array | Array 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>).
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:
- Store the sample iGuide ready event object available at iguide-ready-event.json on your local file system.
- 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>"