> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Incidents

> Questions like "significant Trans Mountain incidents since 2024", "what happened in INC2023-155", "how many gas releases in Alberta in 2025".

## Request contract

* **Method and path:** POST /apis/v1/cer-rec-gc-ca/energy-data/incidents
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/cer-rec-gc-ca/energy-data/incidents`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/cer-rec-gc-ca.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "cer-rec-gc-ca.energy-data.incidents",
  "method": "POST",
  "path": "/apis/v1/cer-rec-gc-ca/energy-data/incidents",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "incident_number": "INC2023-155"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "company": {
              "description": "Company or part of its name (`Trans Mountain`, `NOVA Gas`).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "from": {
              "description": "Earliest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. Pattern: ^\\d{4}(-\\d{2}(-\\d{2})?)?$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "incident_number": {
              "description": "CER incident number, e.g. `INC2023-155`. Pattern: ^[Ii][Nn][Cc]\\d{4}-\\d{2,4}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "incident_type": {
              "description": "`Release of Substance`, `Fire`, `Explosion`, `Serious Injury`, `Fatality`, `Operation Beyond Design Limits`... or part of it.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "limit": {
              "default": 25,
              "description": "Rows per page.\n\nProvider reference: minimum 1; maximum 100; default 25.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "offset": {
              "default": 0,
              "description": "`next_offset` from the previous page; repeat the other inputs with it.\n\nProvider reference: minimum 0; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 0
              }
            },
            "province": {
              "description": "province",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "query": {
              "description": "Words that must all appear in what or why it happened, nearest town, pipeline or facility name.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "significant": {
              "description": "Only incidents the CER flags significant (true) or not (false).",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "status": {
              "description": "status",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "substance": {
              "description": "`Natural Gas - Sweet`, `Crude Oil`, `Propane`... or part of it.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "to": {
              "description": "Latest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD` (a year or month means its last day). Pattern: ^\\d{4}(-\\d{2}(-\\d{2})?)?$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/cer-rec-gc-ca.json POST /apis/v1/cer-rec-gc-ca/energy-data/incidents
