> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getriskdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download the contract (YAML)



## OpenAPI

````yaml /openapi.yaml get /openapi.yaml
openapi: 3.1.0
info:
  title: GetRiskData Public API
  version: 1.0.0
  summary: >-
    Versioned property intelligence API with location aggregates, building
    attributes, and compact per-attribute metadata.
  description: >
    The GetRiskData Public API returns property data for one location at a time:
    where it

    is, its parcel, hazards and surroundings, and each building on it with its
    size,

    construction, roof, occupancy and replacement cost.


    - **Authentication:** send `Authorization: Bearer <api_key>` with every
    request.

    - **Lifecycle:** `POST /analyses` returns `202 Accepted`. Poll `GET
    /analyses/{analysis_id}`,
      waiting `Retry-After` seconds, until `status` is `completed`, `partial` or `failed`.
    - **Versioning:** changes within `v1` only add fields and enum values.
    Ignore any you do not know.

    - **Units:** every measurement carries a `unit`. Pass `units=imperial` for
    feet and square feet.

    - **Absent values:** optional fields without a value are omitted, not sent
    as `null`.
  contact:
    name: GetRiskData API Support
    email: support@getriskdata.com
servers:
  - url: https://api.getriskdata.com/v1
    description: Production public API
  - url: https://app.getriskdata.com/api/public/v1
    description: >-
      The same API on the application host; responses link to the host the
      request used
security:
  - BearerAuth: []
tags:
  - name: Analyses
    description: Submit a location and retrieve its analysis.
  - name: Discovery
    description: Download this OpenAPI contract.
paths:
  /openapi.yaml:
    get:
      tags:
        - Discovery
      summary: Download the contract (YAML)
      operationId: getOpenApiYaml
      responses:
        '200':
          description: The OpenAPI 3.1 contract in YAML. No API key needed.
          content:
            application/yaml:
              schema:
                type: string
      security: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Organization API key passed as `Authorization: Bearer <api_key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.