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

# Get File

> Returns a single file's metadata by its Forerunner UUID, along with the property it is attached to.

This is the metadata only, not the file itself — download the contents from `downloadURL` or `publicURL`.



## OpenAPI

````yaml /developers/v1/openapi.json get /api/v1/files/{id}
openapi: 3.1.0
info:
  title: Forerunner Integration API v1
  version: 1.0.0
  description: >-
    Read and write floodplain data in Forerunner. This is the v1 contract; each
    version is documented separately and evolves on its own.


    v1 is the current version. It covers files, properties, records, and SI/SD,
    and is the one to build against. Its record endpoints handle `Log` records
    only; use v2 for any other record type.


    Every request needs an `Authorization: Bearer <your API key>` header.


    List endpoints return 25 results per page; page through them with `page` and
    read `pageInfo` for the totals. Every JSON response carries an `errors`
    array, empty when the request succeeded; the `401`, `403`, and `429`
    responses are plain text or HTML instead.


    Develop against the staging server, which is a separate account with
    separate API keys and separate data.


    Requests are rate limited per IP at the CDN. A request over the limit is
    answered with a `429` and an HTML body, not the JSON error shape.
servers:
  - url: https://app.withforerunner.com
    description: Production
  - url: https://app.staging.withforerunner.com
    description: Staging, for development and testing
security:
  - bearerAuth: []
tags:
  - name: Files
    description: >-
      Upload, retrieve, and update documents such as Elevation Certificates and
      permits.
  - name: Properties
    description: Query the properties in your account.
  - name: Records
    description: >-
      Read, create, update, and delete `Log` records. Other record types are
      available on v2.
  - name: SI/SD
    description: >-
      Track substantial improvement and substantial damage against your
      community's thresholds.
paths:
  /api/v1/files/{id}:
    get:
      tags:
        - Files
      summary: Get File
      description: >-
        Returns a single file's metadata by its Forerunner UUID, along with the
        property it is attached to.


        This is the metadata only, not the file itself — download the contents
        from `downloadURL` or `publicURL`.
      operationId: getFile
      parameters:
        - name: id
          in: path
          required: true
          description: UUID of the resource in Forerunner.
          schema:
            type: string
            format: uuid
          example: f8a3b2c1-d4e5-4789-abcd-ef0123456789
      responses:
        '200':
          description: Success. `errors` is empty.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1FileGetResponse'
              example:
                errors: []
                file:
                  id: f8a3b2c1-d4e5-4789-abcd-ef0123456789
                  url: >-
                    https://demoville.app.withforerunner.com/files/f8a3b2c1-d4e5-4789-abcd-ef0123456789
                  downloadURL: >-
                    https://demoville.app.withforerunner.com/view-file/f8a3b2c1-d4e5-4789-abcd-ef0123456789
                  publicURL: >-
                    https://demoville.withforerunner.com/view-file/f8a3b2c1-d4e5-4789-abcd-ef0123456789
                  filename: 123_main_st_ec.pdf
                  mimeType: application/pdf
                  property:
                    id: a1b2c3d4-e5f6-4890-abcd-ef0123456789
                    address: 123 Main St, Springfield, IL 62701
                    publicURL: >-
                      https://demoville.withforerunner.com/properties/a1b2c3d4-e5f6-4890-abcd-ef0123456789
                    coordinates:
                      - 39.7817
                      - -89.6501
                    parcel:
                      id: f1e2d3c4-b5a6-4890-8cba-098765432109
                      address: 123 Main St, Springfield, IL 62701
                      parcelId: 12-34-567-890
        '400':
          description: The request failed validation. `errors` names each field at fault.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/V1FileGetResponse'
                  - $ref: '#/components/schemas/APIResponse'
              example:
                errors:
                  - message: Invalid UUID format for id parameter
                    field: id
                file: null
        '401':
          description: >-
            Missing or invalid API key. The body is plain text, not the JSON
            error shape.
        '403':
          description: >-
            Blocked by our web application firewall, which answers with an HTML
            body rather than the JSON error shape. Most often caused by a client
            sending a `PostmanRuntime`, `python-requests`, or `HeadlessChrome`
            `User-Agent`; clear that header and retry.
        '429':
          description: >-
            Too many requests from your IP. Rate limiting is applied at the CDN,
            so the body is HTML rather than the JSON error shape. Back off and
            retry.
