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

# Agency

> Toptier agency overview for a fiscal year by CGAC/FREC code (097 Department of Defense, 075 Health and Human Services, 036 Veterans Affairs): name, mission, website, subtier count, DEF codes in use and the fiscal year's award obligations and transaction count.

## Request contract

* **Method and path:** POST /apis/v1/usaspending-gov/agencies/agency
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/usaspending-gov/agencies/agency`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "usaspending-gov.agencies.agency",
  "method": "POST",
  "path": "/apis/v1/usaspending-gov/agencies/agency",
  "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": {
              "fiscal_year": 2025,
              "toptier_code": "097"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "fiscal_year": {
              "description": "Omitted = the current fiscal year.\n\nProvider reference: minimum 2008; maximum 2035.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2035,
                "min": 2008
              }
            },
            "toptier_code": {
              "description": "Pattern: ^[0-9]{3,4}$.",
              "type": "string"
            }
          },
          "required": [
            "toptier_code"
          ],
          "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/usaspending-gov.json POST /apis/v1/usaspending-gov/agencies/agency
openapi: 3.1.0
info:
  description: ''
  title: USAspending
  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:
    usaspending-gov:
      description: ''
      title: USAspending
      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: bd023c3a292175ba2c80967d07c97f1f471561a7f1b5cc9430e15158934aed5b
        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/usaspending-gov/agencies/agency
    - /apis/v1/usaspending-gov/awards/award
    - /apis/v1/usaspending-gov/awards/award-search
    - /apis/v1/usaspending-gov/awards/idv-children
    - /apis/v1/usaspending-gov/awards/subawards
    - /apis/v1/usaspending-gov/awards/transactions
    - /apis/v1/usaspending-gov/recipients/recipient
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:f06465e212675b8de9fc59cf30a5b7948ef03770ed5a2e104f686a571c4b181f
    facts_hash: bd023c3a292175ba2c80967d07c97f1f471561a7f1b5cc9430e15158934aed5b
    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: usaspending-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/usaspending-gov/agencies/agency:
    post:
      tags:
        - USAspending
      summary: Agency
      description: >-
        Toptier agency overview for a fiscal year by CGAC/FREC code (097
        Department of Defense, 075 Health and Human Services, 036 Veterans
        Affairs): name, mission, website, subtier count, DEF codes in use and
        the fiscal year's award obligations and transaction count.
      operationId: usaspending-gov.agencies.agency
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  fiscal_year: 2025
                  toptier_code: '097'
            schema:
              additionalProperties: true
              properties:
                fiscal_year:
                  description: |-
                    Omitted = the current fiscal year.

                    Provider reference: minimum 2008; maximum 2035.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2035
                    min: 2008
                toptier_code:
                  description: 'Pattern: ^[0-9]{3,4}$.'
                  type: string
              required:
                - toptier_code
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: >-
                    Published by the provider on
                    2026-09-15T03:56:32.871236+00:00.
                  summary: Official provider example
                  value:
                    complete: true
                    next_cursor: null
                    records:
                      - abbreviation: DOD
                        about_agency_data: >-
                          For reasons of national security, Department of
                          Defense (including Army, Navy, Air Force, and DOD
                          itself) contract and IDV data is subject to a 90-day
                          publication delay (i.e., DOD procurement awards cannot
                          be published until 90 days have elapsed after the
                          award Action Date). Other DOD data (including
                          financial assistance and account data) are not subject
                          to this delay. Read more about this delay on our About
                          the Data page.
                        agency_id: 1173
                        awards_summary:
                          amount_unit:
                            basis: >-
                              transaction-level award obligations in the fiscal
                              year
                            currency: USD
                            scale: '1'
                          latest_action_date: '2025-09-30T00:00:00'
                          obligations: '501619241301.34'
                          transaction_count: 4516487
                        congressional_justification_url: https://www.defense.gov/cj
                        def_codes:
                          - code: '2'
                            disaster: null
                            public_law: Emergency P.L. 117-70
                            title: Further Extending Government Funding Act
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ70/pdf/PLAW-117publ70.pdf
                          - code: '3'
                            disaster: null
                            public_law: Emergency P.L. 117-103
                            title: Consolidated Appropriations Act, 2022
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ103/pdf/PLAW-117publ103.pdf
                          - code: '6'
                            disaster: null
                            public_law: Emergency P.L. 117-128
                            title: >-
                              Additional Ukraine Supplemental Appropriations
                              Act, 2022
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ128/pdf/PLAW-117publ128.pdf
                          - code: AAA
                            disaster: null
                            public_law: Emergency P.L. 117-180
                            title: >-
                              Continuing Appropriations and Ukraine Supplemental
                              Appropriations Act, 2023
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ180/pdf/PLAW-117publ180.pdf
                          - code: AAB
                            disaster: null
                            public_law: Emergency P.L. 117-328
                            title: Consolidated Appropriations Act, 2023
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ328/pdf/PLAW-117publ328.pdf
                          - code: AAJ
                            disaster: null
                            public_law: Emergency P.L. 118-50
                            title: >-
                              An act making emergency supplemental
                              appropriations for the fiscal year ending
                              September 30, 2024, and for other purposes.
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-118publ50/pdf/PLAW-118publ50.pdf
                          - code: AAK
                            disaster: null
                            public_law: Emergency P.L. 118-158
                            title: American Relief Act, 2025
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-118publ158/pdf/PLAW-118publ158.pdf
                          - code: C
                            disaster: null
                            public_law: Emergency P.L. 115-123
                            title: Bipartisan Budget Act of 2018
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-115publ123/pdf/PLAW-115publ123.pdf
                          - code: E
                            disaster: null
                            public_law: Emergency P.L. 116-20
                            title: >-
                              Additional Supplemental Appropriations for
                              Disaster Relief Act, 2019
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-116publ20/pdf/PLAW-116publ20.pdf
                          - code: G
                            disaster: null
                            public_law: Emergency P.L. 116-93
                            title: Consolidated Appropriations Act, 2020
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-116publ93/pdf/PLAW-116publ93.pdf
                          - code: 'N'
                            disaster: covid_19
                            public_law: Emergency P.L. 116-136
                            title: >-
                              Coronavirus Aid, Relief, and Economic Security Act
                              or the CARES Act
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-116publ136/pdf/PLAW-116publ136.pdf
                          - code: Q
                            disaster: null
                            public_law: >-
                              Not Designated
                              Nonemergency/Emergency/Disaster/Wildfire
                              Suppression
                            title: >-
                              Not Designated
                              Nonemergency/Emergency/Disaster/Wildfire
                              Suppression
                            url: null
                          - code: V
                            disaster: covid_19
                            public_law: Non-emergency P.L. 117-2
                            title: American Rescue Plan Act of 2021
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ2/pdf/PLAW-117publ2.pdf
                          - code: W
                            disaster: null
                            public_law: Emergency P.L. 117-31
                            title: >-
                              Emergency Security Supplemental Appropriations
                              Act, 2021
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ31/pdf/PLAW-117publ31.pdf
                          - code: X
                            disaster: null
                            public_law: Emergency P.L. 117-43
                            title: >-
                              Extending Government Funding and Delivering
                              Emergency Assistance Act
                            url: >-
                              http://www.govinfo.gov/content/pkg/PLAW-117publ43/pdf/PLAW-117publ43.pdf
                        fiscal_year: 2025
                        mission: >-
                          The mission of the Department of Defense is to provide
                          the military forces needed to deter war and to protect
                          the security of our country.
                        name: Department of Defense
                        observed_at_ms: 1789444592871
                        source_messages: []
                        source_url: >-
                          https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025
                        source_vintage: '2026-09-14'
                        subtier_agency_count: 36
                        toptier_code: '097'
                        website: https://www.defense.gov/
                    retrieved_at: '2026-09-15T03:56:32Z'
                    schema_version: 1.0.0
                    source_updated_at: '2026-09-14'
                    source_url: >-
                      https://api.usaspending.gov/api/v2/agency/097/?fiscal_year=2025
                    units:
                      basis: nominal dollars as published by USAspending
                      currency: USD
                      scale: '1'
                    upstream_requests: 3
                    warnings: []
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Toptier agency overview for a fiscal year by CGAC/FREC code (097
            Department of Defense, 075 Health and Human Services, 036 Veterans
            Affairs): name, mission, website, subtier count, DEF codes in use
            and the fiscal year's award obligations and transaction count.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `complete` | boolean | Whether this response satisfied the
            requested operation; false when a secondary source call failed
            (warnings explain). |

            | `next_cursor` | string | Opaque v1:<page>:<hash> cursor bound to
            the filters; null at the end. |

            | `records` | object[] |  |

            | `retrieved_at` | string |  |

            | `schema_version` | string |  |

            | `source_updated_at` | string | USAspending database last-updated
            date from awards/last_updated, null when that call failed. |

            | `source_url` | string |  |

            | `units` | object |  |

            | `upstream_requests` | number |  |

            | `warnings` | 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.