Download OpenAPI specification:Download
Search over enquiries
| filter | string Example: filter=digStartAfter:2020-08-01 Filters to apply to records |
| limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
| offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
| include | string Example: include=Address, Referral, WorkingForAuthority Provide list of extended properties to return |
| fields | string Example: fields=userReference,digStartAt List of basic properties to return (* indicates all) |
| order | string Example: order=userReference,-createdAt Sort order for results - hyphen prefix reverses order |
| returnGeometry | boolean Example: returnGeometry=false Includes geometry in response |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Enquiries": [
- {
- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}
]
}Create enquiry
| userReference | string <= 100 characters A user-supplied reference for this enquiry. |
| digStartAt required | string <date> Start date for enquiry activity. Must be no earlier than today. |
| digEndAt required | string <date> Start date for enquiry activity. Must be no earlier than digStartAt. |
required | object (Polygon) |
| isPlanningJob required | boolean Indicates if this enquiry relates to planning and design (true) or excavation (false). |
| activityTypes required | Array of strings non-empty unique An array of activity types. All values must be sourced from either the ENQ_ACT_DESIGN (isPlanningJob = true) or ENQ_ACT_EXCAVATE (isPlanningJob = false) domains. |
| authorityId | integer >= 1 The organisation for whom the enquiry activity is being undertaken. The authorityId must be a valid value returned from a call to GET /community/organisations for the enquiry polygon. Omit this attribute for either a Private enquiry or an enquiry using a user-entered authority name (otherAuthorityName). |
| otherAuthorityName | string <= 100 characters A user-entered name for the organisation for whom the enquiry activity is being undertaken. Should only be provided when no authorityId is entered. Omitting both authorityId and otherAuthorityName attributes indicates a Private enquiry. |
| notes | string <= 500 characters User supplied notes regarding the enquiry activity. Useful for communicating additional details about the activity with DBYD members. |
| locationTypes required | Array of strings non-empty unique Items Enum: "Road Reserve" "Private" A list of location types for the enquiry activity. |
| locationsInRoad required | Array of strings non-empty unique Items Enum: "Road" "Nature Strip" "Footpath" Required when locationTypes includes Road Reserve. A list of locations within the Road Reserver where work is to be undertaken. |
| source required | string = 3 characters An identifier to be used by any application lodging enquiries through the SmarterWX Sentinel API. It's used to identify the source of all enquiries, and the value needs to be set as 'API'. |
| isSandboxTest | boolean When true, this enquiry is only processed against the asset owner's own sandbox referral configuration. Only available to user's who belong to an asset owner organisation. |
required | object (Address) |
| autoRenewUntil | string |
| userTimezone | string |
{- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
], - [
- 0,
- 0
]
]
], - "bbox": [
- 0,
- 0,
- 0,
- 0
]
}, - "isPlanningJob": true,
- "activityTypes": [
- "MANUAL_EXCAVATION",
- "HORIZ_BORING"
], - "authorityId": 134,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road",
- "Nature Strip"
], - "source": "API",
- "isSandboxTest": true,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "autoRenewUntil": "2021-06-01",
- "userTimezone": "Australia/Melbourne"
}{- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}Get details of an enquiry
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry to retrieve |
| shareId | string Example: shareId=abc1234 To validate is this a share enquiry. |
| include | string Enum: "ConfirmationPDF" "LogoImageFile" Example: include=LogoImageFile Include confirmation pdf and/or logo in responses |
{- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}Update details of an enquiry
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry to update |
| autoRenewUntil | string |
{- "autoRenewUntil": "2021-06-01"
}{- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}Get referral details
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry being fetched |
| referralId required | integer >= 1 Example: 1 ID of the referral being fetched |
| returnGeometry | boolean Example: returnGeometry=false Includes geometry in response |
| returnResponses | boolean Example: returnResponses=false Includes responses in response |
| include | string Value: "LogoImageFile" Example: include=LogoImageFile Includes logo in response |
{- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Enquiry": {
- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}Add response for a referral
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry being responded to |
| referralId required | integer >= 1 Example: 1 ID of the referral being responded to |
| body required | string |
Array of objects | |
Array of objects | |
| safetyMessage | string [ 25 .. 320 ] characters |
| webMapURL | string <uri> <= 2000 characters |
{- "body": "<DIV>Our response</DIV>",
- "Files": [
- {
- "id": 5678
}
], - "Links": [
- {
- "displayText": "Friendly name",
- "url": "URL"
}
], - "safetyMessage": "stringstringstringstrings",
}{- "id": 1234,
- "referral_id": 3456,
- "body": "<DIV>Our response</DIV>",
- "Files": [
- {
- "id": 5678,
- "name": "Filename.pdf"
}
]
}Download Combined file of enquiry
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry being responded to |
| fileType required | string Value: "zip" Type of the file being responded to |
| shareId | string Example: shareId=iOiJIUzI1NiIsInR5cCI6IkpXVCJ9... The shareId token if the enquiry is open from a shared link |
{- "File": {
- "id": 1234
}, - "Job": {
- "id": 1234,
- "type": "ENQUIRY_COMBINED_ZIP",
- "status": "CREATED",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
}Create a job to download a combined responses file as pdf or zip
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry being processed |
| fileType required | string Enum: "pdf" "zip" Type of the file being created |
| includeLookUpAndLive | boolean Whether to include look up and live in the file |
| shareId | string The shareId token if the enquiry is open from a shared link |
| totalAttachmentCount | number The total number of attachments in the enquiry |
| selectedAttachmentCount | number The number of attachments selected for download |
| hasAdvancedOptions | boolean Whether advanced options are being used |
object |
{- "includeLookUpAndLive": true,
- "shareId": "iOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "totalAttachmentCount": 10,
- "selectedAttachmentCount": 5,
- "hasAdvancedOptions": true,
- "reponses": {
- "property1": {
- "files": {
- "property1": {
- "pageNumbers": [
- 1
]
}, - "property2": {
- "pageNumbers": [
- 1
]
}
}, - "mailBody": true
}, - "property2": {
- "files": {
- "property1": {
- "pageNumbers": [
- 1
]
}, - "property2": {
- "pageNumbers": [
- 1
]
}
}, - "mailBody": true
}
}
}{- "File": {
- "id": 1234
}, - "Job": {
- "id": 1234,
- "type": "ENQUIRY_COMBINED_ZIP",
- "status": "CREATED",
- "createdAt": "2020-08-01T03:36:00.000Z"
}
}Search over referrals
| filter | string Example: filter=createdAfter:2020-08-01 Filters to apply to records. |
| limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
| offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
| fields | string Example: fields=createdAt,externalId List of basic properties to return (* indicates all) |
| order | string Example: order=-createdAt Sort order for results - hyphen prefix reverses order |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Enquiry": {
- "id": 234,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "shape": { },
- "externalId": 20001234,
- "isPlanningJob": true,
- "activityTypes": [
- "string"
], - "authorityId": 13,
- "otherAuthorityName": "Jim Digs",
- "notes": "We are digging a hole.",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2020-11-01",
- "isSandboxTest": true,
- "source": "API",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "userId": 123,
- "Address": {
- "line1": "613 King St",
- "line2": null,
- "locality": "West Melbourne",
- "state": "VIC",
- "country": "AUS",
- "postcode": 3003
}, - "Referrals": [
- {
- "id": 234,
- "status": "CREATED",
- "externalId": 2123456789,
- "updatedAt": "2020-08-01T03:36:00.000Z",
- "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}, - "ReferralConfiguration": {
- "primaryContent": {
- "webMap": false,
- "responseType": "response_body",
- "filenameValue": "asset",
- "filenameOption": "start_with"
}
}
}
]
}, - "Organisation": {
- "id": 456,
- "name": "Victoria Gas",
- "role": "ASSETOWNER",
- "isDisabled": false,
- "contactName": "Assets Team",
- "contactEmail": "assets@melbournewater.com.au",
- "contactPhoneNumber": 1300123456,
- "contactEmergencyPhone": 1300123456,
- "LogoImageFile": {
- "id": 1,
- "encodedFile": "iVBORw0KGgoAAAANSUhEUgAAB9AAAAKkCAMAAABvbVQ7AAAABGdBTUEAALGP\\hLHSHHksahkhkdbcsiugf",
- "name": "example.png"
}, - "PrimaryContact": {
- "id": 324,
- "username": "asdf87safd876sfd",
- "email": "nobody@smarterwx.com",
- "role": "AOADMIN",
- "firstName": "Gary",
- "lastName": "Johnson",
- "phoneNumber": "040012345678"
}, - "safetyMessage": "Damaging telco infrastructure poses serious risks of major community disruption and costly repairs. Please follow all attached instructions and if necessary organise prior approval/coordination. The use of a skilled locator may be required. Ensure compliance with all specified safety measures.",
- "Tenant": {
- "id": 3,
- "name": "DBYD VIC & TAS"
}
}
}
]
}Search over referral emails
| filter | string Example: filter=createdAfter:2020-08-01 Filters to apply to records. |
| limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
| offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
| fields | string Example: fields=createdAt,externalId List of basic properties to return (* indicates all) |
| order | string Example: order=-createdAt Sort order for results - hyphen prefix reverses order |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Referrals": [
- {
- "id": 234,
- "externalId": 600005928,
- "createdAt": "2020-08-01T03:36:00.000Z",
- "OutboundEmails": [
- {
- "id": 567,
- "status": "delivered"
}
], - "Enquiry": {
- "id": 567,
- "externalId": 40003333,
- "isSandboxTest": false
}
}
]
}Search over referral responses
| filter | string Example: filter=createdAfter:2020-08-01 Filters to apply to records |
| limit | integer [ 1 .. 1000 ] Example: limit=50 Max number of records to return |
| offset | integer >= 0 Example: offset=100 Used for paging - offset from start |
| fields | string Example: fields=createdAt,externalId List of basic properties to return (* indicates all) |
| order | string Example: order=-createdAt Sort order for results - hyphen prefix reverses order |
{- "Info": {
- "offset": 10,
- "limit": 50,
- "count": 67
}, - "Responses": [
- {
- "id": 234,
- "createdAt": "2020-08-01T03:36:00.000Z",
- "inboundEmailId": 678,
- "Referral": {
- "id": 234,
- "externalId": 600005928,
- "Enquiry": {
- "id": 567,
- "externalId": 40003333,
- "isSandboxTest": false
}
}, - "OutboundEmails": [
- {
- "id": 567,
- "status": "delivered",
- "to": "gary@smarterwx.com"
}
]
}
]
}List all files associated with the response
| token required | string Example: token=1:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... Combination of version and JWT token containing the response id |
{- "id": null,
- "referralId": null,
- "Files": [
- {
- "id": 234,
- "name": "Asset Preset.pdf",
- "key": "Upload/2023/05/05/bee76f35-d061-4ada-8247-649dc98d3695"
}
], - "Enquiry": {
- "id": 234,
- "userReference": "Test Enquiry",
- "digStartAt": "2023-06-10",
- "digEndAt": "2023-06-30",
- "userId": 234,
- "externalId": 40003333,
- "createdAt": "2023-06-10"
}
}Get the download link for a particular file
| fileId required | integer >= 1 Example: 1 ID of the file to retrieve |
| token required | string Example: token=1:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... Combination of version and JWT token containing the response id |
{- "id": null,
- "name": "40006144.pdf",
- "key": "Uploads/2023/06/08/9693a1cc-7955-444a-8d19-5e4b9dc24",
- "mimeType": "application/octet-stream"
}Get the zip file download link for all the files associated with the response
| token required | string Example: token=1:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... Combination of version and JWT token containing the response id |
{- "name": "JobId 40006144 Test organisation 600014279.zip",
}Retrieve one response and file details
| responseId required | integer >= 1 Example: 123 |
| shareId | string Example: shareId=abc1234 To validate whether this content contects to a shared enquiry. |
{- "id": 234,
- "userId": 123,
- "body": "<DIV>Our response</DIV>",
- "Attachments": [
- {
- "id": 234,
- "name": null,
- "mimeType": "application/pdf"
}
]
}Retrieve the thumbnail for the response body
| enquiryId required | integer >= 1 Example: 123 |
| responseId required | integer >= 1 Example: 123 |
| shareId | string Example: shareId=abc1234 To validate whether this content connects to a shared enquiry. |
{- "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/BQYH/8QAtRABAAIB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5Pj/3",
- "width": 200,
- "height": 200,
- "cached": true
}Retrieve the thumbnail for a particular response attachment
| enquiryId required | integer >= 1 Example: 123 |
| responseId required | integer >= 1 Example: 123 |
| fileId required | integer >= 1 Example: 1 ID of the attachment to retrieve |
| shareId | string Example: shareId=abc1234 To validate whether this content connects to a shared enquiry. |
{- "thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/BQYH/8QAtRABAAIB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5Pj/3",
- "width": 200,
- "height": 200,
- "cached": true
}Get the link for a particular response attachment
| fileId required | integer >= 1 Example: 1 ID of the attachment to retrieve |
| shareId | string Example: shareId=iOiJIUzI1NiIsInR5cCI6IkpXVCJ9... The shareId token if the enquiry is open from a shared link |
{- "id": null,
- "name": "40006144.pdf",
- "key": "Uploads/2023/06/08/9693a1cc-7955-444a-8d19-5e4b9dc24",
- "mimeType": "application/octet-stream"
}Get all attachments from selected enquiry
| enquiryId required | integer >= 1 Example: 1 ID of the enquiry to retrieve attachments for |
| shareId | string Example: shareId=abc1234 The shareId token if the enquiry is open from a shared link |
{- "id": 234,
- "Referrals": [
- {
- "id": 345,
- "status": "COMPLETED",
- "Organisation": {
- "name": "Test Organisation"
}, - "Responses": [
- {
- "id": 456,
- "Files": [
- {
- "id": 567,
- "name": "Asset Preset.pdf",
- "emailContentDisposition": "attachment"
}
]
}
]
}
]
}Get a bulk enquiry lodgement
| bulkId required | integer >= 1 Example: 1 ID of the bulk enquiry lodgement to retrieve |
| include | string Example: include=BufferJob,SplitJob,ConvertJob,UpdateFilesJob,ProcessFilesJob Comma-separated list of related jobs to include in the response |
{- "id": 1,
- "status": "UPLOADING",
- "createdAt": "2020-08-01T03:36:00.000Z",
- "updatedAt": "2020-08-01T03:36:00.000Z"
}Update a bulk enquiry lodgement
| bulkId required | integer >= 1 Example: 1 ID of the bulk enquiry lodgement to update |
| bufferDistance | integer |
| maxSplitAreaSqm | integer |
| userReference | string <= 100 characters |
| digStartAt | string <date> |
| digEndAt | string <date> |
| isPlanningJob | boolean |
| activityTypes | Array of strings unique |
| notes | string <= 500 characters |
| userTimezone | string |
| source | string |
| locationTypes | Array of strings Items Enum: "Road Reserve" "Private" |
| locationsInRoad | Array of strings unique Items Enum: "Road" "Nature Strip" "Footpath" |
| autoRenewUntil | string <date> |
{- "bufferDistance": 100,
- "maxSplitAreaSqm": 50000,
- "userReference": "NBN Job Ref 124",
- "digStartAt": "2020-08-08",
- "digEndAt": "2020-08-15",
- "isPlanningJob": true,
- "activityTypes": [
- "MANUAL_EXCAVATION",
- "HORIZ_BORING"
], - "notes": "We are digging a hole.",
- "userTimezone": "Australia/Melbourne",
- "source": "APP",
- "locationTypes": [
- "Road Reserve"
], - "locationsInRoad": [
- "Road"
], - "autoRenewUntil": "2021-06-01"
}{- "id": 1,
- "status": "PROCESSING"
}Preview validation of buffer and split geometry settings for a bulk enquiry lodgement
| bulkId required | integer >= 1 Example: 1 ID of the bulk enquiry lodgement to validate |
| bufferDistance required | integer Buffer distance in metres (0 when buffer not applied; 10-200 when active) |
| maxSplitAreaSqm | integer or null Split area in square metres (0 = disabled; 1000000-19000000 when enabled; null for point-only files) |
{- "bufferDistance": 200,
- "maxSplitAreaSqm": 0
}{- "canProceed": false,
- "requiresSplit": true,
- "maxBufferedAreaSqm": 40000000,
- "totalBufferedAreaSqm": 120000000,
- "features": [
- {
- "featureIndex": 0,
- "geometryType": "string",
- "rawAreaSqm": 0,
- "lineLengthM": 0,
- "bufferedAreaSqm": 0,
- "exceedsLimit": true
}
], - "violations": [
- {
- "featureIndex": 0,
- "geometryType": "string",
- "bufferedAreaSqm": 0,
- "code": "string",
- "message": "string"
}
]
}