{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/staging-app.air-aware.co"
        }
    ],
    "info": {
        "name": "Altered Carbon Platform API",
        "_postman_id": "791576bd-5657-43b9-bcf7-6150570652d4",
        "description": "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.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Integration feeds",
            "description": "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).",
            "item": [
                {
                    "name": "List sensor readings (cursor-paginated)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/integration\/organizations\/:organization\/readings",
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2026-09-01",
                                    "description": "Start of the window (inclusive), ISO-8601 instant or date, UTC.",
                                    "disabled": false
                                },
                                {
                                    "key": "to",
                                    "value": "2026-09-30",
                                    "description": "End of the window (inclusive). A bare date covers the whole day. Max 31 days after `from`.",
                                    "disabled": false
                                },
                                {
                                    "key": "cursor",
                                    "value": "WyIyMDI2LTA5LTAxIDAwOjE1OjAwIiw5MDAwMDFd",
                                    "description": "Opaque cursor from the previous page's meta.next_cursor (or the X-Next-Cursor header for CSV). Omit for the first page.",
                                    "disabled": false
                                },
                                {
                                    "key": "sensor_id",
                                    "value": "101",
                                    "description": "Only readings from this sensor id.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "500",
                                    "description": "Rows per page, 1-1000. Default 100.",
                                    "disabled": false
                                },
                                {
                                    "key": "format",
                                    "value": "json",
                                    "description": "Response format: `json` (default) or `csv`. CSV moves pagination to response headers.",
                                    "disabled": false
                                },
                                {
                                    "key": "location_id",
                                    "value": "5001",
                                    "description": "Only rows for this Platform property id.",
                                    "disabled": false
                                },
                                {
                                    "key": "uprn",
                                    "value": "100000000001",
                                    "description": "Only rows for the property with this UPRN (up to 12 digits).",
                                    "disabled": false
                                },
                                {
                                    "key": "external_ref",
                                    "value": "PROP-000123",
                                    "description": "Only rows for the property with this housing-system reference.",
                                    "disabled": false
                                },
                                {
                                    "key": "updated_since",
                                    "value": "2026-10-01T00%3A00%3A00Z",
                                    "description": "Only rows created or changed at\/after this ISO-8601 instant or date (UTC) \u2014 use for incremental refresh.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/integration\/organizations\/:organization\/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",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id. The key must belong to a user with access to this organisation."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**API key: works.** A read-only organisation API key (`integration:read`) can call this endpoint."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"reading_id\": 900001,\n      \"reading_time\": \"2026-09-01T00:15:00Z\",\n      \"sensor_id\": 101,\n      \"sensor_device_id\": \"PUCK-EXAMPLE-0001\",\n      \"sensor_name\": \"Bedroom 1\",\n      \"room_label\": \"Bedroom\",\n      \"location_id\": 5001,\n      \"property_name\": \"Flat 3, 12 Example Street\",\n      \"uprn\": \"100000000001\",\n      \"external_ref\": \"PROP-000123\",\n      \"temperature_c\": 17.8,\n      \"relative_humidity_pct\": 71.4,\n      \"mvoc_avg_ppb\": 412.5,\n      \"daily_sporescore\": 4.35,\n      \"updated_at\": \"2026-09-01T00:15:04Z\"\n    }\n  ],\n  \"meta\": {\n    \"per_page\": 100,\n    \"has_more\": true,\n    \"next_cursor\": \"WyIyMDI2LTA5LTAxIDAwOjE1OjAwIiw5MDAwMDFd\",\n    \"from\": \"2026-09-01T00:00:00Z\",\n    \"to\": \"2026-09-30T23:59:59Z\"\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"You do not have access to this organization.\"}",
                            "name": "Organisation not accessible to this key"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"Validation failed: The from field is required.\"}",
                            "name": "Invalid parameters"
                        }
                    ]
                },
                {
                    "name": "List daily per-sensor summaries",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/integration\/organizations\/:organization\/daily",
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2026-09-01",
                                    "description": "First day (inclusive), YYYY-MM-DD (UTC).",
                                    "disabled": false
                                },
                                {
                                    "key": "to",
                                    "value": "2026-09-30",
                                    "description": "Last day (inclusive), YYYY-MM-DD (UTC). Max 366 days after `from`.",
                                    "disabled": false
                                },
                                {
                                    "key": "sensor_id",
                                    "value": "101",
                                    "description": "Only rows for this sensor id.",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number (1-based). Repeat until it equals meta.last_page.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "500",
                                    "description": "Rows per page, 1-1000. Default 100.",
                                    "disabled": false
                                },
                                {
                                    "key": "format",
                                    "value": "json",
                                    "description": "Response format: `json` (default) or `csv`. CSV moves pagination to response headers.",
                                    "disabled": false
                                },
                                {
                                    "key": "location_id",
                                    "value": "5001",
                                    "description": "Only rows for this Platform property id.",
                                    "disabled": false
                                },
                                {
                                    "key": "uprn",
                                    "value": "100000000001",
                                    "description": "Only rows for the property with this UPRN (up to 12 digits).",
                                    "disabled": false
                                },
                                {
                                    "key": "external_ref",
                                    "value": "PROP-000123",
                                    "description": "Only rows for the property with this housing-system reference.",
                                    "disabled": false
                                },
                                {
                                    "key": "updated_since",
                                    "value": "2026-10-01T00%3A00%3A00Z",
                                    "description": "Only rows created or changed at\/after this ISO-8601 instant or date (UTC) \u2014 use for incremental refresh.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/integration\/organizations\/:organization\/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",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id. The key must belong to a user with access to this organisation."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**API key: works.** A read-only organisation API key (`integration:read`) can call this endpoint."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"date\": \"2026-09-01\",\n      \"sensor_id\": 101,\n      \"sensor_device_id\": \"PUCK-EXAMPLE-0001\",\n      \"sensor_name\": \"Bedroom 1\",\n      \"room_label\": \"Bedroom\",\n      \"location_id\": 5001,\n      \"property_name\": \"Flat 3, 12 Example Street\",\n      \"uprn\": \"100000000001\",\n      \"external_ref\": \"PROP-000123\",\n      \"temperature_avg_c\": 17.6,\n      \"relative_humidity_avg_pct\": 70.3,\n      \"mvoc_avg_ppb\": 412.5,\n      \"sporescore\": 4.35,\n      \"sporescore_band\": \"moderate_risk\",\n      \"outdoor_temperature_avg_c\": 12.4,\n      \"outdoor_relative_humidity_avg_pct\": 81.5,\n      \"outdoor_specific_humidity_g_per_kg\": 6.9,\n      \"indoor_specific_humidity_g_per_kg\": 8.6,\n      \"moisture_difference_g_per_kg\": 1.7,\n      \"updated_at\": \"2026-09-02T02:10:00Z\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 100,\n    \"total\": 2790,\n    \"last_page\": 28\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"You do not have access to this organization.\"}",
                            "name": "Organisation not accessible to this key"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"Validation failed: The from field is required.\"}",
                            "name": "Invalid parameters"
                        }
                    ]
                },
                {
                    "name": "List properties with current risk",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/integration\/organizations\/:organization\/properties",
                            "query": [
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number (1-based). Repeat until it equals meta.last_page.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "500",
                                    "description": "Rows per page, 1-1000. Default 100.",
                                    "disabled": false
                                },
                                {
                                    "key": "format",
                                    "value": "json",
                                    "description": "Response format: `json` (default) or `csv`. CSV moves pagination to response headers.",
                                    "disabled": false
                                },
                                {
                                    "key": "location_id",
                                    "value": "5001",
                                    "description": "Only rows for this Platform property id.",
                                    "disabled": false
                                },
                                {
                                    "key": "uprn",
                                    "value": "100000000001",
                                    "description": "Only rows for the property with this UPRN (up to 12 digits).",
                                    "disabled": false
                                },
                                {
                                    "key": "external_ref",
                                    "value": "PROP-000123",
                                    "description": "Only rows for the property with this housing-system reference.",
                                    "disabled": false
                                },
                                {
                                    "key": "updated_since",
                                    "value": "2026-10-01T00%3A00%3A00Z",
                                    "description": "Only rows created or changed at\/after this ISO-8601 instant or date (UTC) \u2014 use for incremental refresh.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/integration\/organizations\/:organization\/properties?page=1&per_page=500&format=json&location_id=5001&uprn=100000000001&external_ref=PROP-000123&updated_since=2026-10-01T00%3A00%3A00Z",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id. The key must belong to a user with access to this organisation."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**API key: works.** A read-only organisation API key (`integration:read`) can call this endpoint."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"location_id\": 5001,\n      \"property_name\": \"Flat 3, 12 Example Street\",\n      \"city\": \"Exampleton\",\n      \"uprn\": \"100000000001\",\n      \"external_ref\": \"PROP-000123\",\n      \"home_risk_score\": 62,\n      \"home_risk_band\": \"High\",\n      \"home_risk_level\": \"high\",\n      \"home_risk_score_date\": \"2026-10-05\",\n      \"max_sporescore\": 6.1,\n      \"sensors_count\": 3,\n      \"open_alerts_count\": 1,\n      \"highest_open_alert_severity\": \"high\",\n      \"updated_at\": \"2026-09-14T10:02:11Z\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 100,\n    \"total\": 240,\n    \"last_page\": 3\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"You do not have access to this organization.\"}",
                            "name": "Organisation not accessible to this key"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"Validation failed: The from field is required.\"}",
                            "name": "Invalid parameters"
                        }
                    ]
                },
                {
                    "name": "List mould alerts",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/integration\/organizations\/:organization\/alerts",
                            "query": [
                                {
                                    "key": "from",
                                    "value": "2026-09-01",
                                    "description": "Only alerts created at\/after this instant or date (UTC).",
                                    "disabled": false
                                },
                                {
                                    "key": "to",
                                    "value": "2026-09-30",
                                    "description": "Only alerts created at\/before this instant or date (a bare date covers the whole day).",
                                    "disabled": false
                                },
                                {
                                    "key": "status",
                                    "value": "open",
                                    "description": "Filter by state. `open` and `active` both mean not resolved.",
                                    "disabled": false
                                },
                                {
                                    "key": "severity",
                                    "value": "high%2Ccritical",
                                    "description": "Comma-separated severities.",
                                    "disabled": false
                                },
                                {
                                    "key": "sensor_id",
                                    "value": "101",
                                    "description": "Only alerts raised by this sensor id.",
                                    "disabled": false
                                },
                                {
                                    "key": "page",
                                    "value": "1",
                                    "description": "Page number (1-based). Repeat until it equals meta.last_page.",
                                    "disabled": false
                                },
                                {
                                    "key": "per_page",
                                    "value": "500",
                                    "description": "Rows per page, 1-1000. Default 100.",
                                    "disabled": false
                                },
                                {
                                    "key": "format",
                                    "value": "json",
                                    "description": "Response format: `json` (default) or `csv`. CSV moves pagination to response headers.",
                                    "disabled": false
                                },
                                {
                                    "key": "location_id",
                                    "value": "5001",
                                    "description": "Only rows for this Platform property id.",
                                    "disabled": false
                                },
                                {
                                    "key": "uprn",
                                    "value": "100000000001",
                                    "description": "Only rows for the property with this UPRN (up to 12 digits).",
                                    "disabled": false
                                },
                                {
                                    "key": "external_ref",
                                    "value": "PROP-000123",
                                    "description": "Only rows for the property with this housing-system reference.",
                                    "disabled": false
                                },
                                {
                                    "key": "updated_since",
                                    "value": "2026-10-01T00%3A00%3A00Z",
                                    "description": "Only rows created or changed at\/after this ISO-8601 instant or date (UTC) \u2014 use for incremental refresh.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/integration\/organizations\/:organization\/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",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id. The key must belong to a user with access to this organisation."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**API key: works.** A read-only organisation API key (`integration:read`) can call this endpoint."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"alert_id\": 7001,\n      \"alert_type\": \"high_mould_risk\",\n      \"severity\": \"high\",\n      \"status\": \"acknowledged\",\n      \"message\": \"High mould risk detected in Bedroom 1.\",\n      \"sensor_id\": 101,\n      \"sensor_device_id\": \"PUCK-EXAMPLE-0001\",\n      \"sensor_name\": \"Bedroom 1\",\n      \"room_label\": \"Bedroom\",\n      \"location_id\": 5001,\n      \"property_name\": \"Flat 3, 12 Example Street\",\n      \"uprn\": \"100000000001\",\n      \"external_ref\": \"PROP-000123\",\n      \"triggered_at\": \"2026-09-20T06:00:00Z\",\n      \"acknowledged_at\": \"2026-09-20T09:12:45Z\",\n      \"resolved_at\": null,\n      \"resolution_status\": null,\n      \"created_at\": \"2026-09-20T06:00:02Z\",\n      \"updated_at\": \"2026-09-20T09:12:45Z\"\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 100,\n    \"total\": 1,\n    \"last_page\": 1\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"You do not have access to this organization.\"}",
                            "name": "Organisation not accessible to this key"
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"Validation failed: The from field is required.\"}",
                            "name": "Invalid parameters"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Integration API keys",
            "description": "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.",
            "item": [
                {
                    "name": "List integration API keys",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/integration-clients",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/integration-clients",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "All integration clients for the organisation with their current key metadata (abilities, expiry, last used). The key itself is never returned again after creation.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"id\": 880,\n      \"name\": \"Power BI - asset team\",\n      \"organization_id\": 12,\n      \"organization\": { \"id\": 12, \"name\": \"Example Housing\" },\n      \"status\": \"active\",\n      \"created_by\": { \"id\": 41, \"name\": \"Alex Admin\", \"email\": \"alex.admin@example.com\" },\n      \"created_at\": \"2026-09-01T10:00:00+00:00\",\n      \"updated_at\": \"2026-09-01T10:00:00+00:00\",\n      \"token\": {\n        \"id\": 1550,\n        \"abilities\": [\"integration:read\"],\n        \"expires_at\": \"2027-02-28T10:00:00+00:00\",\n        \"last_used_at\": \"2026-10-06T06:00:12+00:00\",\n        \"created_at\": \"2026-09-01T10:00:00+00:00\",\n        \"is_expired\": false,\n        \"expires_in_days\": 145,\n        \"expiry_warning\": false\n      }\n    }\n  ]\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"UNAUTHORIZED\",\"data\":{\"message\":\"Only organisation, reseller or system admins can manage integration clients.\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Rate limits and usage of the API keys",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/integration-clients\/usage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/integration-clients\/usage",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"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\"}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"message\":\"The customer API is not enabled for this organisation yet.\",\"error\":\"customer_api_disabled\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create an integration API key",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/integration-clients",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/integration-clients",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Power BI - asset team\",\"expires_in_days\":180}"
                        },
                        "description": "Creates an integration client and returns its key in `plain_text_token` ONCE \u2014 store it in your secret manager. Send it as `Authorization: Bearer <key>`.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"client\": {\n      \"id\": 880,\n      \"name\": \"Power BI - asset team\",\n      \"organization_id\": 12,\n      \"organization\": { \"id\": 12, \"name\": \"Example Housing\" },\n      \"status\": \"active\",\n      \"created_by\": { \"id\": 41, \"name\": \"Alex Admin\", \"email\": \"alex.admin@example.com\" },\n      \"created_at\": \"2026-10-06T09:00:00+00:00\",\n      \"updated_at\": \"2026-10-06T09:00:00+00:00\",\n      \"token\": {\n        \"id\": 1550,\n        \"abilities\": [\"integration:read\"],\n        \"expires_at\": \"2027-04-04T09:00:00+00:00\",\n        \"last_used_at\": null,\n        \"created_at\": \"2026-10-06T09:00:00+00:00\",\n        \"is_expired\": false,\n        \"expires_in_days\": 180,\n        \"expiry_warning\": false\n      }\n    },\n    \"plain_text_token\": \"1550|example-api-key-shown-only-once\"\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"message\":\"The customer API is not enabled for this organisation yet.\",\"error\":\"customer_api_disabled\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"message\":\"This organisation already has the maximum number of active API keys (10).\",\"error\":\"key_limit_reached\",\"limit\":\"per_org\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Revoke an integration API key",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/integration-clients\/:client",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/integration-clients\/:client",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "client",
                                    "key": "client",
                                    "value": "880",
                                    "description": "Integration client id (within this organisation)."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Deletes the client's keys immediately and marks the client revoked. Calls with the old key start returning 401 straight away.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"success\",\"data\":{\"client\":{\"id\":880,\"name\":\"Power BI - asset team\",\"organization_id\":12,\"status\":\"revoked\",\"token\":null},\"tokens_revoked\":1}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Rotate an integration API key",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/integration-clients\/:client\/rotate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/integration-clients\/:client\/rotate",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "client",
                                    "key": "client",
                                    "value": "880",
                                    "description": "Integration client id (within this organisation)."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"expires_in_days\":180}"
                        },
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"client\": {\n      \"id\": 880,\n      \"name\": \"Power BI - asset team\",\n      \"organization_id\": 12,\n      \"organization\": { \"id\": 12, \"name\": \"Example Housing\" },\n      \"status\": \"active\",\n      \"created_by\": { \"id\": 41, \"name\": \"Alex Admin\", \"email\": \"alex.admin@example.com\" },\n      \"created_at\": \"2026-10-06T09:00:00+00:00\",\n      \"updated_at\": \"2026-10-06T09:00:00+00:00\",\n      \"token\": {\n        \"id\": 1550,\n        \"abilities\": [\"integration:read\"],\n        \"expires_at\": \"2027-04-04T09:00:00+00:00\",\n        \"last_used_at\": null,\n        \"created_at\": \"2026-10-06T09:00:00+00:00\",\n        \"is_expired\": false,\n        \"expires_in_days\": 180,\n        \"expiry_warning\": false\n      }\n    },\n    \"plain_text_token\": \"1550|example-api-key-shown-only-once\"\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"This integration client has been revoked. Create a new one instead.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Webhooks",
            "description": "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.",
            "item": [
                {
                    "name": "List webhooks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "All webhook endpoints for the organisation plus the event names you can subscribe to. Secrets are never returned, only a 4-character hint.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"webhooks\": [\n      {\n        \"id\": 3,\n        \"organization_id\": 12,\n        \"name\": \"Housing system alerts\",\n        \"url\": \"https:\/\/hooks.example-housing.org\/airaware\",\n        \"events\": [\"alert.created\", \"alert.resolved\"],\n        \"is_active\": true,\n        \"failure_count\": 0,\n        \"disabled_at\": null,\n        \"disabled_reason\": null,\n        \"last_success_at\": \"2026-10-05T14:02:11+00:00\",\n        \"last_failure_at\": null,\n        \"secret_hint\": \"\u20269f3a\",\n        \"created_at\": \"2026-09-01T10:00:00+00:00\",\n        \"updated_at\": \"2026-10-05T14:02:11+00:00\"\n      }\n    ],\n    \"available_events\": [\"alert.created\", \"alert.acknowledged\", \"alert.resolved\"]\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation administrators can manage integrations.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Create a webhook",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Housing system alerts\",\"url\":\"https:\\\/\\\/hooks.example-housing.org\\\/airaware\",\"events\":[\"alert.created\",\"alert.resolved\"]}"
                        },
                        "description": "Register an HTTPS endpoint for one or more events (alert.created, alert.acknowledged, alert.resolved). The signing `secret` is returned ONCE in this response \u2014 store it securely. URLs must be public HTTPS (private\/internal addresses are rejected). Max 10 webhooks per organisation.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 3,\n    \"organization_id\": 12,\n    \"name\": \"Housing system alerts\",\n    \"url\": \"https:\/\/hooks.example-housing.org\/airaware\",\n    \"events\": [\"alert.created\", \"alert.resolved\"],\n    \"is_active\": true,\n    \"failure_count\": 0,\n    \"disabled_at\": null,\n    \"disabled_reason\": null,\n    \"last_success_at\": null,\n    \"last_failure_at\": null,\n    \"secret_hint\": \"\u20269f3a\",\n    \"created_at\": \"2026-10-06T09:00:00+00:00\",\n    \"updated_at\": \"2026-10-06T09:00:00+00:00\",\n    \"secret\": \"whsec_example-secret-shown-only-once\"\n  }\n}\n",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation administrators can manage integrations.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a webhook",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks\/:webhook",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks\/:webhook",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "webhook",
                                    "key": "webhook",
                                    "value": "3",
                                    "description": "Webhook id (within this organisation)."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"Housing system alerts\",\"url\":\"https:\\\/\\\/hooks.example-housing.org\\\/airaware-v2\",\"events\":[\"alert.created\",\"alert.acknowledged\",\"alert.resolved\"],\"is_active\":true}"
                        },
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "x-request-id",
                                    "value": "6e08da44-d12e-4b92-8b9b-7e049a617eea"
                                },
                                {
                                    "key": "vary",
                                    "value": "Origin"
                                },
                                {
                                    "key": "x-xss-protection",
                                    "value": "1; mode=block"
                                },
                                {
                                    "key": "content-security-policy-report-only",
                                    "value": "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'"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated\",\"status\":\"error\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation administrators can manage integrations.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Delete a webhook",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks\/:webhook",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks\/:webhook",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "webhook",
                                    "key": "webhook",
                                    "value": "3",
                                    "description": "Webhook id (within this organisation)."
                                }
                            ]
                        },
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Stops all deliveries to this endpoint and deletes it.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"success\",\"data\":{\"deleted\":true}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Send a test (ping) delivery",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks\/:webhook\/test",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks\/:webhook\/test",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "webhook",
                                    "key": "webhook",
                                    "value": "3",
                                    "description": "Webhook id (within this organisation)."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"success\",\"data\":{\"success\":true,\"status_code\":200,\"duration_ms\":162,\"error\":null,\"delivery_id\":\"6f1c2a9e-0000-4000-8000-000000000002\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Rotate the signing secret",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks\/:webhook\/rotate-secret",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks\/:webhook\/rotate-secret",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "webhook",
                                    "key": "webhook",
                                    "value": "3",
                                    "description": "Webhook id (within this organisation)."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"success\",\"data\":{\"id\":3,\"secret_hint\":\"\u20261c7e\",\"secret\":\"whsec_example-secret-shown-only-once\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List recent deliveries",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/webhooks\/:webhook\/deliveries",
                            "query": [
                                {
                                    "key": "per_page",
                                    "value": "1",
                                    "description": "Must be at least 1. Must not be greater than 100.",
                                    "disabled": false
                                },
                                {
                                    "key": "event",
                                    "value": "n",
                                    "description": "Must not be greater than 64 characters.",
                                    "disabled": false
                                },
                                {
                                    "key": "success",
                                    "value": "",
                                    "description": "",
                                    "disabled": true
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/webhooks\/:webhook\/deliveries?per_page=1&event=n&success=",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "webhook",
                                    "key": "webhook",
                                    "value": "3",
                                    "description": "Webhook id (within this organisation)."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": [\n    {\n      \"id\": 4410,\n      \"webhook_id\": 3,\n      \"delivery_id\": \"6f1c2a9e-0000-4000-8000-000000000001\",\n      \"event\": \"alert.created\",\n      \"attempt\": 1,\n      \"success\": true,\n      \"status_code\": 200,\n      \"duration_ms\": 184,\n      \"error\": null,\n      \"response_excerpt\": \"{\\\"ok\\\":true}\",\n      \"delivered_at\": \"2026-10-05T14:02:11+00:00\",\n      \"payload\": {\n        \"schema_version\": 1,\n        \"event\": \"alert.created\",\n        \"delivery_id\": \"6f1c2a9e-0000-4000-8000-000000000001\",\n        \"occurred_at\": \"2026-10-05T14:02:10Z\",\n        \"organization\": {\n          \"id\": 12,\n          \"name\": \"Riverside Housing Trust\"\n        },\n        \"alert\": {\n          \"id\": 7001,\n          \"type\": \"high_mould_risk\",\n          \"severity\": \"high\",\n          \"status\": \"unacknowledged\",\n          \"title\": \"High mould risk\",\n          \"message\": \"High mould risk detected in Bedroom 1.\",\n          \"created_at\": \"2026-10-05T14:02:09Z\",\n          \"triggered_at\": \"2026-10-05T14:00:00Z\",\n          \"acknowledged_at\": null,\n          \"resolved_at\": null,\n          \"resolution_status\": null,\n          \"resolution_notes\": null\n        },\n        \"property\": {\n          \"id\": 5001,\n          \"name\": \"Flat 3, 12 Example Street\",\n          \"city\": \"Exampleton\",\n          \"county\": null,\n          \"uprn\": \"100000000001\",\n          \"external_ref\": \"PROP-000123\"\n        },\n        \"sensor\": {\n          \"id\": 101,\n          \"device_id\": \"PUCK-EXAMPLE-0001\",\n          \"name\": \"Bedroom 1\",\n          \"room\": \"Bedroom\"\n        }\n      }\n    }\n  ],\n  \"meta\": {\n    \"current_page\": 1,\n    \"per_page\": 25,\n    \"total\": 1,\n    \"last_page\": 1\n  }\n}\n",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Data export",
            "description": "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.",
            "item": [
                {
                    "name": "List exports",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/exports",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/exports",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"status\":\"success\",\"data\":[]}",
                            "name": "No exports yet"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation administrators can manage integrations.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Start an export",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/exports",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/exports",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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).\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 202,
                            "body": "{\"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}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation administrators can manage integrations.\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 409,
                            "body": "{\"status\":\"error\",\"message\":\"An export for this organisation is already in progress.\",\"data\":{\"id\":41,\"status\":\"running\"}}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get an export",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/exports\/:export",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/exports\/:export",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "export",
                                    "key": "export",
                                    "value": "41",
                                    "description": "Export id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Status and row counts of one export. `downloadable` is true once the ZIP is ready and not yet expired.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 41,\n    \"organization_id\": 12,\n    \"requested_by\": 3051,\n    \"status\": \"complete\",\n    \"file_size\": 18734212,\n    \"row_counts\": {\n      \"properties.csv\": 240,\n      \"sensors.csv\": 702,\n      \"readings.csv\": 1834220,\n      \"daily_scores.csv\": 251004,\n      \"alerts.csv\": 1180,\n      \"alert_notes.csv\": 312\n    },\n    \"error\": null,\n    \"started_at\": \"2026-10-06T09:00:03+00:00\",\n    \"completed_at\": \"2026-10-06T09:06:41+00:00\",\n    \"expires_at\": \"2026-10-13T09:06:41+00:00\",\n    \"created_at\": \"2026-10-06T09:00:00+00:00\",\n    \"downloadable\": true\n  }\n}\n",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Download an export",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/organizations\/:organization\/exports\/:export\/download",
                            "query": [
                                {
                                    "key": "redirect",
                                    "value": "",
                                    "description": "Set to 0\/false to receive {url, expires_at} as JSON instead of a redirect.",
                                    "disabled": true
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/organizations\/:organization\/exports\/:export\/download?redirect=",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id."
                                },
                                {
                                    "id": "export",
                                    "key": "export",
                                    "value": "41",
                                    "description": "Export id."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"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\"}}",
                            "name": "With redirect=0"
                        },
                        {
                            "header": [],
                            "code": 409,
                            "body": "{\"status\":\"error\",\"message\":\"This export is not available for download.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Property references (signed-in admins)",
            "description": "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.",
            "item": [
                {
                    "name": "Bulk-set property UPRN \/ external_ref",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/integration\/organizations\/:organization\/properties\/references",
                            "query": [
                                {
                                    "key": "dry_run",
                                    "value": "1",
                                    "description": "Validate and report what would change without saving.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/integration\/organizations\/:organization\/properties\/references?dry_run=1",
                            "variable": [
                                {
                                    "id": "organization",
                                    "key": "organization",
                                    "value": "12",
                                    "description": "Platform organisation id. The key must belong to a user with access to this organisation."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"rows\":[{\"location_id\":5001,\"name\":\"Flat 3, 12 Example Street\",\"postcode\":\"AB1 2CD\",\"uprn\":\"100000000001\",\"external_ref\":\"PROP-000123\"}]}"
                        },
                        "description": "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.\n\n**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`."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"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}]}}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Only organisation admins can import property references.\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 422,
                            "body": "{\"status\":\"error\",\"message\":\"Too many rows: maximum is 5000 per request.\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}