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

# Set report request roof point

> Names the roof of a report request that waits on its outline. The RoofKit AI then traces that roof again, as Pick the roof does in the app. Send it when `attention_reason` is `needs_outline` and `attention_detail` is `roof_not_found`, `address_not_on_roof`, or `roof_check`. The point must be on the roof, within 100 m of the address of the request. The address stays the address of the report. The answer is 202 with the request back at `preparing`. A traced run uses outline credits, as the first run did. The run acts as the API key or member that created the request, which must still be able to prepare reports. A request takes at most 12 roof points.


**Required scopes:** `reports.write`


## OpenAPI

````yaml /api-reference/openapi.yaml post /api/v1/report-requests/{request_id}/roof-point
openapi: 3.1.0
info:
  title: RoofKit Partner API
  version: 1.0.0
  summary: REST JSON API for external RoofKit partner integrations.
  contact:
    name: RoofKit Engineering
  description: >
    RoofKit Partner API v1 authenticates requests with workspace API keys. API
    keys bind each request to exactly one workspace; Partner API paths do not
    accept roofer_id, workspace_id, or tenant identifiers. Authenticated
    endpoints are limited to 60 requests per minute per API key, method, and
    route template; invalid authentication attempts are limited separately at 20
    requests per minute per client and endpoint. Date-time parameters and fields
    accept ISO 8601 with Z or a ±HH:MM offset, for example 2026-09-07T04:00:00Z
    or 2026-09-07T00:00:00-04:00. Both name the same instant and return the same
    result. Encode + as %2B in a query string. Responses return UTC.


    A date-time without an offset, for example 2026-09-07T04:00:00, is
    deprecated. Until the sunset on 2027-01-10T00:00:00Z it is read as UTC, and
    the response carries a `Deprecation` header (RFC 9745) and a `Sunset` header
    (RFC 8594). From the sunset, Z or a ±HH:MM offset is required. A date-time
    without an offset then returns 400 with the `VALIDATION_ERROR` code, and the
    response carries no `Deprecation` or `Sunset` header.


    Each API key holds only the scopes that a workspace owner or admin chose
    when the key was created, and its scopes never change. Each operation lists
    the scopes it requires in `x-required-scopes`. A new key in Settings starts
    on the Read-only preset: `leads.read`, `analytics.read`, `reports.read`, and
    `data_objects.read`. A Read-only key can call every read operation except
    exports, Sales Visualizer reads, and trashed Data Objects, and it cannot
    call any write operation. A call that needs a scope the key does not hold
    returns 403 `FORBIDDEN`, and `error.details.required_scope` names a missing
    scope.
servers:
  - url: https://api.roofkit.ai
    description: Canonical RoofKit Partner API origin
security:
  - ApiKeyBearer: []
tags:
  - name: Foundation
    description: Authentication and contract foundation endpoints.
  - name: Leads
    description: Partner CRM lead sync endpoints.
  - name: Attribution
    description: >-
      Partner marketing attribution, campaign analytics, and event ingestion
      endpoints.
  - name: Pipeline
    description: Partner-readable lead pipeline metadata.
  - name: Reports
    description: Partner report import, listing, fetch, export, and download endpoints.
  - name: Visualizer
    description: >-
      Partner Sales Visualizer creation, generation, hosted photo upload links,
      image reads, session history, and share-link endpoints.
  - name: Estimates
    description: Partner Budget Estimate creation and reads for the key-bound workspace.
  - name: Objects
    description: >-
      Partner Data Objects discovery, schema, records, relations, views, and
      admin endpoints.
  - name: Webhooks
    description: >-
      Webhook endpoints of the key workspace, which receive workspace events
      such as an edited report.
