> ## 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

# Source history

> See when a source was last rebuilt, how its row count moved week to week, or pick an older job to compare against.

## Request contract

* **Method and path:** POST /apis/v1/batch-openaddresses-io/addresses/source-history
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/source-history`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/batch-openaddresses-io.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "batch-openaddresses-io.addresses.source-history",
  "method": "POST",
  "path": "/apis/v1/batch-openaddresses-io/addresses/source-history",
  "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": {
              "limit": 3,
              "source": "us/ak/bristol_bay_borough",
              "status": "Success"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "data_id": {
              "description": "Data entry id; when given, `source` is ignored for the lookup.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "layer": {
              "default": "addresses",
              "description": "OpenAddresses layer of the source. This program shapes `addresses` rows; other layers are listed and status-checked but their records are not decoded.\n\nProvider reference: allowed values [\"addresses\", \"buildings\", \"parcels\", \"centerlines\"]; default \"addresses\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "addresses",
                  "buildings",
                  "parcels",
                  "centerlines"
                ]
              }
            },
            "limit": {
              "default": 100,
              "description": "Keep the newest N jobs.\n\nProvider reference: minimum 1; maximum 500; default 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 500,
                "min": 1
              }
            },
            "name": {
              "description": "Coverage name when a source has more than one data entry per layer (e.g. `us/mn/statewide` addresses has `default` and `state`); the function says so when it is needed.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "source": {
              "description": "OpenAddresses source path, e.g. `us/ak/bristol_bay_borough` or `us/me/statewide` (lowercase `<country>/<region>/<name>`, no `.json`). Pattern: ^[a-z]{2}(/[a-z0-9_.-]+){1,3}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "status": {
              "default": "all",
              "description": "`Success` keeps only successful jobs.\n\nProvider reference: allowed values [\"Success\", \"all\"]; default \"all\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "Success",
                  "all"
                ]
              }
            }
          },
          "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/batch-openaddresses-io.json POST /apis/v1/batch-openaddresses-io/addresses/source-history
openapi: 3.1.0
info:
  description: ''
  title: OpenAddresses per-source runs
  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:
    batch-openaddresses-io:
      description: ''
      title: OpenAddresses per-source runs
      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: 632983d825507d6816323ab26455c1e13a5aa27c23694d88597d5dd92937beb3
        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/batch-openaddresses-io/addresses/records-get
    - /apis/v1/batch-openaddresses-io/addresses/records-list
    - /apis/v1/batch-openaddresses-io/addresses/source-history
    - /apis/v1/batch-openaddresses-io/addresses/source-status
    - /apis/v1/batch-openaddresses-io/addresses/sources-list
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:13aee868ca1cb24fb7b97e930f5f9ac4fcc94f8ce81128db05fb22fcfbd35d27
    facts_hash: 632983d825507d6816323ab26455c1e13a5aa27c23694d88597d5dd92937beb3
    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: batch-openaddresses-io
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/batch-openaddresses-io/addresses/source-history:
    post:
      tags:
        - OpenAddresses per-source runs
      summary: Source history
      description: >-
        See when a source was last rebuilt, how its row count moved week to
        week, or pick an older job to compare against.
      operationId: batch-openaddresses-io.addresses.source-history
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  limit: 3
                  source: us/ak/bristol_bay_borough
                  status: Success
            schema:
              additionalProperties: true
              properties:
                data_id:
                  description: >-
                    Data entry id; when given, `source` is ignored for the
                    lookup.


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                layer:
                  default: addresses
                  description: >-
                    OpenAddresses layer of the source. This program shapes
                    `addresses` rows; other layers are listed and status-checked
                    but their records are not decoded.


                    Provider reference: allowed values ["addresses",
                    "buildings", "parcels", "centerlines"]; default "addresses".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - addresses
                      - buildings
                      - parcels
                      - centerlines
                limit:
                  default: 100
                  description: |-
                    Keep the newest N jobs.

                    Provider reference: minimum 1; maximum 500; default 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 500
                    min: 1
                name:
                  description: >-
                    Coverage name when a source has more than one data entry per
                    layer (e.g. `us/mn/statewide` addresses has `default` and
                    `state`); the function says so when it is needed.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                source:
                  description: >-
                    OpenAddresses source path, e.g. `us/ak/bristol_bay_borough`
                    or `us/me/statewide` (lowercase `<country>/<region>/<name>`,
                    no `.json`). Pattern: ^[a-z]{2}(/[a-z0-9_.-]+){1,3}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                status:
                  default: all
                  description: >-
                    `Success` keeps only successful jobs.


                    Provider reference: allowed values ["Success", "all"];
                    default "all".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - Success
                      - all
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    count: 3
                    data_id: 3771
                    jobs:
                      - count: 979
                        created: '2026-10-16T12:15:43.799Z'
                        has_output: true
                        has_pmtiles: true
                        job_id: 936682
                        map_id: 16542
                        output_url: >-
                          https://v2.openaddresses.io/batch-prod/job/936682/source.geojson.gz
                        run_id: 17008
                        stats:
                          counts:
                            city: 979
                            district: 0
                            number: 979
                            postcode: 979
                            region: 979
                            street: 979
                            unit: 0
                          valid: 979
                        status: Success
                        validated: true
                      - count: 979
                        created: '2026-10-09T12:15:54.245Z'
                        has_output: true
                        has_pmtiles: true
                        job_id: 931716
                        map_id: 16542
                        output_url: >-
                          https://v2.openaddresses.io/batch-prod/job/931716/source.geojson.gz
                        run_id: 16893
                        stats:
                          counts:
                            city: 979
                            district: 0
                            number: 979
                            postcode: 979
                            region: 979
                            street: 979
                            unit: 0
                          valid: 979
                        status: Success
                        validated: true
                      - count: 979
                        created: '2026-10-02T12:15:28.567Z'
                        has_output: true
                        has_pmtiles: true
                        job_id: 926764
                        map_id: 16542
                        output_url: >-
                          https://v2.openaddresses.io/batch-prod/job/926764/source.geojson.gz
                        run_id: 16778
                        stats:
                          counts:
                            city: 979
                            district: 0
                            number: 979
                            postcode: 979
                            region: 979
                            street: 979
                            unit: 0
                          valid: 979
                        status: Success
                        validated: true
                    layer: addresses
                    observed_at_ms: 1792352237182
                    retrieved_at: '2026-10-18T19:37:16Z'
                    source: us/ak/bristol_bay_borough
                    source_url: https://batch.openaddresses.io/api/data/3771/history
                    total: 33
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Every job OpenAddresses ran for one data entry (`GET
            /api/data/<id>/history`): id, created, status, row count, stats and
            output flags, newest first. Old successful jobs keep their outputs
            on v2.openaddresses.io, so a job id from here can be pinned in
            `records_get`. These are whole runs, not record deltas:
            OpenAddresses publishes no change feed.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `count` | number | Jobs returned. |

            | `data_id` | number |  |

            | `jobs` | object[] |  |

            | `layer` | string |  |

            | `observed_at_ms` | number |  |

            | `retrieved_at` | string | RFC 3339 UTC time of the upstream read.
            |

            | `source` | string |  |

            | `source_url` | string | The OpenAddresses URL this answer was read
            from (never a presigned URL). |

            | `total` | number | Jobs in the history (after the status filter).
            |



            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.