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

# Entities status

> Learn whether a new monthly entity extract was published and get its URL, size, hash and record count before downloading it elsewhere.

## Request contract

* **Method and path:** POST /apis/v1/sam-gov/opportunities/entities-status
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-status`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "sam-gov.opportunities.entities-status",
  "method": "POST",
  "path": "/apis/v1/sam-gov/opportunities/entities-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": {}
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "file_name": {
              "description": "Pin one listed file name (default: the newest SAM_PUBLIC_MONTHLY_V2 file).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

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


## OpenAPI

````yaml openapi/sam-gov.json POST /apis/v1/sam-gov/opportunities/entities-status
openapi: 3.1.0
info:
  description: ''
  title: SAM.gov
  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:
    sam-gov:
      description: ''
      title: SAM.gov
      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: 6afb59b1b1976ca6604a41edfa9dc1c17c5fb2d43858ea29b9cb2e476266ac32
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/sam-gov/opportunities/detail
    - /apis/v1/sam-gov/opportunities/entities-changes
    - /apis/v1/sam-gov/opportunities/entities-get
    - /apis/v1/sam-gov/opportunities/entities-search
    - /apis/v1/sam-gov/opportunities/entities-status
    - /apis/v1/sam-gov/opportunities/exclusions-get
    - /apis/v1/sam-gov/opportunities/exclusions-list
    - /apis/v1/sam-gov/opportunities/exclusions-status
    - /apis/v1/sam-gov/opportunities/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:c982950758c4269bbfbb3dc50d6e8c810f57a755b580abc02a3eb0f8d5f0fc2c
    facts_hash: 6afb59b1b1976ca6604a41edfa9dc1c17c5fb2d43858ea29b9cb2e476266ac32
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: sam-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/sam-gov/opportunities/entities-status:
    post:
      tags:
        - SAM.gov
      summary: Entities status
      description: >-
        Learn whether a new monthly entity extract was published and get its
        URL, size, hash and record count before downloading it elsewhere.
      operationId: sam-gov.opportunities.entities-status
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value: {}
            schema:
              additionalProperties: true
              properties:
                file_name:
                  description: >-
                    Pin one listed file name (default: the newest
                    SAM_PUBLIC_MONTHLY_V2 file).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-18.
                  summary: Official provider example
                  value:
                    bof_file_date: '2026-10-05'
                    bof_line: BOF PUBLIC V2 00000000 20261005 0905712 0008359
                    cadence: >-
                      monthly (public daily entity files do not exist; the
                      folder holds the monthly V2 file and its UTF-8 twin only)
                    content_hash: 7e4d95ff69b33afc8d04556c55b3f1ca-18
                    date_modified_label: Oct 04,2026
                    description: >-
                      This data package contains the entity registration data
                      publicly available under the Freedom of Information Act
                      (FOIA) for those registered in SAM to do business with the
                      Federal government. The monthly file is a refresh file for
                      all active registration records and those which expired in
                      the past six months with the Unique Entity Identifier
                      (UEI) fields added.
                    etag: 7e4d95ff69b33afc8d04556c55b3f1ca-18
                    file_date: '2026-10-05'
                    file_format: ZIP, Pipe-Delimited
                    file_name: SAM_PUBLIC_MONTHLY_V2_20261005.ZIP
                    file_url: >-
                      https://sam.gov/api/prod/fileextractservices/v1/api/download/Entity%20Registration/Public%20V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP?privacy=Public
                    files_listed:
                      - date_modified: Oct 04,2026
                        display_key: SAM_PUBLIC_MONTHLY_V2_20261005.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP
                      - date_modified: Oct 04,2026
                        display_key: SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP
                      - date_modified: Sep 07,2026
                        display_key: SAM_PUBLIC_MONTHLY_V2_20260907.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_MONTHLY_V2_20260907.ZIP
                      - date_modified: Sep 07,2026
                        display_key: SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP
                      - date_modified: Sep 06,2026
                        display_key: SAM_PUBLIC_MONTHLY_V2_20260906.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_MONTHLY_V2_20260906.ZIP
                      - date_modified: Sep 06,2026
                        display_key: SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP
                        file_format: ZIP, Pipe-Delimited
                        key: >-
                          Entity Registration/Public
                          V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP
                    hand_off: true
                    hand_off_reason: >-
                      the monthly extract (149228825 bytes) exceeds the runner's
                      33554432-byte response cap; download file_url (it answers
                      303 to a presigned S3 URL valid for 2700 s; Range requests
                      are honoured) and parse the pipe-delimited .dat (layout
                      v6.0: 1 UNIQUE ENTITY ID, 4 CAGE CODE, 12 LEGAL BUSINESS
                      NAME, 13 DBA NAME, 16-22 physical address, 32 BUS TYPE
                      STRING, 33 PRIMARY NAICS, 35 NAICS CODE STRING, 47-57 GOVT
                      BUS POC, 116 EXCLUSION STATUS FLAG)
                    hash_source: s3_etag
                    inner_entry:
                      compressed_size: 149210042
                      method: 8
                      name: >-
                        SAM_PUBLIC_MONTHLY_V2_20261005_c7d262ab2b63483dbe2bf892f1d18432.dat
                      uncompressed_size: 553044161
                    last_modified_header: Mon, 05 Oct 2026 02:35:59 GMT
                    listing_url: >-
                      https://sam.gov/api/prod/fileextractservices/v1/api/listfiles?domain=Entity%20Registration/Public%20V2&privacy=Public
                    outer_entry:
                      compressed_size: 149228659
                      method: 8
                      name: SAM_PUBLIC_MONTHLY_V2_20261005.ZIP
                      uncompressed_size: 149210274
                    publication_id: SAM_PUBLIC_MONTHLY_V2_20261005.ZIP
                    published_at: '2026-10-05T02:35:59Z'
                    record_count: 905712
                    retrieved_at: '2026-10-18T22:35:33Z'
                    size_bytes: 149228825
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Version check and hand-off for the public monthly entity
            registration extract (SAM_PUBLIC_MONTHLY_V2_YYYYMMDD.ZIP in SAM.gov
            Data Services, about 149 MB): file name as publication_id, S3
            Last-Modified, size and ETag from a 64 KB range read through the
            download route's 303 (the presigned URL is resolved per call and
            never stored), and the record count from the pipe file's BOF line
            decoded from the nested zip heads. hand_off is true because the file
            exceeds the runner's 32 MiB cap; file_url is the sam.gov download
            route. No daily public entity file exists.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `bof_file_date` | string |  |

            | `bof_line` | string |  |

            | `cadence` | string |  |

            | `content_hash` | string | The S3 ETag (multipart: not an MD5). |

            | `date_modified_label` | string | SAM.gov's own dateModified label
            (`Oct 04,2026`). |

            | `description` | string |  |

            | `etag` | string |  |

            | `file_date` | string | YYYY-MM-DD from the file name. |

            | `file_format` | string |  |

            | `file_name` | string |  |

            | `file_url` | string | sam.gov download route; answers 303 to a
            presigned S3 URL valid 2700 s, honours Range. |

            | `files_listed` | object[] |  |

            | `hand_off` | boolean |  |

            | `hand_off_reason` | string |  |

            | `hash_source` | string |  |

            | `inner_entry` | object |  |

            | `last_modified_header` | string |  |

            | `listing_url` | string |  |

            | `outer_entry` | object |  |

            | `publication_id` | string | The extract file name. |

            | `published_at` | string | S3 Last-Modified as ISO 8601. |

            | `record_count` | number | From the BOF line of the pipe file. |

            | `retrieved_at` | string |  |

            | `size_bytes` | number |  |



            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.