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

# Describe dataset

> Before query_dataset, to learn the exact field names and types for select/where/order, and to size a dataset. Also answers 'how current is this data' and 'who publishes it'.

## Request contract

* **Method and path:** POST /apis/v1/socrata-com/open-data/describe-dataset
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/socrata-com/open-data/describe-dataset`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/socrata-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "socrata-com.open-data.describe-dataset",
  "method": "POST",
  "path": "/apis/v1/socrata-com/open-data/describe-dataset",
  "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": {
              "dataset_id": "ydr8-5enu",
              "portal": "data.cityofchicago.org"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "dataset_id": {
              "description": "The dataset's Socrata 4x4 id (for example ydr8-5enu, from search_datasets) or a dataset URL on the same portal: /d/<id>, /<Category>/<Name>/<id>, /resource/<id>.json.",
              "type": "string"
            },
            "portal": {
              "description": "The portal: its hostname (data.cityofchicago.org, data.ny.gov, www.dallasopendata.com) or any URL on it. Must be a Socrata domain served by the Socrata Discovery API (US or EU region); anything else fails with invalid_input not_socrata_portal before the host is contacted.",
              "type": "string"
            }
          },
          "required": [
            "dataset_id",
            "portal"
          ],
          "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/socrata-com.json POST /apis/v1/socrata-com/open-data/describe-dataset
openapi: 3.1.0
info:
  description: ''
  title: Socrata open-data portals
  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:
    socrata-com:
      description: ''
      title: Socrata open-data portals
      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: 625f83db9201183eb89bace8adb584a6724e12d212fef3b0c7babc8d8a32dd58
        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/socrata-com/open-data/describe-dataset
    - /apis/v1/socrata-com/open-data/query-dataset
    - /apis/v1/socrata-com/open-data/search-datasets
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:3dfb9a955563f2f34f1a891721ecdd7aebf6a6244e923909dd4fa86ed1093201
    facts_hash: 625f83db9201183eb89bace8adb584a6724e12d212fef3b0c7babc8d8a32dd58
    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: socrata-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/socrata-com/open-data/describe-dataset:
    post:
      tags:
        - Socrata open-data portals
      summary: Describe dataset
      description: >-
        Before query_dataset, to learn the exact field names and types for
        select/where/order, and to size a dataset. Also answers 'how current is
        this data' and 'who publishes it'.
      operationId: socrata-com.open-data.describe-dataset
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  dataset_id: ydr8-5enu
                  portal: data.cityofchicago.org
            schema:
              additionalProperties: true
              properties:
                dataset_id:
                  description: >-
                    The dataset's Socrata 4x4 id (for example ydr8-5enu, from
                    search_datasets) or a dataset URL on the same portal:
                    /d/<id>, /<Category>/<Name>/<id>, /resource/<id>.json.
                  type: string
                portal:
                  description: >-
                    The portal: its hostname (data.cityofchicago.org,
                    data.ny.gov, www.dallasopendata.com) or any URL on it. Must
                    be a Socrata domain served by the Socrata Discovery API (US
                    or EU region); anything else fails with invalid_input
                    not_socrata_portal before the host is contacted.
                  type: string
              required:
                - dataset_id
                - portal
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-09T17:17:18Z.
                  summary: Official provider example
                  value:
                    api_url: https://data.cityofchicago.org/resource/ydr8-5enu.json
                    asset_type: dataset
                    attribution: City of Chicago
                    attribution_link: http://www.cityofchicago.org
                    category: Buildings
                    column_count: 122
                    columns:
                      - datatype: text
                        description: Unique database record identifier
                        field_name: id
                        name: ID
                      - datatype: text
                        description: >-
                          Tracking number assigned at beginning of permit
                          application process
                        field_name: permit_
                        name: PERMIT#
                      - datatype: text
                        description: >-
                          Current status of permit (not available for all permit
                          types).
                        field_name: permit_status
                        name: PERMIT_STATUS
                      - datatype: text
                        description: >-
                          Current milestone of permit (not available for all
                          permit types).
                        field_name: permit_milestone
                        name: PERMIT_MILESTONE
                      - datatype: text
                        description: Type of permit
                        field_name: permit_type
                        name: PERMIT_TYPE
                      - datatype: text
                        description: Process used to review permit application
                        field_name: review_type
                        name: REVIEW_TYPE
                      - datatype: calendar_date
                        description: Date when City began reviewing permit application
                        field_name: application_start_date
                        name: APPLICATION_START_DATE
                      - datatype: calendar_date
                        description: >-
                          For most permit types, date when City determined
                          permit was ready to issue, subject to payment of
                          permit fees; For Express Permit Program, date when
                          permit issued based on full payment of applicable
                          permit fee
                        field_name: issue_date
                        name: ISSUE_DATE
                      - datatype: number
                        description: >-
                          Number of days between APPLICATION_START_DATE and
                          ISSUE_DATE
                        field_name: processing_time
                        name: PROCESSING_TIME
                      - datatype: number
                        description: >-
                          Address number - for buildings with address ranges,
                          primary address is used
                        field_name: street_number
                        name: STREET_NUMBER
                      - datatype: text
                        description: Street direction
                        field_name: street_direction
                        name: STREET_DIRECTION
                      - datatype: text
                        description: Street name
                        field_name: street_name
                        name: STREET_NAME
                      - datatype: text
                        description: >-
                          Classification of activity authorized by permit (not
                          available for all permit types).
                        field_name: work_type
                        name: WORK_TYPE
                      - datatype: text
                        description: Description of work authorized by the permit
                        field_name: work_description
                        name: WORK_DESCRIPTION
                      - datatype: text
                        description: >-
                          Conditions or comments added by reviewing
                          department(s)
                        field_name: permit_condition
                        name: PERMIT_CONDITION
                      - datatype: number
                        description: Amount of building permit fees received
                        field_name: building_fee_paid
                        name: BUILDING_FEE_PAID
                      - datatype: number
                        description: Amount of zoning review fees received
                        field_name: zoning_fee_paid
                        name: ZONING_FEE_PAID
                      - datatype: number
                        description: Amount of other permit-related fees received
                        field_name: other_fee_paid
                        name: OTHER_FEE_PAID
                      - datatype: number
                        description: >-
                          Sum of BUILDING_FEE_PAID, ZONING_FEE_PAID and
                          OTHER_FEE_PAID
                        field_name: subtotal_paid
                        name: SUBTOTAL_PAID
                      - datatype: number
                        description: Amount of building permit fees due
                        field_name: building_fee_unpaid
                        name: BUILDING_FEE_UNPAID
                      - datatype: number
                        description: Amount of zoning review fees due
                        field_name: zoning_fee_unpaid
                        name: ZONING_FEE_UNPAID
                      - datatype: number
                        description: Amount of other permit-related fees due
                        field_name: other_fee_unpaid
                        name: OTHER_FEE_UNPAID
                      - datatype: number
                        description: >-
                          Sum of BUILDING_FEE_UNPAID, ZONING_FEE_UNPAID and
                          OTHER_FEE_UNPAID
                        field_name: subtotal_unpaid
                        name: SUBTOTAL_UNPAID
                      - datatype: number
                        description: Amount of building permit fees waived
                        field_name: building_fee_waived
                        name: BUILDING_FEE_WAIVED
                      - datatype: number
                        description: >-
                          Sum of BUILDING_FEE_PAID, BUILDING_FEE_UNPAID and
                          BUILDING_FEE_WAIVED
                        field_name: building_fee_subtotal
                        name: BUILDING_FEE_SUBTOTAL
                      - datatype: number
                        description: >-
                          Sum of ZONING_FEE_PAID, ZONING _FEE_UNPAID and ZONING
                          _FEE_WAIVED
                        field_name: zoning_fee_subtotal
                        name: ZONING_FEE_SUBTOTAL
                      - datatype: number
                        description: >-
                          Sum of OTHER_FEE_PAID, OTHER _FEE_UNPAID and OTHER
                          _FEE_WAIVED
                        field_name: other_fee_subtotal
                        name: OTHER_FEE_SUBTOTAL
                      - datatype: number
                        description: Amount of zoning review fees waived
                        field_name: zoning_fee_waived
                        name: ZONING_FEE_WAIVED
                      - datatype: number
                        description: Amount of other permit-related fees waived
                        field_name: other_fee_waived
                        name: OTHER_FEE_WAIVED
                      - datatype: number
                        description: >-
                          Sum of BUILDING_FEE_WAIVED, ZONING_FEE_WAIVED and
                          OTHER_FEE_WAIVED
                        field_name: subtotal_waived
                        name: SUBTOTAL_WAIVED
                      - datatype: number
                        description: >-
                          Sum of SUBTOTAL_PAID, SUBTOTAL_UNPAID and
                          SUBTOTAL_WAIVED
                        field_name: total_fee
                        name: TOTAL_FEE
                      - datatype: text
                        description: Contact 1's relationship to permit
                        field_name: contact_1_type
                        name: CONTACT_1_TYPE
                      - datatype: text
                        description: Contact 1's full name
                        field_name: contact_1_name
                        name: CONTACT_1_NAME
                      - datatype: text
                        description: Contact 1's primary address city
                        field_name: contact_1_city
                        name: CONTACT_1_CITY
                      - datatype: text
                        description: Contact 1's primary address state
                        field_name: contact_1_state
                        name: CONTACT_1_STATE
                      - datatype: text
                        description: Contact 1's primary address ZIP code
                        field_name: contact_1_zipcode
                        name: CONTACT_1_ZIPCODE
                      - datatype: text
                        description: Contact 2's relationship to permit
                        field_name: contact_2_type
                        name: CONTACT_2_TYPE
                      - datatype: text
                        description: Contact 2's full name
                        field_name: contact_2_name
                        name: CONTACT_2_NAME
                      - datatype: text
                        description: Contact 2's primary address city
                        field_name: contact_2_city
                        name: CONTACT_2_CITY
                      - datatype: text
                        description: Contact 2's primary address state
                        field_name: contact_2_state
                        name: CONTACT_2_STATE
                      - datatype: text
                        description: Contact 2's primary address ZIP code
                        field_name: contact_2_zipcode
                        name: CONTACT_2_ZIPCODE
                      - datatype: text
                        description: Contact 3's relationship to permit
                        field_name: contact_3_type
                        name: CONTACT_3_TYPE
                      - datatype: text
                        description: Contact 3's full name
                        field_name: contact_3_name
                        name: CONTACT_3_NAME
                      - datatype: text
                        description: Contact 3's primary address city
                        field_name: contact_3_city
                        name: CONTACT_3_CITY
                      - datatype: text
                        description: Contact 3's primary address state
                        field_name: contact_3_state
                        name: CONTACT_3_STATE
                      - datatype: text
                        description: Contact 3's primary address ZIP code
                        field_name: contact_3_zipcode
                        name: CONTACT_3_ZIPCODE
                      - datatype: text
                        description: Contact 4's relationship to permit
                        field_name: contact_4_type
                        name: CONTACT_4_TYPE
                      - datatype: text
                        description: Contact 4's full name
                        field_name: contact_4_name
                        name: CONTACT_4_NAME
                      - datatype: text
                        description: Contact 4's primary address city
                        field_name: contact_4_city
                        name: CONTACT_4_CITY
                      - datatype: text
                        description: Contact 4's primary address state
                        field_name: contact_4_state
                        name: CONTACT_4_STATE
                      - datatype: text
                        description: Contact 4's primary address ZIP code
                        field_name: contact_4_zipcode
                        name: CONTACT_4_ZIPCODE
                      - datatype: text
                        description: Contact 5's relationship to permit
                        field_name: contact_5_type
                        name: CONTACT_5_TYPE
                      - datatype: text
                        description: Contact 5's full name
                        field_name: contact_5_name
                        name: CONTACT_5_NAME
                      - datatype: text
                        description: Contact 5's primary address city
                        field_name: contact_5_city
                        name: CONTACT_5_CITY
                      - datatype: text
                        description: Contact 5's primary address state
                        field_name: contact_5_state
                        name: CONTACT_5_STATE
                      - datatype: text
                        description: Contact 5's primary address ZIP code
                        field_name: contact_5_zipcode
                        name: CONTACT_5_ZIPCODE
                      - datatype: text
                        description: Contact 6's relationship to permit
                        field_name: contact_6_type
                        name: CONTACT_6_TYPE
                      - datatype: text
                        description: Contact 6's full name
                        field_name: contact_6_name
                        name: CONTACT_6_NAME
                      - datatype: text
                        description: Contact 6's primary address city
                        field_name: contact_6_city
                        name: CONTACT_6_CITY
                      - datatype: text
                        description: Contact 6's primary address state
                        field_name: contact_6_state
                        name: CONTACT_6_STATE
                      - datatype: text
                        description: Contact 6's primary address ZIP code
                        field_name: contact_6_zipcode
                        name: CONTACT_6_ZIPCODE
                      - datatype: text
                        description: Contact 7's relationship to permit
                        field_name: contact_7_type
                        name: CONTACT_7_TYPE
                      - datatype: text
                        description: Contact 7's full name
                        field_name: contact_7_name
                        name: CONTACT_7_NAME
                      - datatype: text
                        description: Contact 7's primary address city
                        field_name: contact_7_city
                        name: CONTACT_7_CITY
                      - datatype: text
                        description: Contact 7's primary address state
                        field_name: contact_7_state
                        name: CONTACT_7_STATE
                      - datatype: text
                        description: Contact 7's primary address ZIP code
                        field_name: contact_7_zipcode
                        name: CONTACT_7_ZIPCODE
                      - datatype: text
                        description: Contact 8's relationship to permit
                        field_name: contact_8_type
                        name: CONTACT_8_TYPE
                      - datatype: text
                        description: Contact 8's full name
                        field_name: contact_8_name
                        name: CONTACT_8_NAME
                      - datatype: text
                        description: Contact 8's primary address city
                        field_name: contact_8_city
                        name: CONTACT_8_CITY
                      - datatype: text
                        description: Contact 8's primary address state
                        field_name: contact_8_state
                        name: CONTACT_8_STATE
                      - datatype: text
                        description: Contact 8's primary address ZIP code
                        field_name: contact_8_zipcode
                        name: CONTACT_8_ZIPCODE
                      - datatype: text
                        description: Contact 9's relationship to permit
                        field_name: contact_9_type
                        name: CONTACT_9_TYPE
                      - datatype: text
                        description: Contact 9's full name
                        field_name: contact_9_name
                        name: CONTACT_9_NAME
                      - datatype: text
                        description: Contact 9's primary address city
                        field_name: contact_9_city
                        name: CONTACT_9_CITY
                      - datatype: text
                        description: Contact 9's primary address state
                        field_name: contact_9_state
                        name: CONTACT_9_STATE
                      - datatype: text
                        description: Contact 9's primary address ZIP code
                        field_name: contact_9_zipcode
                        name: CONTACT_9_ZIPCODE
                      - datatype: text
                        description: Contact 10's relationship to permit
                        field_name: contact_10_type
                        name: CONTACT_10_TYPE
                      - datatype: text
                        description: Contact 10's full name
                        field_name: contact_10_name
                        name: CONTACT_10_NAME
                      - datatype: text
                        description: Contact 10's primary address city
                        field_name: contact_10_city
                        name: CONTACT_10_CITY
                      - datatype: text
                        description: Contact 10's primary address state
                        field_name: contact_10_state
                        name: CONTACT_10_STATE
                      - datatype: text
                        description: Contact 10's primary address ZIP code
                        field_name: contact_10_zipcode
                        name: CONTACT_10_ZIPCODE
                      - datatype: text
                        description: Contact 11's relationship to permit
                        field_name: contact_11_type
                        name: CONTACT_11_TYPE
                      - datatype: text
                        description: Contact 11's full name
                        field_name: contact_11_name
                        name: CONTACT_11_NAME
                      - datatype: text
                        description: Contact 11's primary address city
                        field_name: contact_11_city
                        name: CONTACT_11_CITY
                      - datatype: text
                        description: Contact 11's primary address state
                        field_name: contact_11_state
                        name: CONTACT_11_STATE
                      - datatype: text
                        description: Contact 11's primary address ZIP code
                        field_name: contact_11_zipcode
                        name: CONTACT_11_ZIPCODE
                      - datatype: text
                        description: Contact 12's relationship to permit
                        field_name: contact_12_type
                        name: CONTACT_12_TYPE
                      - datatype: text
                        description: Contact 12's full name
                        field_name: contact_12_name
                        name: CONTACT_12_NAME
                      - datatype: text
                        description: Contact 12's primary address city
                        field_name: contact_12_city
                        name: CONTACT_12_CITY
                      - datatype: text
                        description: Contact 12's primary address state
                        field_name: contact_12_state
                        name: CONTACT_12_STATE
                      - datatype: text
                        description: Contact 12's primary address ZIP code
                        field_name: contact_12_zipcode
                        name: CONTACT_12_ZIPCODE
                      - datatype: text
                        description: Contact 13's relationship to permit
                        field_name: contact_13_type
                        name: CONTACT_13_TYPE
                      - datatype: text
                        description: Contact 13's full name
                        field_name: contact_13_name
                        name: CONTACT_13_NAME
                      - datatype: text
                        description: Contact 13's primary address city
                        field_name: contact_13_city
                        name: CONTACT_13_CITY
                      - datatype: text
                        description: Contact 13's primary address state
                        field_name: contact_13_state
                        name: CONTACT_13_STATE
                      - datatype: text
                        description: Contact 13's primary address ZIP code
                        field_name: contact_13_zipcode
                        name: CONTACT_13_ZIPCODE
                      - datatype: text
                        description: Contact 14's relationship to permit
                        field_name: contact_14_type
                        name: CONTACT_14_TYPE
                      - datatype: text
                        description: Contact 14's full name
                        field_name: contact_14_name
                        name: CONTACT_14_NAME
                      - datatype: text
                        description: Contact 14's primary address city
                        field_name: contact_14_city
                        name: CONTACT_14_CITY
                      - datatype: text
                        description: Contact 14's primary address state
                        field_name: contact_14_state
                        name: CONTACT_14_STATE
                      - datatype: text
                        description: Contact 14's primary address ZIP code
                        field_name: contact_14_zipcode
                        name: CONTACT_14_ZIPCODE
                      - datatype: text
                        description: Contact 15's relationship to permit
                        field_name: contact_15_type
                        name: CONTACT_15_TYPE
                      - datatype: text
                        description: Contact 15's full name
                        field_name: contact_15_name
                        name: CONTACT_15_NAME
                      - datatype: text
                        description: Contact 15's primary address city
                        field_name: contact_15_city
                        name: CONTACT_15_CITY
                      - datatype: text
                        description: Contact 15's primary address state
                        field_name: contact_15_state
                        name: CONTACT_15_STATE
                      - datatype: text
                        description: Contact 15's primary address ZIP code
                        field_name: contact_15_zipcode
                        name: CONTACT_15_ZIPCODE
                      - datatype: number
                        description: >-
                          Estimated cost of work provided by applicant (not
                          available for all permits)
                        field_name: reported_cost
                        name: REPORTED_COST
                      - datatype: text
                        description: >-
                          Property index number(s) (PINs) disclosed by applicant
                          and verified by city staff as part of permit
                          application review (not available for all permits);
                          PINs are assigned to parcels of land for property tax
                          purposes. This column replaces columns PIN1 through
                          PIN10, which will be removed soon, no earlier than
                          6/1/2024.
                        field_name: pin_list
                        name: PIN_LIST
                      - datatype: number
                        description: >-
                          The Chicago community area of the property's primary
                          address. The community area map is available in a
                          separate dataset.
                        field_name: community_area
                        name: COMMUNITY_AREA
                      - datatype: number
                        description: >-
                          The census tract of the property's primary address.
                          The census tract map is available in a separate
                          dataset.
                        field_name: census_tract
                        name: CENSUS_TRACT
                      - datatype: number
                        description: >-
                          The ward (city council district) of the property's
                          primary address at the time of permit issuance. The
                          ward map is available in a separate dataset.
                        field_name: ward
                        name: WARD
                      - datatype: number
                        description: >-
                          The east-west coordinate of the property's primary
                          address, defined in feet, based on NAD 83 - State
                          Plane Eastern IL
                        field_name: xcoordinate
                        name: XCOORDINATE
                      - datatype: number
                        description: >-
                          The north-south coordinate of the property's primary
                          address, defined in feet, based on NAD 83 - State
                          Plane Eastern IL
                        field_name: ycoordinate
                        name: YCOORDINATE
                      - datatype: number
                        description: The latitude of the property's primary address
                        field_name: latitude
                        name: LATITUDE
                      - datatype: number
                        description: The longitude of the property's primary address
                        field_name: longitude
                        name: LONGITUDE
                      - datatype: point
                        description: >-
                          The location of the property's primary address in a
                          format that allows for creation of maps and other
                          geographic operations on this data portal
                        field_name: location
                        name: LOCATION
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_rpca_8um6'
                        name: Boundaries - ZIP Codes
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_vrxf_vc4k'
                        name: Community Areas
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_6mkv_f3dw'
                        name: Zip Codes
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_bdys_3d7i'
                        name: Census Tracts
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_43wa_7qmu'
                        name: Wards
                      - datatype: number
                        description: null
                        field_name: ':@computed_region_awaf_s7ux'
                        name: Historical Wards 2003-2015
                    created_at: '2011-09-30T12:00:08Z'
                    custom_fields:
                      - field: >-
                          Changes and Other Historical Information Useful to
                          Understanding This Dataset
                        section: Metadata
                        value: >-
                          https://www.google.com/search?q=site:data.cityofchicago.org/stories+"Related+dataset+ID+s"+"ydr8-5enu"
                      - field: Data Owner
                        section: Metadata
                        value: Department of Buildings
                      - field: Frequency
                        section: Metadata
                        value: Data are updated daily
                      - field: Time Period
                        section: Metadata
                        value: 2006 to present
                    description: >-
                      This dataset includes information about building permits
                      issued by the City of Chicago from 2006 to the present,
                      excluding permits that have been voided or revoked after
                      issuance. Most types of permits are issued subject to
                      payment of the applicable permit fee. Work under a permit
                      may not begin until the applicable permit fee is paid. For
                      more information about building permits, see
                      http://www.chicago.gov/permit.
                    id: ydr8-5enu
                    license:
                      id: SEE_TERMS_OF_USE
                      name: See Terms of Use
                      terms_link: null
                    metadata_url: https://data.cityofchicago.org/api/views/ydr8-5enu.json
                    name: Building Permits
                    observed_at_ms: 1791566243621
                    permalink: https://data.cityofchicago.org/d/ydr8-5enu
                    portal: data.cityofchicago.org
                    provenance: official
                    publication_date: '2025-10-14T22:14:12Z'
                    row_count: 849932
                    rows_updated_at: '2026-10-09T12:06:53Z'
                    tags:
                      - permits
                      - buildings
                    view_last_modified: '2026-05-29T18:56:10Z'
                    view_type: tabular
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Describe one dataset on a Socrata portal: every column (field name
            used in SoQL, display name, Socrata type, description), exact row
            count (count(*)), category, tags, attribution, license, provenance,
            creation/publication/last-update timestamps and portal-defined
            metadata such as update frequency or owning department. The portal
            must be a Socrata domain (else invalid_input not_socrata_portal); an
            unknown or private dataset id is not_found.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `api_url` | string |  |

            | `asset_type` | string | dataset, filter, map, chart, file, href...
            |

            | `attribution` | string |  |

            | `attribution_link` | string |  |

            | `category` | string |  |

            | `column_count` | number |  |

            | `columns` | object[] |  |

            | `created_at` | string | ISO 8601. |

            | `custom_fields` | object[] | Portal-defined metadata (update
            frequency, owner department, time period...), at most 40. |

            | `description` | string | Plain text, HTML removed, cut at 4000
            characters. |

            | `id` | string |  |

            | `license` | object |  |

            | `metadata_url` | string | The views API request issued. |

            | `name` | string |  |

            | `observed_at_ms` | number |  |

            | `permalink` | string |  |

            | `portal` | string |  |

            | `provenance` | string | official or community. |

            | `publication_date` | string | ISO 8601. |

            | `row_count` | number | Exact count(*) of rows for tabular
            datasets; null for non-tabular assets. |

            | `rows_updated_at` | string | ISO 8601, last data update. |

            | `tags` | string[] |  |

            | `view_last_modified` | string | ISO 8601, last metadata update. |

            | `view_type` | string | tabular for row data; only tabular assets
            can be queried. |



            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.