Skip to main content

Authorization

Authorization to the API are accomplished using the x-api-key header. Each request made to the i3 APIs will require the x-api-key header with your unique API key that was issued on sign-up.

const instance = axios.create({
baseURL: 'https://api.i3.safeandthecity.com/api',
timeout: 1000,
headers: {
'Content-Type': 'application/json',
'x-api-key': '{YOUR_API_KEY}'
}
});

let response = instance.post('...');
danger

Your API key should be kept secret at all times, should your key leak in to public it is recommended that you have it replaced with a freshly generated key.