FieldInsight Public API
Welcome to the FieldInsight API Documentation, Here you will find all current endpoints documented with examples provided. Body data for all requests must be encoded as a query string.
Authentication
Authenticate through OAuth 2 all grant types are supported. A development account must be requested from FieldInsight for the Client ID/Secret and Redirect URL required to use this API. A guide to using the Development account is found here.
URL Encoded
This API requires that all requests with body data(PATCH POST) have that data encoded as a URL encoded string. It's also expected your URL encoded string handles arrays as repeated values. You should be able to find a setting to enable this behaviour in your language of choice e.g. workers=1844&workers=1845 not workers[0]=1844&workers[1]=1845
OAuth 2 flow Example
Provided below is an example of the Authorization code OAuth 2 flow. The user is redirected to FieldInsight to login and permit access. Then FieldInsight will redirect the user back to the callback url you specified with an authorization code. Finally the authorization code is traded for an access code which you can use to access the rest of the API
GETRedirect User
Redirect the User to this URL to have them log in to FieldInsight. FieldInsight will provide an Authorization code in response.
GETCallback example
Next FieldInsight will send the Customer back to the Callback URL you specified with the Authorization code.