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

# Create an analysis

> Start an analysis of one address or point. The answer is `202 Accepted` with the new
`analysis_id`; poll it with `GET /analyses/{analysis_id}`. Each accepted request
uses one credit from each credit limit set on the key, its organization or a parent organization.




## OpenAPI

````yaml /openapi.yaml post /analyses
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:
  /analyses:
    post:
      tags:
        - Analyses
      summary: Create an analysis
      description: >
        Start an analysis of one address or point. The answer is `202 Accepted`
        with the new

        `analysis_id`; poll it with `GET /analyses/{analysis_id}`. Each accepted
        request

        uses one credit from each credit limit set on the key, its organization
        or a parent organization.
      operationId: createAnalysis
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAnalysisRequest'
            examples:
              address:
                summary: An address
                value:
                  address: 328 Swanston Street, Melbourne VIC 3000, Australia
                  external_location_id: LOC-AU-001
              coordinates:
                summary: Coordinates
                value:
                  latitude: -37.8100434
                  longitude: 144.964321
                  external_location_id: LOC-AU-001
      responses:
        '202':
          description: Analysis accepted and queued for processing.
          headers:
            Location:
              description: Canonical URL of the created analysis resource.
              schema:
                type: string
                format: uri-reference
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
            X-API-Version:
              $ref: '#/components/headers/XApiVersion'
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalysisResponse'
              examples:
                queued:
                  $ref: '#/components/examples/queued'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    CreateAnalysisRequest:
      type: object
      additionalProperties: false
      description: >
        Provide `address`, or both `latitude` and `longitude`, or both. One
        coordinate

        without the other is rejected, and so is the point (0, 0).
      anyOf:
        - required:
            - address
        - required:
            - latitude
            - longitude
      dependentRequired:
        latitude:
          - longitude
        longitude:
          - latitude
      not:
        required:
          - latitude
          - longitude
        properties:
          latitude:
            const: 0
          longitude:
            const: 0
      properties:
        address:
          description: Street address of the location to analyze.
          type: string
          minLength: 1
          maxLength: 500
        latitude:
          description: Latitude of the location in decimal degrees.
          type: number
          minimum: -90
          maximum: 90
        longitude:
          description: Longitude of the location in decimal degrees.
          type: number
          minimum: -180
          maximum: 180
        prefer_address:
          description: When you send both, locate the address instead of the coordinates.
          type: boolean
          default: false
        external_location_id:
          description: Your own identifier for this location.
          type:
            - string
            - 'null'
          maxLength: 255
        name:
          description: Your own name for this location.
          type:
            - string
            - 'null'
          maxLength: 500
        insured_name:
          description: Name of the insured party at this location.
          type:
            - string
            - 'null'
          maxLength: 500
        select_multiple_buildings:
          description: >-
            `true` assesses every building mostly on the parcel, `false` only
            the main building, and `null` or omitting it uses your
            organization's setting. Sending `true` or `false` without permission
            returns `403`.
          type:
            - boolean
            - 'null'
        client_data:
          description: >-
            Your own metadata, returned unchanged in
            `location.input.client_data`.
          type:
            - object
            - 'null'
          additionalProperties: true
    AnalysisResponse:
      description: An analysis with its status, location and buildings.
      type: object
      additionalProperties: false
      required:
        - analysis_id
        - status
        - metadata
        - location
        - buildings
      properties:
        analysis_id:
          description: Unique identifier of the analysis.
          type: string
          format: uuid
        status:
          $ref: '#/components/schemas/AnalysisStatus'
        issues:
          description: Caveats that made the result `partial`; omitted when empty.
          type: array
          items:
            type: string
        failure:
          $ref: '#/components/schemas/FailureDetail'
        metadata:
          $ref: '#/components/schemas/AnalysisMetadata'
        location:
          $ref: '#/components/schemas/LocationData'
        buildings:
          description: Buildings assessed at the location; empty when the analysis failed.
          type: array
          items:
            $ref: '#/components/schemas/BuildingData'
    AnalysisStatus:
      description: >-
        Processing state of the analysis. Poll while it is `queued`,
        `processing` or `awaiting_verification`.
      type: string
      enum:
        - queued
        - processing
        - awaiting_verification
        - completed
        - partial
        - failed
    FailureDetail:
      description: Why the analysis failed.
      type: object
      additionalProperties: false
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/FailureCode'
        message:
          description: Human-readable explanation of the failure.
          type: string
    AnalysisMetadata:
      description: Timing, units, review state and imagery of the analysis.
      type: object
      additionalProperties: false
      required:
        - requested_at
        - units
        - verification
        - imagery
        - links
      properties:
        requested_at:
          description: When the analysis was submitted.
          type: string
          format: date-time
        started_at:
          description: When processing started.
          type: string
          format: date-time
        completed_at:
          description: When processing finished.
          type: string
          format: date-time
        units:
          $ref: '#/components/schemas/UnitSystem'
          description: Unit system of the measurements, set by the `units` query parameter.
        verification:
          $ref: '#/components/schemas/VerificationMetadata'
        imagery:
          $ref: '#/components/schemas/ImageryMetadata'
        links:
          $ref: '#/components/schemas/AnalysisLinks'
    LocationData:
      description: The location and its site-level results.
      type: object
      additionalProperties: false
      required:
        - input
        - geocoding
        - parcel
        - hazards
      properties:
        input:
          $ref: '#/components/schemas/LocationInput'
        geocoding:
          $ref: '#/components/schemas/GeocodingData'
        parcel:
          $ref: '#/components/schemas/ParcelData'
        summary:
          $ref: '#/components/schemas/LocationSummary'
        hazards:
          $ref: '#/components/schemas/HazardsSummary'
          description: Hazards at the location.
        heritage:
          $ref: '#/components/schemas/HeritageSummary'
          description: Heritage protections that apply to the location.
        surroundings:
          $ref: '#/components/schemas/LocationSurroundings'
        property_listings:
          $ref: '#/components/schemas/PropertyListingsEnrichment'
    BuildingData:
      description: One building at the location, with its attributes.
      type: object
      additionalProperties: false
      required:
        - building_id
        - reference
        - geometry
      properties:
        building_id:
          description: Unique identifier of the building.
          type: string
          format: uuid
        reference:
          description: Short building label, such as `B001`.
          type: string
          pattern: ^B\d{3,}$
        building_type:
          description: Whether the structure is permanent or temporary.
          type: string
          enum:
            - BUILDING
            - TEMPORARY_BUILDING
        status:
          $ref: '#/components/schemas/BuildingStatus'
        geometry:
          $ref: '#/components/schemas/BuildingGeometry'
        dimensions:
          $ref: '#/components/schemas/BuildingDimensions'
        construction:
          $ref: '#/components/schemas/BuildingConstruction'
        roof:
          $ref: '#/components/schemas/BuildingRoof'
        facade:
          $ref: '#/components/schemas/BuildingFacade'
        occupancy:
          $ref: '#/components/schemas/BuildingOccupancy'
        classifications:
          $ref: '#/components/schemas/BuildingClassifications'
        valuation:
          $ref: '#/components/schemas/BuildingValuation'
        hazards:
          $ref: '#/components/schemas/HazardsSummary'
          description: Hazards at this building.
        heritage:
          $ref: '#/components/schemas/HeritageSummary'
          description: Heritage protections that apply to this building.
        surroundings:
          $ref: '#/components/schemas/BuildingSurroundings'
    ProblemDetails:
      type: object
      additionalProperties: false
      description: RFC 9457 Problem Details error response (`application/problem+json`).
      required:
        - type
        - title
        - status
        - code
        - detail
        - request_id
      properties:
        type:
          description: URI that identifies the error type.
          type: string
          format: uri
        title:
          description: Short summary of the error type.
          type: string
        status:
          description: HTTP status code.
          type: integer
          minimum: 400
          maximum: 599
        code:
          $ref: '#/components/schemas/ProblemErrorCode'
        detail:
          description: Explanation of this occurrence of the error.
          type: string
        request_id:
          description: Request identifier to quote to support.
          type: string
        errors:
          description: The invalid fields, for a validation error.
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorItem'
    FailureCode:
      description: Machine-readable reason the analysis failed.
      type: string
      enum:
        - imagery_not_found
        - geocoding_failed
        - processing_failed
    UnitSystem:
      description: Unit system for the measurements in the response.
      type: string
      enum:
        - metric
        - imperial
      default: metric
    VerificationMetadata:
      description: Human review state of the analysis.
      type: object
      additionalProperties: false
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/VerificationStatus'
        verified_at:
          description: When the review was finished.
          type: string
          format: date-time
    ImageryMetadata:
      description: Imagery the analysis used.
      type: object
      additionalProperties: false
      required:
        - oblique
        - street_level
      properties:
        aerial:
          $ref: '#/components/schemas/AerialImageryMetadata'
        oblique:
          description: Angled aerial views; empty when none were used.
          type: array
          items:
            $ref: '#/components/schemas/ObliqueImageryItem'
        street_level:
          description: Street-level photo dates, newest first; empty when none were used.
          type: array
          items:
            $ref: '#/components/schemas/StreetLevelImageryItem'
    AnalysisLinks:
      description: Links to this analysis.
      type: object
      additionalProperties: false
      required:
        - self
      properties:
        self:
          description: URL of this analysis in the API.
          type: string
        app_url:
          description: URL of this analysis in the GetRiskData web app.
          type: string
    LocationInput:
      description: What you submitted for this location.
      type: object
      additionalProperties: false
      properties:
        external_location_id:
          description: Your own identifier for this location.
          type: string
        name:
          description: Your own name for this location.
          type: string
        insured_name:
          description: Name of the insured party at this location.
          type: string
        submitted_address:
          description: The address you submitted.
          type: string
        submitted_point:
          $ref: '#/components/schemas/GeoPoint'
          description: The coordinates you submitted.
        client_data:
          description: Your own metadata, as you submitted it.
          type: object
          additionalProperties: true
    GeocodingData:
      description: Where the location is, and how reliably it was placed.
      type: object
      additionalProperties: false
      properties:
        status:
          $ref: '#/components/schemas/GeocodingStatus'
        address:
          description: The address the location resolved to.
          type: string
        point:
          $ref: '#/components/schemas/GeoPoint'
          description: The geocoded point of the location.
        level:
          $ref: '#/components/schemas/GeocodingLevel'
        confidence:
          description: Geocoder confidence in the point, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        method:
          $ref: '#/components/schemas/GeocodingMethod'
        distance_to_primary_building:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the geocoded point to the nearest selected building.
        administrative:
          $ref: '#/components/schemas/AdministrativeArea'
    ParcelData:
      description: The land parcel at the location.
      type: object
      additionalProperties: false
      properties:
        status:
          $ref: '#/components/schemas/ParcelStatus'
        parcel_ids:
          description: Identifiers of the parcels that make up the site.
          type: array
          items:
            type: string
        area:
          $ref: '#/components/schemas/Measurement'
          description: Area of the parcel.
        geometry:
          $ref: '#/components/schemas/GeoJsonGeometry'
          description: Outline of the parcel.
        buildings_on_parcel_count:
          description: Number of buildings on the parcel.
          type: integer
          minimum: 0
        trees_on_parcel_count:
          description: Number of trees detected on the parcel.
          type: integer
          minimum: 0
        source:
          description: Credit for the parcel record, when its license requires one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the parcel record was collected.
    LocationSummary:
      description: Totals and dominant values across the location's buildings.
      type: object
      additionalProperties: false
      required:
        - selected_buildings
        - computed_buildings
      properties:
        selected_buildings:
          description: Number of buildings included in the analysis.
          type: integer
          minimum: 1
        computed_buildings:
          description: Number of buildings our building model assessed.
          type: integer
          minimum: 0
        footprint_area:
          $ref: '#/components/schemas/Measurement'
          description: Total footprint area of the buildings.
        footprint_known_buildings:
          description: Number of buildings with a known footprint area.
          type: integer
          minimum: 0
        assessed_footprint_coverage:
          description: >-
            Share of the footprint area that belongs to assessed buildings, from
            0 to 1.
          type: number
          minimum: 0
          maximum: 1
        floor_area:
          $ref: '#/components/schemas/AreaSummaryBreakdown'
          description: Total net floor area of the buildings.
        gross_floor_area:
          $ref: '#/components/schemas/AreaSummaryBreakdown'
          description: Total gross floor area of the buildings.
        weighting_basis:
          $ref: '#/components/schemas/WeightingBasis'
        weighted_stories:
          description: Average number of stories, weighted by footprint area.
          type: number
          minimum: 0
        max_stories:
          description: Highest number of stories among the buildings.
          type: integer
          minimum: 0
        max_height:
          $ref: '#/components/schemas/Measurement'
          description: Height of the tallest building.
        earliest_year_built:
          description: Earliest year built among the buildings.
          type: integer
        dominant_attributes:
          $ref: '#/components/schemas/LocationDominantAttributes'
        classifications:
          $ref: '#/components/schemas/LocationClassifications'
        condition:
          $ref: '#/components/schemas/LocationConditionSummary'
        valuation:
          $ref: '#/components/schemas/LocationValuationSummary'
        solar_panels_area:
          $ref: '#/components/schemas/Measurement'
          description: Total solar panel area of the buildings.
        solar_assessed_buildings:
          description: Number of buildings assessed for solar panels.
          type: integer
          minimum: 0
        has_attic:
          description: True if any building has an attic.
          type: boolean
        has_garage:
          description: True if any building has a garage.
          type: boolean
        has_acp_panels:
          description: True if any building has aluminum composite panels on its facade.
          type: boolean
    HazardsSummary:
      description: Hazards at the location or building.
      type: object
      additionalProperties: false
      required:
        - perils
      properties:
        screening_score:
          $ref: '#/components/schemas/ScreeningScore'
        perils:
          description: >-
            Assessments keyed by peril; perils no source covers in the country
            are omitted. `clay` is shrink-swell soil, `ground_movement` covers
            landslides and sinkholes, and `wind` is cyclone wind.
          type: object
          propertyNames:
            type: string
            enum:
              - clay
              - seismic
              - radon
              - flood
              - groundwater
              - coastal
              - ground_movement
              - wildfire
              - industrial
              - soil_pollution
              - dam_failure
              - hazmat_pipeline
              - mining
              - avalanche
              - acid_sulfate_soils
              - wind
          additionalProperties:
            $ref: '#/components/schemas/PerilAssessment'
    HeritageSummary:
      description: Heritage protections that apply to the location or building.
      type: object
      additionalProperties: false
      required:
        - status
        - building_status
        - parcel_status
        - area_status
      properties:
        status:
          $ref: '#/components/schemas/HeritageAssessmentStatus'
        building_status:
          description: Whether a protection covers the building itself.
          type: string
        parcel_status:
          description: Whether a protection covers the parcel.
          type: string
        area_status:
          description: Whether the property lies in a protected area.
          type: string
        building_levels:
          description: Protection levels that apply to the building.
          type: array
          items:
            type: string
        area_types:
          description: Types of protected area the property lies in.
          type: array
          items:
            type: string
        nearest_record_distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance to the nearest nearby protection record.
        findings:
          description: The protection records found.
          type: array
          items:
            $ref: '#/components/schemas/HeritageFinding'
    LocationSurroundings:
      description: Features around the location.
      type: object
      additionalProperties: false
      properties:
        nearest_building_distance:
          $ref: '#/components/schemas/Measurement'
          description: >-
            Shortest distance from any selected building to its nearest other
            building.
        road_access:
          $ref: '#/components/schemas/RoadAccessSummary'
        fire_station:
          $ref: '#/components/schemas/FireStationSummary'
    PropertyListingsEnrichment:
      description: Facts from property listings that match the location.
      type: object
      additionalProperties: false
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/PropertyListingsStatus'
        record_count:
          description: Number of matching listings.
          type: integer
          minimum: 0
        floor_area:
          $ref: '#/components/schemas/Measurement'
          description: Floor area stated in the listings.
        floor_area_basis:
          description: >-
            Whether the listed floor area covers one unit, the whole building,
            or is not stated.
          type: string
          enum:
            - unit
            - unspecified
            - building
        floor_area_is_range:
          description: True if the listing gives the floor area as a range.
          type: boolean
        land_area:
          $ref: '#/components/schemas/Measurement'
          description: Land area stated in the listings.
        construction_text:
          description: Construction description from the listing.
          type: string
        property_types:
          description: Property types the listings give.
          type: array
          items:
            type: string
    BuildingStatus:
      description: >-
        Why the building assessment is incomplete; omitted when it completed
        normally.
      type: string
      enum:
        - partial
        - skipped
    BuildingGeometry:
      description: Where the building is, and its outline.
      type: object
      additionalProperties: false
      required:
        - centroid
      properties:
        centroid:
          $ref: '#/components/schemas/GeoPoint'
          description: >-
            Center of the building footprint, or the location's point when there
            is no footprint.
        footprint:
          $ref: '#/components/schemas/GeoJsonGeometry'
          description: Outline of the building.
        distance_to_geocoded_point:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the building to the geocoded point.
    BuildingDimensions:
      description: Size of the building.
      type: object
      additionalProperties: false
      properties:
        footprint_area:
          $ref: '#/components/schemas/Measurement'
          description: Ground area the building covers.
        floor_area:
          $ref: '#/components/schemas/MeasuredAttribute'
          description: Net floor area of all stories.
        gross_floor_area:
          $ref: '#/components/schemas/MeasuredAttribute'
          description: Gross floor area of all stories, including walls.
        height:
          $ref: '#/components/schemas/MeasuredAttribute'
          description: Height of the building from ground to roof top.
        measured_height:
          $ref: '#/components/schemas/MeasuredAttribute'
          description: >-
            Height of the building from a published measurement, when one
            exists.
        nr_of_stories:
          $ref: '#/components/schemas/AssessedString'
          description: Number of stories, as a count, a range or a class such as `20+`.
    BuildingConstruction:
      description: How and when the building was built.
      type: object
      additionalProperties: false
      properties:
        construction_type:
          $ref: '#/components/schemas/AssessedString'
          description: Construction type of the building's structure.
        secondary_construction_type:
          $ref: '#/components/schemas/AssessedStringArray'
          description: Other construction types present in the building.
        year_built:
          $ref: '#/components/schemas/AssessedInteger'
          description: Year the building was built.
        effective_year_built:
          $ref: '#/components/schemas/AssessedInteger'
          description: >-
            Year built adjusted for major renovations; `method` says how this
            value was obtained.
        year_built_range:
          $ref: '#/components/schemas/AssessedString'
          description: Range of years the building was built in.
        quality_of_finishes:
          $ref: '#/components/schemas/AssessedString'
          description: Quality class of the building's finishes.
        has_basement:
          description: True if the building has a basement.
          type: boolean
        has_attic:
          description: True if the building has an attic.
          type: boolean
        has_garage:
          description: True if the building has a garage.
          type: boolean
    BuildingRoof:
      description: The building's roof.
      type: object
      additionalProperties: false
      properties:
        material:
          $ref: '#/components/schemas/RoofMaterialAttribute'
        geometry:
          $ref: '#/components/schemas/AssessedString'
          description: Shape of the roof, such as `GABLE` or `HIP`.
        pitch:
          $ref: '#/components/schemas/AssessedString'
          description: Steepness of the roof, from `FLAT` to `STEEP`.
        condition:
          $ref: '#/components/schemas/AssessedString'
          description: Condition of the roof, from `SEVERE` to `EXCELLENT`.
        condition_score:
          description: Roof condition on a scale from 0 (severe) to 1 (excellent).
          type: number
          minimum: 0
          maximum: 1
        solar_panels:
          $ref: '#/components/schemas/SolarPanelsData'
    BuildingFacade:
      description: The building's outer walls.
      type: object
      additionalProperties: false
      properties:
        material:
          $ref: '#/components/schemas/AssessedString'
          description: Main material of the outer walls.
        condition:
          $ref: '#/components/schemas/AssessedString'
          description: 'Condition of the facade: `GOOD`, `FAIR` or `POOR`.'
        condition_score:
          description: Facade condition on a scale from 0 (poor) to 1 (good).
          type: number
          minimum: 0
          maximum: 1
        has_acp_panels:
          description: True if the facade has aluminum composite panels.
          type: boolean
        acp_panels_percent:
          description: >-
            Share of the facade covered by aluminum composite panels, as a
            percentage.
          type: number
          minimum: 0
          maximum: 100
    BuildingOccupancy:
      description: What the building is used for.
      type: object
      additionalProperties: false
      properties:
        building_use:
          $ref: '#/components/schemas/AssessedString'
          description: Main use of the building, such as residential or office.
        has_mixed_use:
          description: True if the building has more than one use.
          type: boolean
        business_activity:
          $ref: '#/components/schemas/BusinessActivity'
    BuildingClassifications:
      description: Insurance rating codes for this building.
      type: object
      additionalProperties: false
      properties:
        rms_construction:
          description: RMS construction code.
          type: string
        rms_roof_geometry:
          description: RMS roof geometry code.
          type: integer
        air_construction:
          description: AIR construction code.
          type: integer
        air_occupancy:
          description: AIR occupancy code.
          type: integer
        iso_fire:
          description: ISO fire construction class.
          type: string
        fire_class:
          description: >-
            Fire construction class for the RMS code: `FR`, `LFR`, `MIX` or
            `INF`.
          type: string
        atc:
          $ref: '#/components/schemas/CodeDescription'
          description: ATC occupancy code.
        sic:
          $ref: '#/components/schemas/CodeDescription'
          description: SIC occupancy code.
    BuildingValuation:
      description: Estimated replacement cost of the building.
      type: object
      additionalProperties: false
      properties:
        currency:
          description: ISO 4217 currency code.
          type: string
        area_unit:
          description: Area unit of the per-area costs.
          type: string
          enum:
            - m2
            - ft2
        replacement_cost:
          description: Estimated cost to rebuild the building.
          type: number
          minimum: 0
        replacement_cost_per_gross_area:
          description: >-
            Replacement cost per unit of gross floor area; omitted when that
            area is unknown.
          type: number
          minimum: 0
        replacement_cost_per_net_area:
          description: >-
            Replacement cost per unit of net floor area; omitted when that area
            is unknown.
          type: number
          minimum: 0
        calculated_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: When the replacement cost was calculated.
        unpriced_reason:
          description: Why no replacement cost is given, such as `no_floor_area`.
          type: string
    BuildingSurroundings:
      description: Features around the building.
      type: object
      additionalProperties: false
      properties:
        nearby_trees:
          description: Number of trees within 25 m of the building.
          type: integer
          minimum: 0
        tree_distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the building to the nearest detected tree.
        tree_overhang:
          description: Number of detected trees that touch or overhang the building.
          type: integer
          minimum: 0
        nearby_pools:
          description: Number of pools within 25 m of the building.
          type: integer
          minimum: 0
        pool_distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the building to the nearest detected pool.
        nearest_building_distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the building to the nearest other building.
        coast_distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the building to the coast.
        road_access:
          $ref: '#/components/schemas/RoadAccessSummary'
        fire_station:
          $ref: '#/components/schemas/FireStationSummary'
        forest_fraction_100m:
          description: >-
            Share of the land within 100 m of the building that is forest, from
            0 to 1.
          type: number
          minimum: 0
          maximum: 1
        forest_fraction_500m:
          description: >-
            Share of the land within 500 m of the building that is forest, from
            0 to 1.
          type: number
          minimum: 0
          maximum: 1
    ProblemErrorCode:
      description: Machine-readable error code.
      type: string
      enum:
        - invalid_request
        - query_api_key_forbidden
        - unauthorized
        - forbidden
        - insufficient_credits
        - not_found
        - too_many_requests
        - internal_error
        - maintenance_in_progress
        - service_unavailable
    ValidationErrorItem:
      description: One invalid field in the request.
      type: object
      additionalProperties: false
      required:
        - field
        - message
      properties:
        field:
          description: Name of the invalid field.
          type: string
        message:
          description: What is wrong with the field.
          type: string
    VerificationStatus:
      description: Whether a person has reviewed the analysis.
      type: string
      enum:
        - unverified
        - verified
    AerialImageryMetadata:
      description: The top-down aerial imagery used for the analysis.
      type: object
      additionalProperties: false
      properties:
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the imagery was captured.
        resolution_m:
          description: Ground distance one pixel covers, in meters.
          type: number
          minimum: 0
    ObliqueImageryItem:
      description: One angled aerial view used for the analysis.
      type: object
      additionalProperties: false
      required:
        - direction
      properties:
        direction:
          $ref: '#/components/schemas/LayerDirection'
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the view was captured.
        resolution_m:
          description: Ground distance one pixel covers, in meters.
          type: number
          minimum: 0
    StreetLevelImageryItem:
      description: Street-level photos taken on one day.
      type: object
      additionalProperties: false
      properties:
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Day the photos were taken.
    GeoPoint:
      description: A point in WGS 84 coordinates.
      type: object
      additionalProperties: false
      required:
        - latitude
        - longitude
      properties:
        latitude:
          description: Latitude in decimal degrees.
          type: number
          minimum: -90
          maximum: 90
        longitude:
          description: Longitude in decimal degrees.
          type: number
          minimum: -180
          maximum: 180
    GeocodingStatus:
      description: Why geocoding is not normal; omitted when it resolved normally.
      type: string
      enum:
        - uncertain
        - failed
        - pending
    GeocodingLevel:
      description: >-
        How closely the point matches a building: on the roof, under 5 m away,
        on its parcel, or uncertain.
      type: string
      enum:
        - rooftop
        - near_rooftop
        - parcel
        - uncertain
    GeocodingMethod:
      description: >-
        How the point was placed: a geocoder, our site selection, your
        coordinates or a human review.
      type: string
      enum:
        - model
        - site_selection
        - client
        - verified
    Measurement:
      description: A physical quantity with its unit.
      type: object
      additionalProperties: false
      required:
        - value
        - unit
      properties:
        value:
          description: The measured quantity.
          type: number
        unit:
          description: Unit of `value`, such as `m` or `ft2`.
          type: string
    AdministrativeArea:
      description: Administrative areas that contain the location.
      type: object
      additionalProperties: false
      properties:
        country_iso2:
          description: ISO 3166-1 alpha-2 country code.
          type: string
        state_code:
          description: Code of the state or region.
          type: string
        state_name:
          description: Name of the state or region.
          type: string
        county_name:
          description: Name of the county.
          type: string
        commune_code:
          description: Code of the municipality.
          type: string
    ParcelStatus:
      description: Why no parcel is given; omitted when a parcel was found.
      type: string
      enum:
        - not_found
        - not_covered
        - ambiguous
        - failed
        - not_assessed
    GeoJsonGeometry:
      description: A GeoJSON Polygon or MultiPolygon in WGS 84 coordinates.
      anyOf:
        - $ref: '#/components/schemas/GeoJsonPolygon'
        - $ref: '#/components/schemas/GeoJsonMultiPolygon'
    IsoTimestampOrDate:
      type: string
      pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$
      description: ISO 8601 calendar date (`YYYY-MM-DD`) or RFC 3339 UTC timestamp.
    AreaSummaryBreakdown:
      description: A floor area summed over the location's buildings.
      type: object
      additionalProperties: false
      required:
        - total
      properties:
        total:
          $ref: '#/components/schemas/Measurement'
          description: Sum of known and estimated building areas.
        known:
          $ref: '#/components/schemas/Measurement'
          description: >-
            Area of buildings with a known value; present only when some are
            estimated or unresolved.
        estimated:
          $ref: '#/components/schemas/Measurement'
          description: >-
            Area estimated for buildings without a known value; present only
            when there are any.
        status:
          description: '`estimated` when part of the total is estimated.'
          type: string
          enum:
            - estimated
        known_buildings:
          description: >-
            Number of buildings with a known area; present only when some are
            estimated or unresolved.
          type: integer
          minimum: 0
        estimated_buildings:
          description: Number of buildings with an estimated area; omitted when zero.
          type: integer
          minimum: 0
        unresolved_buildings:
          description: >-
            Number of buildings with no known or estimated area; omitted when
            zero.
          type: integer
          minimum: 0
    WeightingBasis:
      description: Area used to weight buildings when choosing dominant classes.
      type: string
      enum:
        - floor_area
        - footprint_area
    LocationDominantAttributes:
      description: Dominant class of each building attribute across the location.
      type: object
      additionalProperties: false
      properties:
        construction_type:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant construction type.
        building_occupancy_type:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant building use.
        roof_material:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant roof material.
        facade_material:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant facade material.
        roof_geometry:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant roof shape.
        roof_pitch:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant roof pitch.
        quality_of_finishes:
          $ref: '#/components/schemas/DominantCategorySummary'
          description: Dominant quality of finishes.
    LocationClassifications:
      description: >-
        Insurance rating codes that cover the largest share of the location's
        building area.
      type: object
      additionalProperties: false
      properties:
        rms_construction:
          description: RMS construction code with the largest share of building area.
          type: string
        fire_class:
          description: 'Fire construction class for that code: `FR`, `LFR`, `MIX` or `INF`.'
          type: string
    LocationConditionSummary:
      description: Condition across the location's buildings.
      type: object
      additionalProperties: false
      properties:
        roof:
          $ref: '#/components/schemas/LocationRoofConditionSummary'
        facade_worst:
          description: Worst facade condition among the buildings.
          type: string
    LocationValuationSummary:
      description: Replacement cost summed over the location's buildings.
      type: object
      additionalProperties: false
      required:
        - known_buildings
        - total_buildings
      properties:
        total_replacement_cost:
          description: >-
            Sum of replacement costs, when all priced buildings share one
            currency.
          type: number
          minimum: 0
        currency:
          description: ISO 4217 currency code of `total_replacement_cost`.
          type: string
        known_buildings:
          description: Number of buildings with a replacement cost.
          type: integer
          minimum: 0
        total_buildings:
          description: Number of buildings in the analysis.
          type: integer
          minimum: 0
        totals_by_currency:
          description: >-
            Totals per currency, present only when priced buildings use more
            than one currency.
          type: array
          items:
            $ref: '#/components/schemas/CurrencyValuationTotal'
    ScreeningScore:
      description: Highest of the clay, seismic and radon grades at the location.
      type: object
      additionalProperties: false
      required:
        - value
      properties:
        value:
          description: The score, from 1 to 5; null when unknown.
          type:
            - integer
            - 'null'
          minimum: 1
          maximum: 5
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null; omitted when a score is given.
        source:
          description: Credit for the source, when its license requires one.
          type: string
    PerilAssessment:
      description: 'Assessment of one peril: whether it was answered, and how severe it is.'
      type: object
      additionalProperties: false
      required:
        - status
      properties:
        status:
          $ref: '#/components/schemas/PerilStatus'
        grade:
          description: >-
            Severity from 1 (lowest) to 5 (highest), on one scale for every
            country. Present when `status` is `graded`.
          type: integer
          minimum: 1
          maximum: 5
        scope:
          description: >-
            Area the answer applies to, such as `property`, `building
            footprint`, `parcel`, `point` or `commune`.
          type: string
    HeritageAssessmentStatus:
      description: How complete the heritage check is.
      type: string
      enum:
        - complete
        - partial
        - pending
        - unavailable
        - not_assessed
        - unsupported
    HeritageFinding:
      description: One heritage protection record on or near the property.
      type: object
      additionalProperties: false
      required:
        - id
        - kind
      properties:
        id:
          description: Identifier of the protection record.
          type: string
        name:
          description: Name of the protected site.
          type: string
        kind:
          description: >-
            Type of record: `monument`, `abords` (monument surroundings),
            `landscape` (protected site), `spr` (heritage district) or
            `proximity` (a nearby record).
          type: string
        category_code:
          description: >-
            Protection category: `AC1` (monument or its surroundings), `AC2`
            (protected site) or `AC4` (heritage district).
          type: string
        level:
          description: >-
            Protection level of a monument: `classe` (classified) or `inscrit`
            (registered).
          type: string
        protection_date:
          description: Date the protection took effect.
          type: string
        distance:
          $ref: '#/components/schemas/Measurement'
          description: Distance from the property to the protected site.
        building_intersects:
          description: True if the protection covers the building.
          type: boolean
        parcel_intersects:
          description: True if the protection covers the parcel.
          type: boolean
    RoadAccessSummary:
      description: >-
        The nearest road vehicles can use; omitted where road data does not
        cover the location.
      type: object
      additionalProperties: false
      properties:
        status:
          description: >
            Why no distance is given; omitted when the distance was measured.

            `no_road_within_300m`: the search found no vehicle road within 300
            m.

            `no_road_within_150m`: the same for a building's own 150 m search.

            `not_assessed`: the building's outline changed after its search.

            `partial`: only part of the search area answered.

            `failed`: the lookup got no answer, which is never a negative.
          type: string
          enum:
            - no_road_within_300m
            - no_road_within_150m
            - partial
            - failed
            - not_assessed
        distance:
          $ref: '#/components/schemas/Measurement'
          description: >-
            Distance to the nearest road vehicles can use, from the location or,
            for a building's own search, from the building.
        road_class:
          description: Class of the nearest road.
          type: string
        access:
          description: Access type of the nearest road, such as `public`.
          type: string
        source:
          description: Credit for the road record, when its license requires one.
          type: string
    FireStationSummary:
      description: The nearest fire station.
      type: object
      additionalProperties: false
      properties:
        status:
          $ref: '#/components/schemas/FireStationStatus'
        name:
          description: Name of the station.
          type: string
        service:
          description: Fire service that runs the station.
          type: string
        crew_type:
          description: How the station is staffed, such as `career` or `volunteer`.
          type: string
        distance:
          $ref: '#/components/schemas/Measurement'
          description: Straight-line distance to the station.
        source:
          description: Credit for the station record, when its license requires one.
          type: string
    PropertyListingsStatus:
      description: Outcome of the search for property listings.
      type: string
      enum:
        - found
        - no_match
        - failed
        - pending
        - not_covered
        - not_requested
    MeasuredAttribute:
      description: An assessed measurement with its unit, confidence and method.
      type: object
      additionalProperties: false
      required:
        - value
      properties:
        value:
          description: The measured value; null when unknown.
          type:
            - number
            - 'null'
        unit:
          description: Unit of `value`, such as `m` or `ft2`.
          type: string
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null or estimated; omitted when it resolved normally.
        confidence:
          description: Confidence in `value`, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        method:
          $ref: '#/components/schemas/AttributeMethod'
          description: How `value` was obtained.
        source:
          description: >-
            Credit for the record behind the value, when its license requires
            one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the value was entered or recorded, when known.
    AssessedString:
      description: An assessed value with its confidence and method.
      type: object
      additionalProperties: false
      required:
        - value
      properties:
        value:
          description: The assessed value; null when unknown.
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null or estimated; omitted when it resolved normally.
        confidence:
          description: Confidence in `value`, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        distribution:
          $ref: '#/components/schemas/ClassDistribution'
          description: Probability of each class the model considered for `value`.
        method:
          $ref: '#/components/schemas/AttributeMethod'
          description: How `value` was obtained.
        source:
          description: >-
            Credit for the record behind the value, when its license requires
            one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the value was entered or recorded, when known.
    AssessedStringArray:
      description: An assessed list of values with its confidence and method.
      type: object
      additionalProperties: false
      required:
        - value
      properties:
        value:
          description: The assessed values; null when unknown.
          anyOf:
            - type: array
              items:
                type: string
            - type: 'null'
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null or estimated; omitted when it resolved normally.
        confidence:
          description: Confidence in `value`, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        method:
          $ref: '#/components/schemas/AttributeMethod'
          description: How `value` was obtained.
        source:
          description: >-
            Credit for the record behind the value, when its license requires
            one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the value was entered or recorded, when known.
    AssessedInteger:
      description: An assessed whole number with its confidence and method.
      type: object
      additionalProperties: false
      required:
        - value
      properties:
        value:
          description: The assessed value; null when unknown.
          type:
            - integer
            - 'null'
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null or estimated; omitted when it resolved normally.
        confidence:
          description: Confidence in `value`, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        method:
          $ref: '#/components/schemas/AttributeMethod'
          description: How `value` was obtained.
        source:
          description: >-
            Credit for the record behind the value, when its license requires
            one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the value was entered or recorded, when known.
    RoofMaterialAttribute:
      description: >-
        Roof material in the standard vocabulary, with regional vocabularies
        under `regional`.
      type: object
      additionalProperties: false
      properties:
        value:
          description: Roof material in the standard vocabulary; null when unknown.
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/AttributeStatus'
          description: Why `value` is null or estimated; omitted when it resolved normally.
        confidence:
          description: Confidence in `value`, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
        distribution:
          $ref: '#/components/schemas/ClassDistribution'
          description: Probability of each class the model considered for `value`.
        method:
          $ref: '#/components/schemas/AttributeMethod'
          description: How `value` was obtained.
        source:
          description: >-
            Credit for the record behind the value, when its license requires
            one.
          type: string
        captured_at:
          $ref: '#/components/schemas/IsoTimestampOrDate'
          description: Date the value was entered or recorded, when known.
        regional:
          $ref: '#/components/schemas/RoofMaterialRegional'
    SolarPanelsData:
      description: >-
        Solar panels on the roof. Presence and area need separate permissions,
        so either can be omitted.
      type: object
      additionalProperties: false
      minProperties: 1
      properties:
        present:
          description: True if the roof has solar panels.
          type: boolean
        area:
          $ref: '#/components/schemas/Measurement'
          description: Roof area covered by solar panels.
        roof_coverage_percent:
          description: Solar panel area as a percentage of the building footprint.
          type: number
          minimum: 0
          maximum: 100
    BusinessActivity:
      description: Businesses listed at the building.
      type: object
      additionalProperties: false
      required:
        - occupant_count
      properties:
        status:
          $ref: '#/components/schemas/BusinessActivityStatus'
        primary:
          description: Main business activity at the building.
          type: string
        occupant_count:
          description: Number of businesses found, including any beyond the 100 listed.
          type: integer
          minimum: 0
        occupants:
          description: Up to 100 of the businesses found.
          type: array
          items:
            $ref: '#/components/schemas/OccupantRecord'
    CodeDescription:
      description: A classification code with its label.
      type: object
      additionalProperties: false
      required:
        - code
      properties:
        code:
          description: The classification code.
          type: integer
        description:
          description: Label of the code.
          type: string
    LayerDirection:
      description: Compass direction the oblique camera faces.
      type: string
      enum:
        - north
        - south
        - east
        - west
    GeoJsonPolygon:
      description: A GeoJSON Polygon.
      type: object
      additionalProperties: false
      required:
        - type
        - coordinates
      properties:
        type:
          description: GeoJSON geometry type.
          type: string
          enum:
            - Polygon
        coordinates:
          description: Rings of longitude and latitude positions, as GeoJSON orders them.
          type: array
          items:
            type: array
            items:
              type: array
              minItems: 2
              maxItems: 3
              items:
                type: number
    GeoJsonMultiPolygon:
      description: A GeoJSON MultiPolygon.
      type: object
      additionalProperties: false
      required:
        - type
        - coordinates
      properties:
        type:
          description: GeoJSON geometry type.
          type: string
          enum:
            - MultiPolygon
        coordinates:
          description: Polygons of longitude and latitude rings, as GeoJSON orders them.
          type: array
          items:
            type: array
            items:
              type: array
              items:
                type: array
                minItems: 2
                maxItems: 3
                items:
                  type: number
    DominantCategorySummary:
      description: The class that covers the largest share of the location's building area.
      type: object
      additionalProperties: false
      required:
        - value
        - assessed_buildings
      properties:
        value:
          description: The dominant class.
          type: string
        shares:
          $ref: '#/components/schemas/ClassDistribution'
          description: Share of each class; omitted when one class covers everything.
        assessed_buildings:
          description: Number of buildings with an assessed class.
          type: integer
          minimum: 0
        assessed_footprint_share:
          description: Share of the footprint area that has an assessed class, from 0 to 1.
          type: number
          minimum: 0
          maximum: 1
    LocationRoofConditionSummary:
      description: Roof condition across the location's buildings.
      type: object
      additionalProperties: false
      required:
        - value
        - rated_buildings
        - scored_buildings
      properties:
        value:
          description: Condition class nearest to the location's roof score.
          type: string
        score:
          description: >-
            Roof condition score weighted by footprint area, from 0 (severe) to
            1 (excellent).
          type: number
          minimum: 0
          maximum: 1
        worst:
          description: Worst roof condition among the buildings.
          type: string
        worst_count:
          description: Number of buildings with the worst roof condition.
          type: integer
          minimum: 0
        rated_buildings:
          description: Number of buildings with a roof condition.
          type: integer
          minimum: 0
        scored_buildings:
          description: Number of buildings included in `score`.
          type: integer
          minimum: 0
    CurrencyValuationTotal:
      description: Replacement cost total for the buildings priced in one currency.
      type: object
      additionalProperties: false
      required:
        - currency
        - amount
        - known_buildings
      properties:
        currency:
          description: ISO 4217 currency code.
          type: string
        amount:
          description: Sum of replacement costs in `currency`.
          type: number
          minimum: 0
        known_buildings:
          description: Number of buildings priced in `currency`.
          type: integer
          minimum: 0
    AttributeStatus:
      description: >-
        Why `value` is null or estimated; omitted when the value resolved
        normally.
      type: string
      enum:
        - estimated
        - unknown
        - failed
        - pending
        - stale
    PerilStatus:
      description: >-
        Whether the source answered for this peril. `no_coverage`, `failed` and
        `not_assessed` mean no answer, never a negative.
      type: string
      enum:
        - present
        - absent
        - graded
        - undetermined
        - no_coverage
        - failed
        - not_assessed
    FireStationStatus:
      description: Why no fire station is given; omitted when one was found.
      type: string
      enum:
        - empty
        - not_covered
        - partial
        - failed
        - not_assessed
    AttributeMethod:
      description: >-
        How the value was obtained: a model, a public record, a calculation, a
        human review or your input.
      type: string
      enum:
        - model
        - record
        - computed
        - verified
        - client
    ClassDistribution:
      description: Probability of each class, from 0 to 1, keyed by class.
      type: object
      additionalProperties:
        type: number
        minimum: 0
        maximum: 1
    RoofMaterialRegional:
      description: >-
        Roof material in regional vocabularies, keyed by region. A key is
        present only when the building has a value you may view.
      type: object
      additionalProperties: false
      properties:
        eu:
          $ref: '#/components/schemas/AssessedString'
          description: Roof material in the European vocabulary.
        us:
          $ref: '#/components/schemas/AssessedString'
          description: Roof material in the US vocabulary.
        jp:
          $ref: '#/components/schemas/AssessedString'
          description: Roof material in the Japanese vocabulary.
    BusinessActivityStatus:
      description: Why business activity is incomplete; omitted when it resolved normally.
      type: string
      enum:
        - unmapped
        - empty
        - not_covered
        - pending
        - partial
        - failed
    OccupantRecord:
      description: One business listed at the building.
      type: object
      additionalProperties: false
      required:
        - name
      properties:
        name:
          description: Name of the business.
          type: string
        category:
          description: Category of the business.
          type: string
        occupancy_type:
          description: Occupancy class the business suggests.
          type: string
  headers:
    RetryAfter:
      description: >-
        Seconds to wait before the next request, while an analysis runs, after a
        429, or during maintenance.
      schema:
        type: integer
        minimum: 1
    XApiVersion:
      description: Major API version serving the response.
      schema:
        type: string
        enum:
          - v1
    XRequestId:
      description: Unique request trace identifier for support and diagnostics.
      schema:
        type: string
  examples:
    queued:
      summary: A new analysis, waiting to start
      value:
        analysis_id: 00000000-0000-4000-8000-000000000001
        status: queued
        metadata:
          requested_at: '2026-11-28T15:58:46Z'
          units: metric
          verification:
            status: unverified
          imagery:
            oblique: []
            street_level: []
          links:
            self: >-
              https://api.getriskdata.com/v1/analyses/00000000-0000-4000-8000-000000000001
            app_url: >-
              https://app.getriskdata.com/v2/properties/00000000-0000-4000-8000-000000000001
        location:
          input:
            external_location_id: LOC-AU-001
            submitted_address: 328 Swanston Street, Melbourne VIC 3000, Australia
          geocoding:
            status: pending
          parcel:
            status: not_assessed
          hazards:
            perils: {}
        buildings: []
    invalid_request:
      summary: A field failed validation
      value:
        type: https://api.getriskdata.com/v1/errors/invalid-request
        title: Invalid request
        status: 400
        code: invalid_request
        detail: The request body does not match CreateAnalysisRequest.
        request_id: 4f0c2a9e8d7b4c1fa6e3b2d1c0f9e8a7
        errors:
          - field: latitude
            message: Input should be a valid number
    query_api_key_forbidden:
      summary: The API key was sent in the query string
      value:
        type: https://api.getriskdata.com/v1/errors/query-api-key-forbidden
        title: API key in query or body is not allowed
        status: 400
        code: query_api_key_forbidden
        detail: >-
          Pass the API key in the Authorization Bearer header instead of query
          parameters or the request body.
        request_id: 4f0c2a9e8d7b4c1fa6e3b2d1c0f9e8a7
        errors:
          - field: api_key
            message: Credentials must not be sent in query parameters or request body.
  responses:
    BadRequest:
      description: >-
        Malformed request, validation failure, or forbidden query/body
        `api_key`.
      headers:
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
          examples:
            invalid_request:
              $ref: '#/components/examples/invalid_request'
            query_api_key_forbidden:
              $ref: '#/components/examples/query_api_key_forbidden'
    Unauthorized:
      description: Missing or invalid API key credentials.
      headers:
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    Forbidden:
      description: >-
        The key's role may not do this, or a credit limit on the key, its
        organization or a parent organization has no credit left.
      headers:
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    TooManyRequests:
      description: >-
        The API key started too many analyses; no credit was charged. Retry
        after the indicated delay.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    InternalError:
      description: Unexpected internal processing or serialization failure.
      headers:
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
    ServiceUnavailable:
      description: >-
        Service is temporarily unavailable (for example, during scheduled
        maintenance).
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-API-Version:
          $ref: '#/components/headers/XApiVersion'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/ProblemDetails'
  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.