Get started with the API
From nothing to your first call
Each ISN customer has a separate ISN account at its own web address, and you can't guess that address from the customer's name. Here's what you need, which API to call first, and two worked examples.
Four things you need before your first call
Service domain
The web address of the customer's ISN site, without anything after the domain name. Most customers use the default. White-label customers use their own, such as 4isn.com.
inspectionsupport.com
Company key
A short, lowercase identifier for one customer. It appears in the customer's ISN URL, and customers know theirs.
yourcompany
API endpoint
The base URL for every ISN API call, built from the first two. Each customer's data is reachable only at its own endpoint.
https://{service domain}/{company key}/rest
Access keys
An access key and a secret access key that an ISN user creates. Use these instead of a username and password; the user can revoke them at any time without changing their password.
Settings → My Access Keys
Which API do you call first?
The ISN API works with a customer's data. The Admin API only looks up where that customer's account is hosted. If you already have the domain and company key, build the endpoint yourself and skip the Admin API.
Go straight to the ISN API
Typical when you are integrating with your own ISN account, or when your user has given you both. Build the URL yourself and start calling: orders, clients, agents, scheduling, fees and files.
ISN API reference →Look it up with the Admin API
Typical when you serve many ISN customers. Customers usually know their company key but not their domain. Make one Admin API call to get the customer's endpoint, then continue with the ISN API.
Admin API reference →The Admin API uses an integration username and password that ISN issues to you. They are different from a customer's access keys, which the customer creates. Request a pair before you start building.
Request credentialsWorked examples: find upcoming work with footprints
A footprint tells your integration an inspection is coming up for the authenticated user — one per upcoming inspection — so you don't have to scan the full order list. Delete each footprint after you process it, or you'll receive it again every time you check, until the customer's retention setting removes it.
You know the domain and company key
- 1
Build the endpoint from the service domain and company key.
https://4isn.com/yourcompany/rest
- 2
Ask for upcoming work, signing in with the user's access keys.
curl -u "$ACCESS_KEY:$SECRET_ACCESS_KEY" \ https://4isn.com/yourcompany/rest/orders/footprints
- 3
Each footprint includes the ID of the order it points to. Use it to fetch details.
GET /order/{id} GET /client/{id} GET /agent/{id} - 4
Delete the footprint so it doesn't appear again.
You only have the company key
- 1
Ask the user for their company key. They will know it; they often won't know their domain.
- 2
Look up their endpoint with the Admin API, using your integration credentials.
curl -u "$INTEGRATION_USER:$INTEGRATION_PASS" \ "https://isnadmin.com/rest/isn/url?companykey=yourcompany"
- 3
Read the
urlfrom the response, and check thestatusfield in the body, not the HTTP status code.An unknown company key still returns HTTP
200. Thestatusfield shows the error. - 4
Save the URL for reuse so you don't call the Admin API every time. A customer's address rarely changes; if calls to a saved URL start failing, look it up again.
- 5
Continue as in the first example, using the URL you were given.