| SKYREACH SURVEYS Developer Portal | |||||||||||||||
| HOME | Getting Started | API Reference | What's New | FAQ / Support | Partner Login | |||||||||||||||
|
API Reference (version 1.4)
This page describes each of the operations that the platform supports and the information that each one expects to receive and will send back. All information is sent and received in JSON format and you should set the Content-Type header accordingly. All of the operations below require your partner key, as described in Getting Started, and this is not repeated for each operation. 1. Ordering a surveySurveys are ordered by sending a POST request to /api/v1/survey. The body of the request should contain the following fields. Fields marked as required must always be supplied and the order will be refused if any of them are missing, in which case the response will tell you which ones were the problem.
If the order is accepted you will receive a reply containing the survey number, which you should keep. The survey will initially be in the pending state. 2. Checking on a surveyTo find out where a survey is up to, send a GET request to /api/v1/survey/{id}, where {id} is the survey number you received when you ordered it. The reply will contain the details you supplied when ordering, along with a status, which will be one of the following:
When a survey is done, the reply will also include the results of the assessment. The most important of these is the damage_score, which is a whole number from 1 to 10 where 1 means no visible damage and 10 means the structure is a total loss, together with a category (none, minor, moderate, severe or total) which is worked out from the score, and a flag indicating whether our analysts believe there is a risk to the structure of the building which should be assessed by an engineer before anyone enters it. The reply will also include links to the aerial photographs taken during the flight. Photographs are kept for 90 days and you should download any you need to keep within that time. You may also retrieve all of the surveys ordered by your organisation by sending a GET request to /api/v1/surveys/list. This is intended for reconciliation and reporting purposes and should not be used to check on individual surveys. 3. Cancelling a surveySurveys cannot be cancelled through the platform once they have been ordered. If you have ordered a survey in error, please contact our dispatch desk by telephone as soon as possible. Surveys which are cancelled before a pilot has been dispatched will not be charged. 4. WebhooksIf you supplied a notify_url when ordering a survey, then when the survey is complete our platform will send a POST request to that address containing the same information that you would receive by checking on the survey. Your system should reply with a success response promptly. Please make sure that the address you supply can be reached from the internet and that it is not protected by a login, as our platform has no way of logging in. We will tell you which kind of notification it is in an HTTP header so that you do not need to inspect the body to find out. If your system does not respond, or responds with an error, we will try again several times over the following 24 hours. 5. ErrorsIf something goes wrong with your request the platform will reply with an error. The reply will include a status number and a short code describing the kind of problem. Most errors are caused by missing or incorrect information in the request, in which case please check the request against this page before contacting support. Last updated: 09/08/2018 | |||||||||||||||
| © 2004-2019 Skyreach Surveys Pty Ltd. All rights reserved. | Best viewed in Internet Explorer 8 at 1024x768 |