Introduction
Customer API for the Altered Carbon Building Intelligence platform (AIRaware and LEAKaware): integration feeds for BI tools and housing management systems (properties, alerts, and AIRaware temperature, relative humidity and SporeScore; LEAKaware data is coming soon), integration API keys, webhooks and bulk data exports.
This reference documents the customer-facing API of the Altered Carbon Building Intelligence platform, which runs both AIRaware (mould risk and indoor air quality) and LEAKaware (leak detection). Use it to pull property, sensor, and alert data into Power BI, a housing management system, or a data warehouse. It covers the integration feeds, API key management, webhooks, and data exports. Other platform endpoints are internal and are not available to API keys.
Get started
Step 1: Create an API key
An API key belongs to one organisation, not to a person. An organisation admin, reseller admin, or system admin creates it in the AIRaware or LEAKaware web app:
- Sign in to the web app.
- Go to Profile > API access, or open your organisation's Integrations page.
- Click Create key, enter a name that says what the key is for (for example
Power BI), and select an expiry. - Copy the key and store it in your secret manager.
The web app shows the key once. We store only a hash, so nobody can show it to you again. If you lose the key, rotate it.
Each key is read-only (integration:read). It can send GET and HEAD requests to the
endpoints marked API key: works in this reference. Every other request returns 403 with
"error": "integration_route_not_allowed".
| Limit | Value |
|---|---|
| Default expiry | 180 days |
| Maximum expiry | 365 days (you can select 30, 90, 180, or 365) |
| Active keys per organisation | 10 |
| Active keys per person who creates them | 5 |
Step 2: Make your first call
Send the key in the Authorization header as a bearer token. Replace ORGANISATION_ID with your
organisation's ID and YOUR_API_KEY with the key:
curl --get "https://app.air-aware.co/api/v1/integration/organizations/ORGANISATION_ID/properties" \
--data-urlencode "per_page=1" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json"
A 200 response with a data array means that the key works.
Base URL
All customer endpoints are under /api/v1. Paths without a version (for example
/api/integration/...) are not supported for API keys and can change without notice.
| Environment | Base URL |
|---|---|
| Production | https://app.air-aware.co/api/v1 |
| Staging (test data only) | https://staging-app.air-aware.co/api/v1 |
Reseller subdomains (for example https://PARTNER.air-aware.co/api/v1) serve the same API.
Each environment publishes its own reference at /api/docs and its OpenAPI 3 spec at
/api/docs.openapi. The Try it out buttons on this page send real requests with the key that
you enter. They never store the key.
Authentication
Send every request with this header:
Authorization: Bearer YOUR_API_KEY
A key acts for its organisation. It sees only that organisation's properties, sensors, and
alerts, and it can call only the integration feeds (/api/v1/integration/...). A call for another organisation returns 403.
The AIRaware and LEAKaware web and mobile apps sign in with short-lived Keycloak sessions. Some endpoints in this reference work only with such a signed-in session. They are marked API key: not available. Do not build unattended integrations on a user session.
Pagination
Lists use one of two pagination styles.
Page pagination (most lists, including the properties, daily, and alerts feeds):
- Request
?page=1&per_page=100. The integration feeds acceptper_pageup to 1000. - Read
meta.last_pagefrom the response. - Request the next page until
pageequalsmeta.last_page.
Cursor pagination (the readings feed):
- Make the first request without a cursor.
- Pass
meta.next_cursorfrom the response back as?cursor=. - Stop when
meta.next_cursorisnull.
Treat a cursor as an opaque string. Do not build or change cursors yourself.
To load only the rows created or changed since your last run, pass updated_since (an ISO 8601
time) to any integration feed.
CSV
Every integration feed accepts ?format=csv and returns text/csv with a header row. Pagination
then moves to response headers: X-Current-Page, X-Per-Page, X-Total, and X-Last-Page for
page feeds, or X-Next-Cursor for the readings feed.
Rate limits
Limits apply per API key. Two keys of the same organisation each have their own budget.
| Window | Limit per key |
|---|---|
| Per minute | 60 requests |
| Per hour | 1,000 requests |
There is no daily quota. Data updates once a day, so one poll per day per organisation is enough. Use the paged feeds (or the readings cursor) for a first backfill. 60 per minute is plenty for that. Organisation admins can see each key's limits and how much of them it has used this minute and this hour on the API keys page in the platform.
Every successful response carries these headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed in the window that is closest to its limit (per minute or per hour) |
X-RateLimit-Remaining |
Requests left in that window |
When you go over a limit
The API returns 429 Too Many Requests. The request is not processed. The response has these
headers:
| Header | Meaning |
|---|---|
Retry-After |
Seconds to wait before you retry |
X-RateLimit-Reset |
Unix time (seconds) when the window resets |
X-RateLimit-Limit |
The limit that was hit |
X-RateLimit-Remaining |
Always 0 |
The body says which limit you hit and when to retry:
{
"message": "Rate limit reached: 60 requests per minute for this API key. Retry in 42 s.",
"error": "rate_limited",
"window": "minute",
"limit": 60,
"retry_after": 42,
"retry_at": "2026-11-17T12:01:00+00:00"
}
window is minute or hour. Wait retry_after seconds (or until retry_at), then retry. Do not
retry in a tight loop. Too many
requests with an unknown or expired key from one IP address also return 429 rate_limited
(without window).
Errors
Errors are JSON. Most have a human-readable message. Errors from the key checks also carry a
machine-readable error code:
{ "success": false, "error": "integration_route_not_allowed", "message": "This integration token is read-only and cannot call this route." }
| Status | error |
Meaning | What to do |
|---|---|---|---|
| 401 | none ("message": "Unauthenticated") |
The key is missing, wrong, revoked, or expired. | Check the header. Create or rotate the key. |
| 401 | token_not_permitted |
The token is not an organisation API key (for example an old personal token). | Create an organisation API key. |
| 401 | customer_api_disabled |
Your organisation is not in the customer API pilot. | Ask your account manager. |
| 401 | integration_client_disabled |
The key's organisation or integration client is disabled. | Ask your organisation admin. |
| 403 | integration_route_not_allowed |
API keys are read-only and cannot call this endpoint or method. | Use only endpoints marked API key: works. |
| 403 | none | The key cannot see this organisation or resource. | Check the organisation ID. |
| 404 | none | The resource does not exist or your key cannot see it. | Check the ID. |
| 422 | none | A parameter is missing or not valid. The body has a per-field errors object. |
Fix the request. |
| 429 | rate_limited |
The key went over its per-minute or per-hour limit (window). |
Wait retry_after seconds. |
A validation error looks like this:
{ "message": "The from field is required.", "errors": { "from": ["The from field is required."] } }
Key expiry and rotation
A key stops working at its expiry time. We email the person who created the key and all organisation admins 30, 7, and 1 days before expiry, and again when the key expires.
To replace a key without downtime:
- Rotate the key on the API access or Integrations page. The web app shows the new key once.
- Put the new key in your secret manager and in the system that calls the API.
Rotation revokes the old key straight away, so update the calling system right after you rotate. If you need an overlap, create a second key, move the system to it, then revoke the old key.
Keep your key safe
- Store the key in a secret manager or an encrypted variable, never in source code, a spreadsheet, or a Power BI file that you share.
- Use one key per system, so that you can revoke one without stopping the others.
- Rotate keys regularly. Shorter expiries limit the damage of a leaked key.
- If a key leaks, revoke it at once on the API access or Integrations page, then create a
new one. Revoked keys return
401straight away. - Never send your key to our support team.
Conventions
- Timestamps are UTC, ISO 8601 (
2026-10-01T13:00:00Z). Query parameters accept ISO 8601 instants or dates (2026-10-01). As an upper bound, a date covers the whole day. - Property identifiers: every integration row carries
location_id(the platform property ID),uprn, andexternal_ref(your housing-system reference), so rows join onto your asset register. To add or update properties in bulk, includinguprnandexternal_ref, an organisation admin uses the Import properties screen in the web app (CSV upload). API keys cannot change properties. - Versioning:
/api/v1changes only by addition. New fields and endpoints can appear at any time. Existing fields are not renamed or removed without a new version. Ignore fields that you do not recognise. - Data in the API: the feeds, webhooks, and exports carry only the values that you see in the apps. For AIRaware: temperature (°C), relative humidity (%), average mVOC (ppb), SporeScore with its band, and the property HomeScore. Summary readings report one average value. Other raw sensor values (minimum and maximum, mVOC spread and trend, surface moisture, sample counts, condensation) are not included. For LEAKaware: property leak status and alarms are coming soon, under the same rule.
- Device status: the customer API does not report gateway or sensor connectivity, battery, or firmware details.
- Personal data: properties are identified by the platform property ID, your own
external_ref, the UPRN, the property name, and the town. Street addresses, postcodes, and map coordinates are not included. Useexternal_refor the UPRN to match properties to your own records.
Receiving webhooks
A signed-in organisation admin can register an HTTPS endpoint with
POST /api/v1/organizations/{organization}/webhooks to receive events (alert.created,
alert.acknowledged, alert.resolved, and ping for test deliveries) instead of polling. Each
delivery is a POST with a JSON body and these headers:
| Header | Value |
|---|---|
X-AIRaware-Event |
Event name, for example alert.created |
X-AIRaware-Delivery |
Unique delivery ID. Retries send the same ID. |
X-AIRaware-Timestamp |
Unix time (seconds) when the delivery was signed |
X-AIRaware-Signature |
sha256= + hex HMAC-SHA256 of "<timestamp>.<raw body>", keyed with your webhook secret |
To verify a delivery:
- Read the raw request body before any JSON parsing.
- Reject the request if
|now - X-AIRaware-Timestamp| > 300seconds (replay protection). - Compute
"sha256=" + hex(HMAC_SHA256(secret, timestamp + "." + raw_body)). - Compare it with
X-AIRaware-Signaturewith a constant-time comparison. - De-duplicate on
X-AIRaware-Delivery. A delivery can arrive more than once. - Reply
2xxfast, and do slow work asynchronously.
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Send your organisation API key as Authorization: Bearer <key>. An organisation admin creates keys in the web app (Profile > API access, or the organisation Integrations page). Keys are read-only: they work only on endpoints marked API key: works.
Integration feeds
Flat, Power BI-friendly read feeds for one organisation. Every row carries location_id, uprn and external_ref; timestamps are ISO-8601 UTC; every feed supports ?format=csv. Works with a read-only integration API key (integration:read).
List sensor readings (cursor-paginated)
requires authentication
Sensor readings for every sensor in the organisation, oldest first: temperature, relative humidity (the period average for summary rows), the period average mVOC and the day's SporeScore. from and to are required and may span at most 31 days per request. Page through with cursor = meta.next_cursor until it is null. Requires the list-devices permission.
API key: works. A read-only organisation API key (integration:read) can call this endpoint.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/integration/organizations/12/readings?from=2026-09-01&to=2026-09-30&cursor=WyIyMDI2LTA5LTAxIDAwOjE1OjAwIiw5MDAwMDFd&sensor_id=101&per_page=500&format=json&location_id=5001&uprn=100000000001&external_ref=PROP-000123&updated_since=2026-10-01T00%3A00%3A00Z" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/readings"
);
const params = {
"from": "2026-09-01",
"to": "2026-09-30",
"cursor": "WyIyMDI2LTA5LTAxIDAwOjE1OjAwIiw5MDAwMDFd",
"sensor_id": "101",
"per_page": "500",
"format": "json",
"location_id": "5001",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"updated_since": "2026-10-01T00:00:00Z",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"reading_id": 900001,
"reading_time": "2026-09-01T00:15:00Z",
"sensor_id": 101,
"sensor_device_id": "PUCK-EXAMPLE-0001",
"sensor_name": "Bedroom 1",
"room_label": "Bedroom",
"location_id": 5001,
"property_name": "Flat 3, 12 Example Street",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"temperature_c": 17.8,
"relative_humidity_pct": 71.4,
"mvoc_avg_ppb": 412.5,
"daily_sporescore": 4.35,
"updated_at": "2026-09-01T00:15:04Z"
}
],
"meta": {
"per_page": 100,
"has_more": true,
"next_cursor": "WyIyMDI2LTA5LTAxIDAwOjE1OjAwIiw5MDAwMDFd",
"from": "2026-09-01T00:00:00Z",
"to": "2026-09-30T23:59:59Z"
}
}
Example response (403, Organisation not accessible to this key):
{
"status": "error",
"message": "You do not have access to this organization."
}
Example response (422, Invalid parameters):
{
"status": "error",
"message": "Validation failed: The from field is required."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List daily per-sensor summaries
requires authentication
One row per sensor per UTC day: average temperature, relative humidity and mVOC, and the canonical daily SporeScore with its band. Each row also carries the property's outdoor daily weather (outdoor_temperature_avg_c, outdoor_relative_humidity_avg_pct, outdoor_specific_humidity_g_per_kg), the indoor specific humidity (indoor_specific_humidity_g_per_kg) and moisture_difference_g_per_kg = indoor minus outdoor specific humidity in g/kg (positive: indoor air holds more moisture than outside, i.e. moisture is being added indoors). Outdoor values come from a weather archive that lags 2-5 days: they are null for recent days not yet available, for properties without a known location, or when weather is temporarily unavailable; moisture_difference_g_per_kg is null when either side is null. Indoor specific humidity is still returned when outdoor data is missing. Temperatures are degrees Celsius, humidity is a percentage. from/to are required (dates, max 366 days). Page-paginated. Requires the list-devices permission.
API key: works. A read-only organisation API key (integration:read) can call this endpoint.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/integration/organizations/12/daily?from=2026-09-01&to=2026-09-30&sensor_id=101&page=1&per_page=500&format=json&location_id=5001&uprn=100000000001&external_ref=PROP-000123&updated_since=2026-10-01T00%3A00%3A00Z" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/daily"
);
const params = {
"from": "2026-09-01",
"to": "2026-09-30",
"sensor_id": "101",
"page": "1",
"per_page": "500",
"format": "json",
"location_id": "5001",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"updated_since": "2026-10-01T00:00:00Z",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"date": "2026-09-01",
"sensor_id": 101,
"sensor_device_id": "PUCK-EXAMPLE-0001",
"sensor_name": "Bedroom 1",
"room_label": "Bedroom",
"location_id": 5001,
"property_name": "Flat 3, 12 Example Street",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"temperature_avg_c": 17.6,
"relative_humidity_avg_pct": 70.3,
"mvoc_avg_ppb": 412.5,
"sporescore": 4.35,
"sporescore_band": "moderate_risk",
"outdoor_temperature_avg_c": 12.4,
"outdoor_relative_humidity_avg_pct": 81.5,
"outdoor_specific_humidity_g_per_kg": 6.9,
"indoor_specific_humidity_g_per_kg": 8.6,
"moisture_difference_g_per_kg": 1.7,
"updated_at": "2026-09-02T02:10:00Z"
}
],
"meta": {
"current_page": 1,
"per_page": 100,
"total": 2790,
"last_page": 28
}
}
Example response (403, Organisation not accessible to this key):
{
"status": "error",
"message": "You do not have access to this organization."
}
Example response (422, Invalid parameters):
{
"status": "error",
"message": "Validation failed: The from field is required."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List properties with current risk
requires authentication
One row per property in the organisation: name, town, UPRN, external_ref, latest Home Risk score and band, highest SporeScore, sensor count and open alert summary. Page-paginated. Requires the list-devices permission.
API key: works. A read-only organisation API key (integration:read) can call this endpoint.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/integration/organizations/12/properties?page=1&per_page=500&format=json&location_id=5001&uprn=100000000001&external_ref=PROP-000123&updated_since=2026-10-01T00%3A00%3A00Z" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/properties"
);
const params = {
"page": "1",
"per_page": "500",
"format": "json",
"location_id": "5001",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"updated_since": "2026-10-01T00:00:00Z",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"location_id": 5001,
"property_name": "Flat 3, 12 Example Street",
"city": "Exampleton",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"home_risk_score": 62,
"home_risk_band": "High",
"home_risk_level": "high",
"home_risk_score_date": "2026-10-05",
"max_sporescore": 6.1,
"sensors_count": 3,
"open_alerts_count": 1,
"highest_open_alert_severity": "high",
"updated_at": "2026-09-14T10:02:11Z"
}
],
"meta": {
"current_page": 1,
"per_page": 100,
"total": 240,
"last_page": 3
}
}
Example response (403, Organisation not accessible to this key):
{
"status": "error",
"message": "You do not have access to this organization."
}
Example response (422, Invalid parameters):
{
"status": "error",
"message": "Validation failed: The from field is required."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List mould alerts
requires authentication
Mould alerts for the organisation, oldest first, with status (unacknowledged / acknowledged / resolved) and property identifiers. Page-paginated. from/to filter on created_at. Requires the list-alerts permission.
API key: works. A read-only organisation API key (integration:read) can call this endpoint.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/integration/organizations/12/alerts?from=2026-09-01&to=2026-09-30&status=open&severity=high%2Ccritical&sensor_id=101&page=1&per_page=500&format=json&location_id=5001&uprn=100000000001&external_ref=PROP-000123&updated_since=2026-10-01T00%3A00%3A00Z" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/alerts"
);
const params = {
"from": "2026-09-01",
"to": "2026-09-30",
"status": "open",
"severity": "high,critical",
"sensor_id": "101",
"page": "1",
"per_page": "500",
"format": "json",
"location_id": "5001",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"updated_since": "2026-10-01T00:00:00Z",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"alert_id": 7001,
"alert_type": "high_mould_risk",
"severity": "high",
"status": "acknowledged",
"message": "High mould risk detected in Bedroom 1.",
"sensor_id": 101,
"sensor_device_id": "PUCK-EXAMPLE-0001",
"sensor_name": "Bedroom 1",
"room_label": "Bedroom",
"location_id": 5001,
"property_name": "Flat 3, 12 Example Street",
"uprn": "100000000001",
"external_ref": "PROP-000123",
"triggered_at": "2026-09-20T06:00:00Z",
"acknowledged_at": "2026-09-20T09:12:45Z",
"resolved_at": null,
"resolution_status": null,
"created_at": "2026-09-20T06:00:02Z",
"updated_at": "2026-09-20T09:12:45Z"
}
],
"meta": {
"current_page": 1,
"per_page": 100,
"total": 1,
"last_page": 1
}
}
Example response (403, Organisation not accessible to this key):
{
"status": "error",
"message": "You do not have access to this organization."
}
Example response (422, Invalid parameters):
{
"status": "error",
"message": "Validation failed: The from field is required."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Integration API keys
Read-only API keys (Sanctum tokens with the integration:read ability) for Power BI, housing management systems and data warehouses. Each key belongs to a dedicated service user inside one organisation, so it only ever sees that organisation's data, and can only call GET/HEAD on the read endpoints. Managed by organisation, reseller or system admins with a user session; an integration key cannot manage keys.
List integration API keys
requires authentication
All integration clients for the organisation with their current key metadata (abilities, expiry, last used). The key itself is never returned again after creation.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"id": 880,
"name": "Power BI - asset team",
"organization_id": 12,
"organization": {
"id": 12,
"name": "Example Housing"
},
"status": "active",
"created_by": {
"id": 41,
"name": "Alex Admin",
"email": "alex.admin@example.com"
},
"created_at": "2026-09-01T10:00:00+00:00",
"updated_at": "2026-09-01T10:00:00+00:00",
"token": {
"id": 1550,
"abilities": [
"integration:read"
],
"expires_at": "2027-02-28T10:00:00+00:00",
"last_used_at": "2026-10-06T06:00:12+00:00",
"created_at": "2026-09-01T10:00:00+00:00",
"is_expired": false,
"expires_in_days": 145,
"expiry_warning": false
}
}
]
}
Example response (403):
{
"status": "UNAUTHORIZED",
"data": {
"message": "Only organisation, reseller or system admins can manage integration clients."
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Rate limits and usage of the API keys
requires authentication
The per-key rate limits and how much of them each active key has used in the current minute and hour, with the time each window resets. Read from the same counters that enforce the limits. Only for organisations with the API add-on.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/usage" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/usage"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"limits": {
"per_minute": 60,
"per_hour": 1000
},
"keys": [
{
"client_id": 880,
"token_id": 4512,
"minute": {
"limit": 60,
"used": 3,
"remaining": 57,
"resets_in": 41,
"resets_at": "2026-11-17T12:01:00+00:00"
},
"hour": {
"limit": 1000,
"used": 12,
"remaining": 988,
"resets_in": 2100,
"resets_at": "2026-11-17T12:35:00+00:00"
}
}
],
"generated_at": "2026-11-17T12:00:19+00:00"
}
}
Example response (403):
{
"message": "The customer API is not enabled for this organisation yet.",
"error": "customer_api_disabled"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create an integration API key
requires authentication
Creates an integration client and returns its key in plain_text_token ONCE — store it in your secret manager. Send it as Authorization: Bearer <key>.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Power BI - asset team\",
\"expires_in_days\": 180
}"
const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Power BI - asset team",
"expires_in_days": 180
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"status": "success",
"data": {
"client": {
"id": 880,
"name": "Power BI - asset team",
"organization_id": 12,
"organization": {
"id": 12,
"name": "Example Housing"
},
"status": "active",
"created_by": {
"id": 41,
"name": "Alex Admin",
"email": "alex.admin@example.com"
},
"created_at": "2026-10-06T09:00:00+00:00",
"updated_at": "2026-10-06T09:00:00+00:00",
"token": {
"id": 1550,
"abilities": [
"integration:read"
],
"expires_at": "2027-04-04T09:00:00+00:00",
"last_used_at": null,
"created_at": "2026-10-06T09:00:00+00:00",
"is_expired": false,
"expires_in_days": 180,
"expiry_warning": false
}
},
"plain_text_token": "1550|example-api-key-shown-only-once"
}
}
Example response (403):
{
"message": "The customer API is not enabled for this organisation yet.",
"error": "customer_api_disabled"
}
Example response (422):
{
"message": "This organisation already has the maximum number of active API keys (10).",
"error": "key_limit_reached",
"limit": "per_org"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoke an integration API key
requires authentication
Deletes the client's keys immediately and marks the client revoked. Calls with the old key start returning 401 straight away.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request DELETE \
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/880" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/880"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"client": {
"id": 880,
"name": "Power BI - asset team",
"organization_id": 12,
"status": "revoked",
"token": null
},
"tokens_revoked": 1
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Rotate an integration API key
requires authentication
Issues a new key for the client (returned ONCE in plain_text_token) and revokes the previous one. Update the consuming system straight after rotating.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/880/rotate" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"expires_in_days\": 180
}"
const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/integration-clients/880/rotate"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"expires_in_days": 180
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"client": {
"id": 880,
"name": "Power BI - asset team",
"organization_id": 12,
"organization": {
"id": 12,
"name": "Example Housing"
},
"status": "active",
"created_by": {
"id": 41,
"name": "Alex Admin",
"email": "alex.admin@example.com"
},
"created_at": "2026-10-06T09:00:00+00:00",
"updated_at": "2026-10-06T09:00:00+00:00",
"token": {
"id": 1550,
"abilities": [
"integration:read"
],
"expires_at": "2027-04-04T09:00:00+00:00",
"last_used_at": null,
"created_at": "2026-10-06T09:00:00+00:00",
"is_expired": false,
"expires_in_days": 180,
"expiry_warning": false
}
},
"plain_text_token": "1550|example-api-key-shown-only-once"
}
}
Example response (422):
{
"status": "error",
"message": "This integration client has been revoked. Create a new one instead."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Webhooks
Push notifications of alert events to your HTTPS endpoint, signed with HMAC-SHA256. See the Webhooks section of the introduction for signature verification. Organisation admins (and reseller/system admins) only; needs a user session or a full-access token, not an integration:read key.
List webhooks
requires authentication
All webhook endpoints for the organisation plus the event names you can subscribe to. Secrets are never returned, only a 4-character hint.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/webhooks" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"webhooks": [
{
"id": 3,
"organization_id": 12,
"name": "Housing system alerts",
"url": "https://hooks.example-housing.org/airaware",
"events": [
"alert.created",
"alert.resolved"
],
"is_active": true,
"failure_count": 0,
"disabled_at": null,
"disabled_reason": null,
"last_success_at": "2026-10-05T14:02:11+00:00",
"last_failure_at": null,
"secret_hint": "…9f3a",
"created_at": "2026-09-01T10:00:00+00:00",
"updated_at": "2026-10-05T14:02:11+00:00"
}
],
"available_events": [
"alert.created",
"alert.acknowledged",
"alert.resolved"
]
}
}
Example response (403):
{
"status": "error",
"message": "Only organisation administrators can manage integrations."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a webhook
requires authentication
Register an HTTPS endpoint for one or more events (alert.created, alert.acknowledged, alert.resolved). The signing secret is returned ONCE in this response — store it securely. URLs must be public HTTPS (private/internal addresses are rejected). Max 10 webhooks per organisation.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Housing system alerts\",
\"url\": \"https:\\/\\/hooks.example-housing.org\\/airaware\",
\"events\": [
\"alert.created\",
\"alert.resolved\"
]
}"
const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Housing system alerts",
"url": "https:\/\/hooks.example-housing.org\/airaware",
"events": [
"alert.created",
"alert.resolved"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"status": "success",
"data": {
"id": 3,
"organization_id": 12,
"name": "Housing system alerts",
"url": "https://hooks.example-housing.org/airaware",
"events": [
"alert.created",
"alert.resolved"
],
"is_active": true,
"failure_count": 0,
"disabled_at": null,
"disabled_reason": null,
"last_success_at": null,
"last_failure_at": null,
"secret_hint": "…9f3a",
"created_at": "2026-10-06T09:00:00+00:00",
"updated_at": "2026-10-06T09:00:00+00:00",
"secret": "whsec_example-secret-shown-only-once"
}
}
Example response (403):
{
"status": "error",
"message": "Only organisation administrators can manage integrations."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a webhook
requires authentication
Change the name, URL or events, or re-enable (is_active: true) a webhook that was auto-disabled after 20 consecutive failed deliveries. Re-enabling resets the failure counter.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request PUT \
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"Housing system alerts\",
\"url\": \"https:\\/\\/hooks.example-housing.org\\/airaware-v2\",
\"events\": [
\"alert.created\",
\"alert.acknowledged\",
\"alert.resolved\"
],
\"is_active\": true
}"
const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "Housing system alerts",
"url": "https:\/\/hooks.example-housing.org\/airaware-v2",
"events": [
"alert.created",
"alert.acknowledged",
"alert.resolved"
],
"is_active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
x-request-id: 6e08da44-d12e-4b92-8b9b-7e049a617eea
vary: Origin
x-xss-protection: 1; mode=block
content-security-policy-report-only: default-src 'self' *.air-aware.co; script-src 'self' 'unsafe-inline' 'unsafe-eval' js.stripe.com app-cdn.clickup.com blob:; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: *.air-aware.co *.basemaps.cartocdn.com basemaps.cartocdn.com *.tile.openstreetmap.org *.amazonaws.com *.your-objectstorage.com *.arcgisonline.com; font-src 'self' data:; connect-src 'self' *.air-aware.co *.basemaps.cartocdn.com basemaps.cartocdn.com *.sentry.io api.stripe.com *.tile.openstreetmap.org *.amazonaws.com *.your-objectstorage.com *.pusher.com wss://*.pusher.com *.arcgisonline.com stats.uptimerobot.com; frame-src 'self' js.stripe.com *.air-aware.co *.clickup.com *.your-objectstorage.com; worker-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'self'
{
"message": "Unauthenticated",
"status": "error"
}
Example response (403):
{
"status": "error",
"message": "Only organisation administrators can manage integrations."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a webhook
requires authentication
Stops all deliveries to this endpoint and deletes it.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request DELETE \
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"deleted": true
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send a test (ping) delivery
requires authentication
Sends a signed ping event to the endpoint now and reports the HTTP outcome. Works on disabled webhooks and does not change the failure counter, so you can verify a fix before re-enabling.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/test" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/test"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"success": true,
"status_code": 200,
"duration_ms": 162,
"error": null,
"delivery_id": "6f1c2a9e-0000-4000-8000-000000000002"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Rotate the signing secret
requires authentication
Generates a new signing secret and returns it ONCE. Deliveries are signed with the new secret immediately, so update your receiver at the same time.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/rotate-secret" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/rotate-secret"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"id": 3,
"secret_hint": "…1c7e",
"secret": "whsec_example-secret-shown-only-once"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List recent deliveries
requires authentication
Delivery log for a webhook, newest first (kept 30 days): event, attempt number, HTTP status, duration, error and the exact payload sent. Failed deliveries are retried after 1 min, 5 min, 30 min, 2 h and 6 h (6 attempts in total) with the same delivery_id.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/deliveries?per_page=1&event=n&success=" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/webhooks/3/deliveries"
);
const params = {
"per_page": "1",
"event": "n",
"success": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": [
{
"id": 4410,
"webhook_id": 3,
"delivery_id": "6f1c2a9e-0000-4000-8000-000000000001",
"event": "alert.created",
"attempt": 1,
"success": true,
"status_code": 200,
"duration_ms": 184,
"error": null,
"response_excerpt": "{\"ok\":true}",
"delivered_at": "2026-10-05T14:02:11+00:00",
"payload": {
"schema_version": 1,
"event": "alert.created",
"delivery_id": "6f1c2a9e-0000-4000-8000-000000000001",
"occurred_at": "2026-10-05T14:02:10Z",
"organization": {
"id": 12,
"name": "Riverside Housing Trust"
},
"alert": {
"id": 7001,
"type": "high_mould_risk",
"severity": "high",
"status": "unacknowledged",
"title": "High mould risk",
"message": "High mould risk detected in Bedroom 1.",
"created_at": "2026-10-05T14:02:09Z",
"triggered_at": "2026-10-05T14:00:00Z",
"acknowledged_at": null,
"resolved_at": null,
"resolution_status": null,
"resolution_notes": null
},
"property": {
"id": 5001,
"name": "Flat 3, 12 Example Street",
"city": "Exampleton",
"county": null,
"uprn": "100000000001",
"external_ref": "PROP-000123"
},
"sensor": {
"id": 101,
"device_id": "PUCK-EXAMPLE-0001",
"name": "Bedroom 1",
"room": "Bedroom"
}
}
}
],
"meta": {
"current_page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Data export
Full organisation data export (data exit): one ZIP of CSV files (properties, gateways, sensors, readings, daily_scores, alerts, alert_notes) built in the background. Organisation admins (and reseller/system admins) only; needs a user session or a full-access token, not an integration:read key.
List exports
requires authentication
The 50 most recent exports for the organisation with status (queued, running, complete, failed) and per-file row counts. Export files are deleted 7 days after completion.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/exports" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/exports"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, No exports yet):
{
"status": "success",
"data": []
}
Example response (403):
{
"status": "error",
"message": "Only organisation administrators can manage integrations."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Start an export
requires authentication
Queues a full export and returns it with status queued (HTTP 202). Poll the export until status is complete, then download it. Only one export per organisation can run at a time (409 otherwise).
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/organizations/12/exports" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/exports"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (202):
{
"status": "success",
"data": {
"id": 42,
"organization_id": 12,
"requested_by": 3051,
"status": "queued",
"file_size": null,
"row_counts": null,
"error": null,
"started_at": null,
"completed_at": null,
"expires_at": null,
"created_at": "2026-10-06T09:00:00+00:00",
"downloadable": false
}
}
Example response (403):
{
"status": "error",
"message": "Only organisation administrators can manage integrations."
}
Example response (409):
{
"status": "error",
"message": "An export for this organisation is already in progress.",
"data": {
"id": 41,
"status": "running"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get an export
requires authentication
Status and row counts of one export. downloadable is true once the ZIP is ready and not yet expired.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/exports/41" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/exports/41"
);
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"id": 41,
"organization_id": 12,
"requested_by": 3051,
"status": "complete",
"file_size": 18734212,
"row_counts": {
"properties.csv": 240,
"sensors.csv": 702,
"readings.csv": 1834220,
"daily_scores.csv": 251004,
"alerts.csv": 1180,
"alert_notes.csv": 312
},
"error": null,
"started_at": "2026-10-06T09:00:03+00:00",
"completed_at": "2026-10-06T09:06:41+00:00",
"expires_at": "2026-10-13T09:06:41+00:00",
"created_at": "2026-10-06T09:00:00+00:00",
"downloadable": true
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Download an export
requires authentication
Redirects (302) to a short-lived (10 minute) signed download URL for the ZIP. Pass redirect=0 to get the URL as JSON instead. 409 if the export is not complete, 410 if it has expired.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request GET \
--get "https://staging-app.air-aware.co/api/v1/organizations/12/exports/41/download?redirect=" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://staging-app.air-aware.co/api/v1/organizations/12/exports/41/download"
);
const params = {
"redirect": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200, With redirect=0):
{
"status": "success",
"data": {
"url": "https://storage.example.com/exports/org-12-export-41.zip?signature=example",
"expires_at": "2026-10-06T09:20:00+00:00"
}
}
Example response (409):
{
"status": "error",
"message": "This export is not available for download."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Property references (signed-in admins)
Map your properties to your housing-system identifiers. These endpoints change data, so they need a signed-in organisation admin session in the web app. Read-only API keys cannot call them.
Bulk-set property UPRN / external_ref
requires authentication
Map your properties to your housing-system identifiers in bulk (max 5000 rows). Send JSON {"rows": [...]}, a multipart CSV file, or a text/csv body with columns location_id (or name + postcode), uprn, external_ref. An absent key or empty CSV cell leaves a value unchanged; an explicit JSON null clears it. external_ref must be unique within the organisation. Use dry_run=true to preview. Needs a signed-in organisation admin session, not an API key: API keys are read-only and get 403 integration_route_not_allowed.
API key: not available. This endpoint needs a signed-in user session in the AIRaware web app. An API key gets 403 integration_route_not_allowed.
Example request:
curl --request POST \
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/properties/references?dry_run=1" \
--header "Authorization: Bearer {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"rows\": [
{
\"location_id\": 5001,
\"name\": \"Flat 3, 12 Example Street\",
\"postcode\": \"AB1 2CD\",
\"uprn\": \"100000000001\",
\"external_ref\": \"PROP-000123\"
}
]
}"
const url = new URL(
"https://staging-app.air-aware.co/api/v1/integration/organizations/12/properties/references"
);
const params = {
"dry_run": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rows": [
{
"location_id": 5001,
"name": "Flat 3, 12 Example Street",
"postcode": "AB1 2CD",
"uprn": "100000000001",
"external_ref": "PROP-000123"
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": "success",
"data": {
"dry_run": false,
"summary": {
"updated": 1,
"matched": 0,
"not_found": 1,
"ambiguous": 0,
"invalid": 0
},
"results": [
{
"row": 1,
"status": "updated",
"location_id": 5001,
"uprn": "100000000001",
"external_ref": "PROP-000123"
},
{
"row": 2,
"status": "not_found",
"location_id": null
}
]
}
}
Example response (403):
{
"status": "error",
"message": "Only organisation admins can import property references."
}
Example response (422):
{
"status": "error",
"message": "Too many rows: maximum is 5000 per request."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.