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

> Before a walk or on a schedule: compare `publication_id` (job id) and `content_hash` (ETag) with the last seen values; read `access_mode` to know whether `records_list` can page the whole file, needs a bbox, or hands off the file URL.

## Request contract

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

[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-status",
  "method": "POST",
  "path": "/apis/v1/batch-openaddresses-io/addresses/source-status",
  "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": {
              "source": "us/ak/bristol_bay_borough"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "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"
                ]
              }
            },
            "name": {
              "description": "Coverage name when a source has more than one data entry per layer (rare).",
              "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"
            }
          },
          "required": [
            "source"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "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-status
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-status:
    post:
      tags:
        - OpenAddresses per-source runs
      summary: Source status
      description: >-
        Before a walk or on a schedule: compare `publication_id` (job id) and
        `content_hash` (ETag) with the last seen values; read `access_mode` to
        know whether `records_list` can page the whole file, needs a bbox, or
        hands off the file URL.
      operationId: batch-openaddresses-io.addresses.source-status
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  source: us/ak/bristol_bay_borough
            schema:
              additionalProperties: true
              properties:
                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
                name:
                  description: >-
                    Coverage name when a source has more than one data entry per
                    layer (rare).
                  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
              required:
                - source
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    access_mode: whole_file
                    bounds:
                      - -157.0825058
                      - 58.6214979
                      - -156.4573269
                      - 58.7612884
                    changes: not_available
                    content_hash: 56ef87a63d0865b4e4bfe86fd75c9e66
                    content_hash_kind: etag
                    count: 979
                    data_id: 3771
                    history_url: https://batch.openaddresses.io/api/data/3771/history
                    job_id: 936682
                    last_modified: Fri, 16 Oct 2026 15:25:17 GMT
                    layer: addresses
                    licence: null
                    licence_class: none_stated
                    map_id: 16542
                    name: county
                    observed_at_ms: 1792352210028
                    output_url: >-
                      https://v2.openaddresses.io/batch-prod/job/936682/source.geojson.gz
                    pmtiles_url: >-
                      https://v2.openaddresses.io/batch-prod/job/936682/source.pmtiles
                    publication_id: '936682'
                    published_at: '2026-10-16T12:15:43.799Z'
                    retrieved_at: '2026-10-18T19:36:49Z'
                    run_id: 17008
                    size_bytes: 27520
                    source: us/ak/bristol_bay_borough
                    source_commit_url: >-
                      https://raw.githubusercontent.com/openaddresses/openaddresses/62b67d7755644633c45d90ebd06839e02291e04b/sources/us/ak/bristol_bay_borough.json
                    source_url: >-
                      https://batch.openaddresses.io/api/data?source=us/ak/bristol_bay_borough&layer=addresses
                    stats:
                      counts:
                        city: 979
                        district: 0
                        number: 979
                        postcode: 979
                        region: 979
                        street: 979
                        unit: 0
                      valid: 979
                    status: Success
                    updated: '2026-10-16T15:25:18.907Z'
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Cheap version check for one source: resolves the data entry (`GET
            /api/data?source=&layer=`), reads the latest successful job (`GET
            /api/job/<id>`: count, stats, bounds, licence, pinned source commit)
            and takes the output's ETag, size and Last-Modified with a 1-byte
            Range read of
            `https://v2.openaddresses.io/batch-prod/job/<job>/source.geojson.gz`
            (302 to a presigned object URL, resolved per call and never
            returned).


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `access_mode` | string | How `records_list` reads this source:
            `whole_file` (output at most 8 MiB), `tiles` (larger, PMTiles
            present; needs a bbox), `handoff` (larger, no PMTiles). |

            | `bounds` | number[] | Job bounds `[west, south, east, north]`. |

            | `changes` | string | OpenAddresses publishes whole runs, not
            record deltas; diff snapshots downstream. |

            | `content_hash` | string | ETag of `source.geojson.gz` as served by
            the object store: an MD5 for single-part uploads, `<md5>-<parts>`
            for multipart uploads; an opaque version token. |

            | `content_hash_kind` | string |  |

            | `count` | number | Row count as the job reports it. |

            | `data_id` | number | OpenAddresses data entry id (source x layer x
            name). |

            | `history_url` | string | `/api/data/<data_id>/history`. |

            | `job_id` | number |  |

            | `last_modified` | string | `Last-Modified` of the output object. |

            | `layer` | string |  |

            | `licence` | object | The job's licence as OpenAddresses records
            it, normalised; null when the job carries `license: false`. |

            | `licence_class` | string | Licence class derived from the
            publisher's licence fields: `public_domain` (CC0, PDDL, public
            domain), `attribution` (CC BY and other attribution licences or an
            attribution requirement), `share_alike` (CC BY-SA, ODbL or
            share-alike flag), `none_stated` (no licence recorded; OpenAddresses
            does not relicense), `other` (text present but unrecognised, e.g. an
            indemnification note). |

            | `map_id` | number |  |

            | `name` | string | Coverage name of the data entry (`county`,
            `state`, `city`, ...). |

            | `observed_at_ms` | number |  |

            | `output_url` | string | Keyless download URL on
            v2.openaddresses.io (302 to a presigned object URL, resolved per
            call). |

            | `pmtiles_url` | string | PMTiles URL when the job produced tiles.
            |

            | `publication_id` | string | The latest successful job id as a
            string; pin this. |

            | `published_at` | string | Job creation time (RFC 3339). |

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

            | `run_id` | number |  |

            | `size_bytes` | number | Size of `source.geojson.gz`. |

            | `source` | string |  |

            | `source_commit_url` | string | Pinned GitHub URL of the source
            JSON used by the job. |

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

            | `stats` | object |  |

            | `status` | string | Job status (`Success`). |

            | `updated` | string | Data entry `updated` time. |



            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.