components:
  schemas:
    V1FileGetResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/APIError'
          description: >-
            Empty when the request succeeded. Otherwise one entry per failure,
            and the resource fields on the response are empty: `null` for single
            resources, `[]` for lists, with `pageInfo` omitted.
          example: []
        file:
          anyOf:
            - $ref: '#/components/schemas/V1File'
            - type: 'null'
          description: The requested file. Null when no file matched the id.
      required:
        - errors
        - file
      additionalProperties: false
    APIResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/APIError'
          description: >-
            Empty when the request succeeded. Otherwise one entry per failure,
            and the resource fields on the response are empty: `null` for single
            resources, `[]` for lists, with `pageInfo` omitted.
          example: []
      required:
        - errors
      additionalProperties: false
      description: Every response carries an `errors` array alongside its resource fields.
    APIError:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description of what went wrong.
          example: Required
        field:
          type: string
          description: The request field that caused the error, as a dot-separated path.
          example: data.type
      required:
        - message
        - field
      additionalProperties: false
      description: A single validation or processing failure.
    V1File:
      type: object
      properties:
        id:
          type: string
          description: UUID of the file in Forerunner.
          example: f8a3b2c1-d4e5-4789-abcd-ef0123456789
        url:
          type: string
          description: Link to the file's page in Forerunner. Requires an account to open.
          example: >-
            https://demoville.app.withforerunner.com/files/f8a3b2c1-d4e5-4789-abcd-ef0123456789
        downloadURL:
          type: string
          description: Direct download link. Requires an account to open.
          example: >-
            https://demoville.app.withforerunner.com/view-file/f8a3b2c1-d4e5-4789-abcd-ef0123456789
        publicURL:
          description: >-
            Public download link. Null when the file is hidden from the public
            site.
          example: >-
            https://demoville.withforerunner.com/view-file/f8a3b2c1-d4e5-4789-abcd-ef0123456789
          type:
            - string
            - 'null'
        filename:
          type: string
          description: The filename as uploaded.
          example: 123_main_st_ec.pdf
        mimeType:
          type: string
          description: The file's media type.
          example: application/pdf
        property:
          anyOf:
            - $ref: '#/components/schemas/V1FileProperty'
            - type: 'null'
          description: >-
            The property this file is attached to, or null when it is not
            attached to one.
      required:
        - id
        - url
        - downloadURL
        - publicURL
        - filename
        - mimeType
        - property
      additionalProperties: false
      description: A file stored in Forerunner.
    V1FileProperty:
      type: object
      properties:
        id:
          type: string
          description: UUID of the property in Forerunner.
          example: a1b2c3d4-e5f6-4890-abcd-ef0123456789
        address:
          description: >-
            The property's fully qualified address. Null for properties that
            have no address on file.
          example: 123 Main St, Springfield, IL 62701
          type:
            - string
            - 'null'
        publicURL:
          description: >-
            Link to the property's public profile page. Null when the property
            is hidden from the public site.
          example: >-
            https://demoville.withforerunner.com/properties/a1b2c3d4-e5f6-4890-abcd-ef0123456789
          type:
            - string
            - 'null'
        coordinates:
          type: array
          prefixItems:
            - type: number
            - type: number
          items: false
          minItems: 2
          maxItems: 2
          description: '`[latitude, longitude]` in EPSG:4326 (WGS 84).'
          example:
            - 39.7817
            - -89.6501
        parcel:
          anyOf:
            - $ref: '#/components/schemas/V1Parcel'
            - type: 'null'
          description: >-
            The parcel this property sits on. Null for properties with no parcel
            on file.
      required:
        - id
        - address
        - publicURL
        - coordinates
        - parcel
      additionalProperties: false
      description: The property a file is attached to.
    V1Parcel:
      type: object
      properties:
        id:
          type: string
          description: UUID of the parcel in Forerunner.
          example: f1e2d3c4-b5a6-4890-8cba-098765432109
        address:
          description: Address recorded on the parcel.
          example: 123 Main St, Springfield, IL 62701
          type:
            - string
            - 'null'
        parcelId:
          description: >-
            The parcel's identifier, as issued by the assessor. Often the key
            used to match parcels in external, non-Forerunner systems.
          example: 12-34-567-890
          type:
            - string
            - 'null'
      required:
        - id
        - address
        - parcelId
      additionalProperties: false
      description: The parcel a property sits on.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your account's API key, sent as `Authorization: Bearer <your API key>`.
        Keys are issued per environment, so a staging key will not work against
        production.

````

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