openapi: 3.1.0
info:
  description: ''
  title: Canada Energy Regulator (CER) open data
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    cer-rec-gc-ca:
      description: ''
      title: Canada Energy Regulator (CER) open data
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: dfe498aefc001ad7640ab0b3e374af162ddd24ac2c4d0d9cdf6a1db9b29bce1a
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/cer-rec-gc-ca/energy-data/energy-future
    - /apis/v1/cer-rec-gc-ca/energy-data/energy-statistics
    - /apis/v1/cer-rec-gc-ca/energy-data/incidents
    - /apis/v1/cer-rec-gc-ca/energy-data/pipelines
    - /apis/v1/cer-rec-gc-ca/energy-data/regulatory-instruments
    - /apis/v1/cer-rec-gc-ca/energy-data/throughput
    - /apis/v1/cer-rec-gc-ca/energy-data/tolls
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:fbc459c04761911a8e86b18da9919c8e51841a225ebda3bb4c8b0facac0285bb
    facts_hash: dfe498aefc001ad7640ab0b3e374af162ddd24ac2c4d0d9cdf6a1db9b29bce1a
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: cer-rec-gc-ca
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/cer-rec-gc-ca/energy-data/incidents:
    post:
      tags:
        - Canada Energy Regulator (CER) open data
      summary: Incidents
      description: >-
        Questions like "significant Trans Mountain incidents since 2024", "what
        happened in INC2023-155", "how many gas releases in Alberta in 2025".
      operationId: cer-rec-gc-ca.energy-data.incidents
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  incident_number: INC2023-155
            schema:
              additionalProperties: true
              properties:
                company:
                  description: Company or part of its name (`Trans Mountain`, `NOVA Gas`).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                from:
                  description: >-
                    Earliest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`. Pattern:
                    ^\d{4}(-\d{2}(-\d{2})?)?$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                incident_number:
                  description: >-
                    CER incident number, e.g. `INC2023-155`. Pattern:
                    ^[Ii][Nn][Cc]\d{4}-\d{2,4}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                incident_type:
                  description: >-
                    `Release of Substance`, `Fire`, `Explosion`, `Serious
                    Injury`, `Fatality`, `Operation Beyond Design Limits`... or
                    part of it.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                limit:
                  default: 25
                  description: |-
                    Rows per page.

                    Provider reference: minimum 1; maximum 100; default 25.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                offset:
                  default: 0
                  description: >-
                    `next_offset` from the previous page; repeat the other
                    inputs with it.


                    Provider reference: minimum 0; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 0
                province:
                  description: province
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                query:
                  description: >-
                    Words that must all appear in what or why it happened,
                    nearest town, pipeline or facility name.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                significant:
                  description: >-
                    Only incidents the CER flags significant (true) or not
                    (false).
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                status:
                  description: status
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                substance:
                  description: >-
                    `Natural Gas - Sweet`, `Crude Oil`, `Propane`... or part of
                    it.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                to:
                  description: >-
                    Latest date: `YYYY`, `YYYY-MM` or `YYYY-MM-DD` (a year or
                    month means its last day). Pattern:
                    ^\d{4}(-\d{2}(-\d{2})?)?$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-25.
                  summary: Official provider example
                  value:
                    data_dictionary_url: >-
                      https://www.cer-rec.gc.ca/open/incident/pipeline-incidents-data-dictionary.csv
                    filters:
                      company: null
                      incident_number: INC2023-155
                      incident_type: null
                      province: null
                      query: null
                      significant: null
                      status: null
                      substance: null
                    incidents:
                      - activity_at_time_of_incident: Construction
                        approximate_volume_released_m3: null
                        closed_date: '2024-02-09'
                        company: Trans Mountain Pipeline ULC
                        discovered_date_time: 2023/09/09 01:30:00 PM Pacific
                        emergency_level: Not Emergency
                        evacuated: 0
                        facility_name: null
                        facility_type: Meter
                        fatalities: null
                        how_discovered: Employee / Contractor (Onsite)
                        incident_number: INC2023-155
                        incident_types:
                          - Adverse Environmental Effects
                        injured: null
                        investigation_type: Inactive Investigation Level in Error
                        latitude: 49.1968613
                        longitude: -122.7469638
                        nearest_populated_centre: Surrey
                        occurrence_date_time: 2023/09/09 01:30:00 PM Pacific
                        pipeline_name: TRANS MOUNTAIN EXPANSION PROJECT
                        pipeline_or_facility_type: Transmission
                        province: British Columbia
                        regulation: null
                        release_type: Not Applicable
                        reported_date: '2023-09-09'
                        residual_environmental_effects: 'No'
                        rupture: 'No'
                        significant: true
                        status: Closed
                        substance: Not Applicable
                        volume_note: Not Applicable
                        what_happened: Substandard Acts, Failure to identify hazard or risk
                        what_happened_category: Incorrect Operation
                        why_it_happened: >-
                          Job or system factors, Inadequate engineering,
                          Inadequate assessment of loss exposures
                        why_it_happened_category: Engineering and Planning
                    license:
                      attribution: >-
                        Contains information licensed under the Open Government
                        Licence - Canada (Canada Energy Regulator).
                      name: Open Government Licence - Canada 2.0
                      url: https://open.canada.ca/en/open-government-licence-canada
                    limit: 25
                    next_offset: null
                    observed_at_ms: 1792969573044
                    offset: 0
                    source:
                      last_modified: Thu, 01 Oct 2026 10:10:51 GMT
                      url: >-
                        https://www.cer-rec.gc.ca/open/incident/pipeline-incidents-comprehensive-data.csv
                    summary:
                      approximate_volume_released_m3: 0
                      by_year:
                        - count: 1
                          year: '2023'
                      significant: 1
                      total: 1
                    total_count: 1
                    window:
                      from: null
                      to: null
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Incidents reported to the CER at federally regulated pipelines and
            facilities since 2008, from the CER's comprehensive incident open
            data (about 2,000 incidents): number, types (release of substance,
            fire, explosion, serious injury, operation beyond design limits...),
            reported, occurrence and closed dates, company, province, nearest
            town and coordinates, substance and volume released, significance,
            what and why it happened, pipeline or facility, injuries, fatalities
            and evacuations, emergency level and investigation type. Look one up
            by incident number or filter by company, province, substance, type,
            significance, status, words and reported date; newest first, paged,
            with totals by year.


            The response contains the tool result directly.


            The provider identifies `incidents` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `activity_at_time_of_incident` | string |  |

            | `approximate_volume_released_m3` | number |  |

            | `closed_date` | string |  |

            | `company` | string |  |

            | `discovered_date_time` | string |  |

            | `emergency_level` | string |  |

            | `evacuated` | number |  |

            | `facility_name` | string |  |

            | `facility_type` | string |  |

            | `fatalities` | number |  |

            | `how_discovered` | string |  |

            | `incident_number` | string | CER incident number, e.g.
            `INC2023-155`. |

            | `incident_types` | string[] |  |

            | `injured` | number |  |

            | `investigation_type` | string |  |

            | `latitude` | number |  |

            | `longitude` | number |  |

            | `nearest_populated_centre` | string |  |

            | `occurrence_date_time` | string | As the CER records it, with time
            zone, e.g. `2023/09/09 01:30:00 PM Pacific`. |

            | `pipeline_name` | string |  |

            | `pipeline_or_facility_type` | string |  |

            | `province` | string |  |

            | `regulation` | string |  |

            | `release_type` | string |  |

            | `reported_date` | string | ISO. |

            | `residual_environmental_effects` | string |  |

            | `rupture` | string |  |

            | `significant` | boolean |  |

            | `status` | string | `Closed`, `Submitted`, `Initially Submitted`.
            |

            | `substance` | string |  |

            | `volume_note` | string | Why there is no volume: `Not Applicable`,
            `Not Provided`. |

            | `what_happened` | string |  |

            | `what_happened_category` | string |  |

            | `why_it_happened` | string |  |

            | `why_it_happened_category` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.