paths:
  /api/v1/report-requests/{request_id}/roof-point:
    post:
      tags:
        - Reports
      summary: Set report request roof point
      description: >
        Names the roof of a report request that waits on its outline. The
        RoofKit AI then traces that roof again, as Pick the roof does in the
        app. Send it when `attention_reason` is `needs_outline` and
        `attention_detail` is `roof_not_found`, `address_not_on_roof`, or
        `roof_check`. The point must be on the roof, within 100 m of the address
        of the request. The address stays the address of the report. The answer
        is 202 with the request back at `preparing`. A traced run uses outline
        credits, as the first run did. The run acts as the API key or member
        that created the request, which must still be able to prepare reports. A
        request takes at most 12 roof points.
      operationId: Set report request roof point
      parameters:
        - $ref: '#/components/parameters/ReportRequestId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportRequestRoofPointRequest'
            example:
              lat: 26.78438
              lng: -80.03866
      responses:
        '202':
          description: The roof point is set. The AI traces that roof in the background.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
            Idempotency-Replayed:
              $ref: '#/components/headers/IdempotencyReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportRequestResponse'
        '400':
          $ref: '#/components/responses/ReportRequestRoofPointValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/ReportRequestRoofPointConflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    ReportRequestId:
      name: request_id
      in: path
      required: true
      x-docs-test-value: rrq_00000000-0000-4000-8000-000000000000
      schema:
        type: string
        pattern: ^rrq_[0-9a-fA-F-]{36}$
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      description: >-
        A unique value for each new request, such as a UUID. Send the same value
        to retry a request safely. The same key and payload replay the first
        response with `Idempotency-Replayed: true`.
      schema:
        type: string
        minLength: 1
        maxLength: 160
  schemas:
    ReportRequestRoofPointRequest:
      type: object
      additionalProperties: false
      required:
        - lat
        - lng
      properties:
        lat:
          type: number
          minimum: -90
          maximum: 90
          description: The latitude of a point on the roof to trace.
        lng:
          type: number
          minimum: -180
          maximum: 180
          description: The longitude of a point on the roof to trace.
    ReportRequestResponse:
      type: object
      additionalProperties: false
      required:
        - report_request
      properties:
        report_request:
          $ref: '#/components/schemas/ReportRequest'
        reused:
          type: boolean
          description: >-
            True when a live request with the same `external_report_id` answered
            the create.
    ReportRequest:
      type: object
      additionalProperties: false
      required:
        - id
        - status
        - report_id
        - address
        - render_3d
        - created_at
        - updated_at
      properties:
        id:
          type: string
          example: rrq_00000000-0000-4000-8000-000000000000
        source:
          type: string
          description: >-
            Who asked for the report. `jobnimbus` is a request that an
            inspection booked in JobNimbus started.
          enum:
            - partner_api
            - jobnimbus
        status:
          type: string
          enum:
            - preparing
            - needs_attention
            - rendering
            - ready
            - failed
        attention_reason:
          oneOf:
            - type: string
              enum:
                - needs_outline
                - preparation_failed
                - insufficient_credits
            - type: 'null'
        attention_detail:
          description: >
            Why the outline waits, when `attention_reason` is `needs_outline`.
            `roof_not_found`: the AI found no roof at the address point.
            `address_not_on_roof`: the AI found a roof, but the address point is
            not on it. `roof_check`: the AI traced the nearest building, away
            from the address, and the team confirms it.
            `manual_outline_required`: the AI cannot trace this roof, and a new
            run gives the same answer, such as for a roof with an inner
            courtyard. The team draws the outline. Null when the team chose to
            draw the outline, when the AI run failed and a new run may trace the
            roof, or when a RoofKit setting stops the AI. For the first three
            values, send the roof point to `POST
            /api/v1/report-requests/{request_id}/roof-point`.
          oneOf:
            - type: string
              enum:
                - roof_not_found
                - address_not_on_roof
                - roof_check
                - manual_outline_required
            - type: 'null'
        failure_code:
          type:
            - string
            - 'null'
        report_id:
          type: string
        external_report_id:
          type:
            - string
            - 'null'
        external_id:
          type:
            - string
            - 'null'
          description: The reference that you sent with the create.
        address:
          type: string
        revision_id:
          type:
            - string
            - 'null'
          description: >-
            The report revision that the measurements, the PDF and the 3D model
            describe.
        revision_number:
          type:
            - integer
            - 'null'
          description: The number of that revision. It goes up with each edit in RoofKit.
        pending_revision_id:
          type:
            - string
            - 'null'
          description: >-
            An edit in RoofKit whose deliverables RoofKit is still making. Null
            when there is none.
        update_failure_code:
          type:
            - string
            - 'null'
          description: >-
            Why the last edit could not make its deliverables. The body then
            keeps the last delivered revision.
        edit_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            The report in the RoofKit app, where a team member signs in and
            edits the outline.
        measurements:
          oneOf:
            - $ref: '#/components/schemas/ReportRequestMeasurements'
            - type: 'null'
        report_pdf:
          oneOf:
            - $ref: '#/components/schemas/ReportExportArtifact'
            - type: 'null'
        report_pdf_failure_code:
          type:
            - string
            - 'null'
        render_3d:
          type: object
          additionalProperties: false
          required:
            - status
          properties:
            status:
              type: string
              enum:
                - pending
                - ready
                - failed
            failure_code:
              type:
                - string
                - 'null'
            download_url:
              type:
                - string
                - 'null'
              format: uri
              description: >-
                The route that downloads the GLB of the house with the API key.
                Set when the status is ready.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        ready_at:
          type:
            - string
            - 'null'
          format: date-time
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
            - code
            - message
            - request_id
          properties:
            code:
              $ref: '#/components/schemas/ErrorCode'
            message:
              type: string
            request_id:
              type: string
            details:
              type: object
              additionalProperties: true
    ReportRequestMeasurements:
      type: object
      additionalProperties: true
      description: >
        The measurements of the revision the request delivered. Keys are stable
        snake_case with the unit in the name. `version` changes only when a key
        is renamed or removed. A new key does not change it. A request that was
        ready before 2026-10-28 keeps the measurements of that day, without the
        newer keys.
      required:
        - version
        - units
        - roof_area_sqft
        - roof_squares
        - facets
        - suggested_waste_pct
        - waste_table
        - area_by_pitch
        - lengths_ft
      properties:
        version:
          type: integer
          example: 1
        units:
          type: object
          properties:
            area:
              type: string
              example: sq_ft
            length:
              type: string
              example: ft
        roof_material:
          description: >
            The roof finish of the report, or null before the team picks one. It
            is the new roof, not the roof that is there now.
          oneOf:
            - type: string
              enum:
                - shingle
                - tile
                - metal
            - type: 'null'
        roof_area_sqft:
          type: number
          description: >-
            Measured roof area before waste, flat faces included. Slabs are not
            roof.
        roof_squares:
          type: number
        sloped_area_sqft:
          type: number
          description: >-
            Roof area of the faces that are not flat. Sloped plus flat is the
            roof area.
        sloped_squares:
          type: number
        flat_area_sqft:
          type: number
          description: >
            Roof area of the flat faces: a face marked as a flat roof, or a face
            under 2/12 after the rise rounds to a whole number.
        flat_squares:
          type: number
        steep_slope_area_sqft:
          type: number
          description: >
            Roof area at 8/12 or steeper after the rise rounds to a whole
            number. The `steep` band of `area_by_pitch_band_sqft` starts at
            10/12.
        steep_slope_squares:
          type: number
        predominant_pitch:
          type:
            - string
            - 'null'
          example: 6/12
        predominant_pitch_rise:
          type:
            - number
            - 'null'
        facets:
          type: integer
        suggested_waste_pct:
          type: number
        waste_table:
          type: array
          items:
            type: object
            properties:
              waste_pct:
                type: number
              area_sqft:
                type: number
              squares:
                type: number
              is_suggested:
                type: boolean
        area_by_pitch:
          type: array
          items:
            type: object
            properties:
              pitch:
                type:
                  - string
                  - 'null'
              pitch_rise:
                type:
                  - number
                  - 'null'
              area_sqft:
                type: number
              share_pct:
                type: number
        area_by_pitch_band_sqft:
          type: object
          properties:
            low:
              type: number
            mid:
              type: number
            steep:
              type: number
        unpitched_area_sqft:
          type: number
        lengths_ft:
          type: object
          description: >
            Line lengths in feet. These keys are the stable names of the roof
            lines. Every key is always present, 0 when the roof has no such
            line.
          required:
            - eaves
            - eaves_flat
            - eaves_sloped
            - rakes
            - ridges
            - hips
            - valleys
            - step_flashing
            - wall_flashing
            - parapets
            - slope_transitions
            - slope_transitions_pitch_to_pitch
            - slope_transitions_flat_to_pitch
            - drip_edge
            - starter
            - ridge_cap
            - ridge_vent
          properties:
            eaves:
              type: number
              description: Eave lines.
            eaves_flat:
              type: number
              description: Eave lines whose faces are all flat.
            eaves_sloped:
              type: number
              description: Eave lines of sloped faces, and eave lines with no face.
            rakes:
              type: number
              description: Rake lines.
            ridges:
              type: number
              description: Ridge lines.
            hips:
              type: number
              description: Hip lines.
            valleys:
              type: number
              description: Valley lines.
            step_flashing:
              type: number
              description: >-
                Step flashing and sidewall lines, where a wall runs up the
                slope.
            wall_flashing:
              type: number
              description: >-
                Apron flashing and endwall lines, where a level wall meets the
                roof.
            parapets:
              type: number
              description: Parapet lines, the low wall around a flat roof.
            slope_transitions:
              type: number
              description: Slope transition lines.
            slope_transitions_pitch_to_pitch:
              type: number
              description: Slope transition lines between two sloped faces.
            slope_transitions_flat_to_pitch:
              type: number
              description: Slope transition lines with a flat face on one side.
            drip_edge:
              type: number
              description: Eaves plus rakes.
            starter:
              type: number
              description: Eaves plus rakes.
            ridge_cap:
              type: number
              description: Ridges plus hips.
            ridge_vent:
              type: number
              description: Ridges, as the price book orders ridge vent.
        penetrations:
          type:
            - object
            - 'null'
          properties:
            skylights:
              type: integer
            chimneys:
              type: integer
            vents:
              type: integer
            pipe_boots:
              type: integer
        walls:
          type:
            - object
            - 'null'
          properties:
            perimeter_ft:
              type: number
            gable_area_sqft:
              type: number
        metal_panels:
          type:
            - object
            - 'null'
          properties:
            stock_ft:
              type: number
            piece_count:
              type: integer
            is_complete:
              type: boolean
    ReportExportArtifact:
      type: object
      additionalProperties: false
      required:
        - export_id
        - report_id
        - revision_id
        - format
        - file_name
        - mime_type
        - size_bytes
        - checksum
      properties:
        export_id:
          type: string
        report_id:
          type: string
        revision_id:
          type:
            - string
            - 'null'
        format:
          $ref: '#/components/schemas/ReportArtifactFormat'
        role:
          type: string
          enum:
            - export
            - manifest
        file_name:
          type: string
        mime_type:
          type: string
        size_bytes:
          type: integer
          minimum: 0
        checksum:
          type: string
        metadata:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
        download_url:
          type: string
          format: uri
    ErrorCode:
      type: string
      enum:
        - UNAUTHORIZED
        - FORBIDDEN
        - RATE_LIMITED
        - VALIDATION_ERROR
        - NOT_FOUND
        - CONFLICT
        - INSUFFICIENT_CREDITS
        - INTERNAL_ERROR
    ReportArtifactFormat:
      type: string
      enum:
        - xml
        - csv
        - xlsx
        - dxf
        - pdf
        - json
        - zip
        - manifest
        - tif
        - png
        - jpg
        - jpeg
        - webp
        - gif
  headers:
    RateLimitLimit:
      description: Maximum requests allowed in the current window.
      schema:
        type: string
    RateLimitRemaining:
      description: Requests remaining in the current window.
      schema:
        type: string
    RateLimitReset:
      description: ISO timestamp when the current rate-limit window resets.
      schema:
        type: string
        format: date-time
    IdempotencyReplayed:
      description: Present and true when a stored successful write response was replayed.
      schema:
        type: string
        enum:
          - 'true'
    RetryAfter:
      description: Seconds until the caller should retry.
      schema:
        type: string
  responses:
    ReportRequestRoofPointValidationError:
      description: >-
        The body is invalid, or the point is too far from the address. A point
        more than 100 m from the address point of the request returns
        `details.max_meters`, the largest distance in meters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            point_too_far:
              summary: The point is more than 100 m from the address
              value:
                error:
                  code: VALIDATION_ERROR
                  message: >-
                    The roof point is 222 m from the address. Send a point
                    within 100 m of it.
                  request_id: req_123
                  details:
                    max_meters: 100
    Unauthorized:
      description: Missing, malformed, revoked, deleted, or unknown API key.
      headers:
        WWW-Authenticate:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InsufficientCredits:
      description: The workspace cannot cover the credit charge for this operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        The API key lacks a required scope, or the workspace is not active. A
        scope failure names a missing scope in `details.required_scope`. When
        the key lookup refuses the call, `details.missing_scopes` lists every
        required scope that the key does not hold.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missing_scope:
              summary: A Read-only key calls a write operation
              value:
                error:
                  code: FORBIDDEN
                  message: 'API key does not include the required scope: leads.write.'
                  request_id: req_123
                  details:
                    required_scope: leads.write
                    missing_scopes:
                      - leads.write
    NotFound:
      description: Resource not found in the key-bound workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ReportRequestRoofPointConflict:
      description: >-
        The Idempotency-Key was used before with a different request, or the
        request cannot take a roof point now. The code is `CONFLICT`, and the
        draft does not change. `details.reason` names the cause.
        `not_waiting_for_roof`: the request does not wait on its outline. When
        the request does not read `needs_attention` with `needs_outline`,
        `details.status` and `details.attention_reason` give its state.
        `team_started_outline`: the team already started the outline in RoofKit.
        `run_user_refused`: the API key or member that the request runs as can
        no longer prepare reports, for example a revoked key or a plan without
        Reports. `roof_point_limit`: the request already took the most roof
        points, given in `details.max_roof_points`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            not_waiting_for_roof:
              summary: The request does not wait on its outline
              value:
                error:
                  code: CONFLICT
                  message: This report request is not waiting for its roof.
                  request_id: req_123
                  details:
                    reason: not_waiting_for_roof
                    status: needs_attention
                    attention_reason: preparation_failed
            team_started_outline:
              summary: The team already started the outline
              value:
                error:
                  code: CONFLICT
                  message: >-
                    The team already started the outline of this report in
                    RoofKit.
                  request_id: req_123
                  details:
                    reason: team_started_outline
            run_user_refused:
              summary: The run user of the request can no longer prepare reports
              value:
                error:
                  code: CONFLICT
                  message: >-
                    The API key or member that this request runs as can no
                    longer prepare reports. RoofKit cannot trace this roof.
                  request_id: req_123
                  details:
                    reason: run_user_refused
            roof_point_limit:
              summary: The request already took the most roof points
              value:
                error:
                  code: CONFLICT
                  message: >-
                    This report request already took 12 roof points. The team
                    draws the outline in RoofKit.
                  request_id: req_123
                  details:
                    reason: roof_point_limit
                    max_roof_points: 12
    RateLimited:
      description: Rate limit exceeded for this key and endpoint or invalid-auth bucket.
      headers:
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal authentication or server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: RoofKit API key
      description: 'Use `Authorization: Bearer rk_live_...`.'

````

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