Skip to main content
POST
Detail

Request contract

  • Method and path: POST /apis/v1/sam-gov/opportunities/detail
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/sam-gov/opportunities/detail
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
opportunity_id
string
required

SAM.gov notice id. Each published version (original or amendment) has its own id; is_latest/latest_opportunity_id in the record point at the current version. Pattern: ^[0-9a-fA-F]{32}$.

fresh
boolean

Always true in practice: every call goes to SAM.gov live with a cache-busting parameter; the workflow keeps no cache.

include_attachments
boolean

List attachments (title, download URL, size, type). Contents are never fetched.

include_history
boolean

Include the version history (original notice and every amendment) as record.history.

Response

Fetch one SAM.gov contract opportunity by its 32-character notice id (the id in https://sam.gov/opp/{id}/view): full description, deadlines, NAICS, set-aside, place of performance, points of contact, award data, attachments (titles and download URLs only) and optionally the amendment history.

The response contains the tool result directly.

The provider identifies records as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.