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

# Get an export

> Returns the export with its current `status`, its warnings and, if it failed, why. After
sending a roof, poll this endpoint every few seconds until the export is `ready` or
`failed`.

**Reading refreshes the status.** If the export is `processing`, this call asks the export
provider for the build's status, at most once every 5 seconds per export, and records the
answer. It never sends or resends anything. An export not `ready` 10 minutes after its
latest version was sent becomes `failed` with reason `build_timeout`, once the export
provider confirms the build has not finished. After any failure you can send the same or a
corrected roof as a new version with `POST /v1/esx-exports/{id}/versions`.

**Before you ask for the file.** You are charged for an export you ask to download, whether
or not it has warnings, so look at `clean` and `major_warnings` first.

An export of another partner, or of the other environment (test or live), returns
`404 not_found`.




## OpenAPI

````yaml GET /v1/esx-exports/{id}
openapi: 3.1.0
info:
  title: OSA Partner API
  version: 1.0.0
  summary: Send claims to adjusters in the OSA app and follow their acceptance.
  description: >
    The OSA Partner API lets a partner's claims system invite adjusters to its
    organisation,

    send them claims, and see whether each claim was accepted or rejected in the
    OSA app.


    **Conventions**

    - All requests and responses are JSON (`application/json`); errors use RFC
    9457 problem
      details (`application/problem+json`).
    - Field names are `snake_case`. Enum values are lowercase (for example
    `flood`,
      `pending_acceptance`), except US state and territory codes, which are the standard
      two-letter USPS codes, and flood zones, which are written as FEMA writes them (for
      example `AE`).
    - Enums are **open**: new values may be added to responses at any time, so
    your code must
      tolerate values it doesn't recognise.
    - Additive changes (new endpoints, new optional request fields, new response
    fields, new
      enum values) are made within `/v1`. Breaking changes go to a new version.
    - Requests are strict: an unknown or misspelled body field or query
    parameter is
      rejected with `422 validation_failed`, so typos can't be silently ignored.
    - Your own claim id (`external_id`) is stored on every claim and returned on
    every claim
      response, so you can match claims without keeping OSA's id.
    - Timestamps are RFC 3339 date-times in UTC. Dates that are calendar dates
    (such as the
      date of loss) are `YYYY-MM-DD` and are never converted between time zones.

    **Keys.** Every request except `GET /v1/health` needs an API key sent as

    `Authorization: Bearer <key>`. Live keys start with `osa_live_`; test keys
    start with

    `osa_test_` and only reach test claims and test accounts.
  contact:
    name: OSA API support
    email: info@osaconnection.com
    url: https://docs.osaconnection.com
servers:
  - url: https://api.osaconnection.com
    description: >-
      Production. Live and test keys both use this host; the key decides which
      data you reach.
security:
  - apiKey: []
tags:
  - name: Claims
    description: >
      Send claims to adjusters, offer them to another adjuster, and poll for
      acceptance.

      `/v1/claims` is always the claims you sent through the API.
  - name: Members
    description: >-
      Invite people to your organisation by their OSAID, with a role, and track
      their invitations.
  - name: ESX exports
    description: >
      Send measurements and get an Xactimate ESX back: check a roof, send it to
      be built, poll

      until it is ready, then ask for the file.
  - name: Account
    description: Check which partner and permissions your API key carries.
  - name: Health
    description: Service availability. No key needed.
paths:
  /v1/esx-exports/{id}:
    get:
      tags:
        - ESX exports
      summary: Get an export
      description: >
        Returns the export with its current `status`, its warnings and, if it
        failed, why. After

        sending a roof, poll this endpoint every few seconds until the export is
        `ready` or

        `failed`.


        **Reading refreshes the status.** If the export is `processing`, this
        call asks the export

        provider for the build's status, at most once every 5 seconds per
        export, and records the

        answer. It never sends or resends anything. An export not `ready` 10
        minutes after its

        latest version was sent becomes `failed` with reason `build_timeout`,
        once the export

        provider confirms the build has not finished. After any failure you can
        send the same or a

        corrected roof as a new version with `POST
        /v1/esx-exports/{id}/versions`.


        **Before you ask for the file.** You are charged for an export you ask
        to download, whether

        or not it has warnings, so look at `clean` and `major_warnings` first.


        An export of another partner, or of the other environment (test or
        live), returns

        `404 not_found`.
      operationId: getEsxExport
      parameters:
        - $ref: '#/components/parameters/EsxExportId'
      responses:
        '200':
          description: The export.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EsxExport'
              examples:
                processing:
                  summary: Still being built
                  value:
                    id: 3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90
                    reference: ORDER-1042
                    test: false
                    status: processing
                    failure: null
                    clean: false
                    major_warnings: 0
                    minor_warnings: 1
                    warnings:
                      - pointer: /input/structures/0/points/4
                        check: 5
                        severity: minor
                        detail: >-
                          point `e`, the faces that meet there put it at
                          different heights (1.7 in apart); built at their
                          average, 16 ft 6.9 in
                    provider_messages: []
                    version: 1
                    created_at: '2026-12-01T15:42:10Z'
                    updated_at: '2026-12-01T15:42:13Z'
                    ready_at: null
                    first_downloaded_at: null
                    claim_number: FL-2026-0091832
                    end_user: null
                    metadata: {}
                ready:
                  summary: Built and ready to be asked for
                  value:
                    id: 3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90
                    reference: ORDER-1042
                    test: false
                    status: ready
                    failure: null
                    clean: false
                    major_warnings: 0
                    minor_warnings: 1
                    warnings:
                      - pointer: /input/structures/0/points/4
                        check: 5
                        severity: minor
                        detail: >-
                          point `e`, the faces that meet there put it at
                          different heights (1.7 in apart); built at their
                          average, 16 ft 6.9 in
                    provider_messages: []
                    version: 1
                    created_at: '2026-12-01T15:42:10Z'
                    updated_at: '2026-12-01T15:42:26Z'
                    ready_at: '2026-12-01T15:42:26Z'
                    first_downloaded_at: null
                    claim_number: FL-2026-0091832
                    end_user: null
                    metadata: {}
                failed:
                  summary: Not ready in time
                  value:
                    id: 8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f
                    reference: ORDER-1043
                    test: false
                    status: failed
                    failure:
                      reason: build_timeout
                      detail: >-
                        The export provider did not finish building within 10
                        minutes. Send the same roof as a new version.
                    clean: true
                    major_warnings: 0
                    minor_warnings: 0
                    warnings: []
                    provider_messages: []
                    version: 1
                    created_at: '2026-12-01T15:44:02Z'
                    updated_at: '2026-12-01T15:54:05Z'
                    ready_at: null
                    first_downloaded_at: null
                    claim_number: null
                    end_user: null
                    metadata: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - apiKey:
            - esx-exports:read
components:
  parameters:
    EsxExportId:
      name: id
      in: path
      required: true
      description: OSA's export id, as returned in the export's `id`.
      schema:
        type: string
        format: uuid
      examples:
        export:
          summary: An export id
          value: 3f0c8a6e-5b1d-4c0e-9a77-2f6d1e4b8c90
  headers:
    RequestId:
      description: >
        The id of this request. Quote it to OSA support. On error responses it
        equals

        `request_id` in the body.
      required: true
      schema:
        type: string
      examples:
        request_id:
          summary: A request id
          value: 7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b
    RetryAfter:
      description: Seconds to wait before retrying.
      required: true
      schema:
        type: integer
        minimum: 1
      examples:
        seconds:
          summary: Retry in 12 seconds
          value: 12
  schemas:
    EsxExport:
      type: object
      description: >
        An export: the roof you sent, on its way to becoming an ESX. `warnings`,
        `major_warnings`,

        `minor_warnings`, `clean`, `provider_messages` and `failure` describe
        the latest version

        only; `version` says which.
      required:
        - id
        - reference
        - test
        - status
        - failure
        - clean
        - major_warnings
        - minor_warnings
        - warnings
        - provider_messages
        - version
        - created_at
        - updated_at
        - ready_at
        - first_downloaded_at
        - claim_number
        - end_user
        - metadata
      properties:
        id:
          type: string
          format: uuid
          description: OSA's id for the export.
        reference:
          type: string
          description: Your own id for the order.
        test:
          type: boolean
          description: >
            `true` for a test export, one sent with a test key: built on a test
            system and never

            charged. The value never changes. A key sees only exports of its own
            environment, so

            the field matters only if you store exports from both keys.
        status:
          type: string
          description: >
            `processing`: received and on its way through the build. `ready`:
            the ESX can be

            asked for. `failed`: not built; `failure` says why. Open list: new
            values may be

            added; treat an unknown value as `processing`.
          enum:
            - processing
            - ready
            - failed
        failure:
          $ref: '#/components/schemas/EsxExportFailure'
        clean:
          type: boolean
          description: '`true` when the latest version has no warnings.'
        major_warnings:
          type: integer
          minimum: 0
          description: The exact number of `major` warnings on the latest version.
        minor_warnings:
          type: integer
          minimum: 0
          description: The exact number of `minor` warnings on the latest version.
        warnings:
          type: array
          description: >
            The latest version's warnings, each with its severity and what OSA
            did about it. At

            most 100; the two counts are exact. When there are more than 100, it
            holds the

            `major` ones first, then the `minor` ones, in check order. Never
            contains a problem of

            severity `error`.
          maxItems: 100
          items:
            $ref: '#/components/schemas/EsxExportProblem'
        provider_messages:
          type: array
          description: >
            What the export provider said about the latest version's file when
            it took it.

            Usually empty. Free text for people, in the export provider's own
            words, which may

            name the provider's products; do not parse it. It does not affect
            `clean`.
          items:
            type: string
        version:
          type: integer
          minimum: 1
          description: >-
            The version of the roof the export is built from. `1` until you send
            a corrected roof.
        created_at:
          type: string
          format: date-time
          description: When the export was created.
        updated_at:
          type: string
          format: date-time
          description: >
            When the export last changed: it moves when the export is created,
            when its `status`

            changes, when a new version is accepted, and when its ESX is first
            asked for. This is

            the field `updated_since` filters on.
        ready_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the latest version became `ready`; `null` until then.
        first_downloaded_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the ESX was first asked for; `null` until then.
        claim_number:
          type:
            - string
            - 'null'
          description: The carrier's claim number, as you sent it; `null` if you sent none.
        end_user:
          type:
            - object
            - 'null'
          description: >-
            Who in your system asked for the export, as you sent it; `null` if
            you sent none.
          properties:
            id:
              type: string
              description: Your own id for the user.
            email:
              type: string
              description: The user's email address.
        metadata:
          type: object
          description: Your own key-value pairs, as you sent them; empty if you sent none.
          additionalProperties:
            type: string
    EsxExportFailure:
      type:
        - object
        - 'null'
      description: >
        Why the latest version was not built. `null` unless `status` is
        `failed`.
      required:
        - reason
        - detail
      properties:
        reason:
          type: string
          description: >
            `build_refused`: the export provider refused the file; correct the
            roof and send a new

            version. `build_failed`: the provider took the file and could not
            build it, or a

            corrected version could not be sent to it; send a new version, or
            contact OSA.

            `build_timeout`: not ready 10 minutes after it was sent, once the
            export provider

            confirms the build has not finished; send the same roof as a new
            version. Open list: new

            values may be added; treat an unknown value as `build_failed`.
          enum:
            - build_refused
            - build_failed
            - build_timeout
        detail:
          type: string
          description: >
            What happened: free text for people, not for parsing; use `reason`.
            For

            `build_refused`, it is in the export provider's own words, which may
            name the

            provider's products.
    EsxExportProblem:
      type: object
      description: >
        One problem with a roof: where it is, which check found it, how serious
        it is and what

        it means. The same shape in the check call's answer and an export's
        `warnings`.
      required:
        - pointer
        - check
        - severity
        - detail
      properties:
        pointer:
          type: string
          description: >-
            JSON Pointer to the place in the request, for example
            `/input/structures/0/faces/8`.
        check:
          type: integer
          minimum: 1
          description: >
            The number of the check that found the problem: 1, the request
            matches the roof

            format; 2, edges and faces refer to things that exist and faces
            close; 3, how edges

            sit on faces; 4, eaves and slope direction; 5, heights where faces
            meet; 6, heights

            given for every section; 7, the property's ZIP and location. More
            checks may be

            added.
        severity:
          type: string
          description: >
            `error`: critical, the roof cannot be built and is refused. `major`
            and `minor`:

            warnings; the roof is built and `detail` says what OSA did. Open
            list: new values

            may be added; treat an unknown value as `major`.
          enum:
            - error
            - major
            - minor
        detail:
          type: string
          description: >-
            What is wrong, naming your own ids, and for a warning what OSA did
            about it.
    Problem:
      type: object
      description: >
        An RFC 9457 problem details object. Match on `code`, which is stable;
        `title` and

        `detail` are for people and may change. Quote `request_id` when
        contacting support.
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      properties:
        type:
          type: string
          format: uri
          description: A link to this error's documentation.
        title:
          type: string
          description: A short summary of the error.
        status:
          type: integer
          description: The HTTP status code.
        detail:
          type: string
          description: What went wrong in this request.
        code:
          type: string
          description: >
            The stable error code. `malformed_request` (400); `invalid_key`
            (401);

            `insufficient_scope`, `not_in_plan` (403); `not_found` (404);
            `duplicate_claim`,

            `claim_already_accepted`, `already_member`, `invitation_pending`,
            `duplicate_export`,

            `export_not_ready` (409); `payload_too_large` (413);
            `validation_failed`,

            `idempotency_key_reused`, `unknown_osaid`, `adjuster_not_a_member`,

            `adjuster_not_accepting`, `environment_mismatch` (422);
            `rate_limited` (429);

            `internal_error` (500); `export_provider_unavailable` (503). Open
            list:

            new values may be added; treat an unknown value as an error you
            don't specifically

            handle, by its HTTP `status`.
          enum:
            - malformed_request
            - invalid_key
            - insufficient_scope
            - not_in_plan
            - not_found
            - duplicate_claim
            - claim_already_accepted
            - already_member
            - invitation_pending
            - duplicate_export
            - export_not_ready
            - payload_too_large
            - validation_failed
            - idempotency_key_reused
            - unknown_osaid
            - adjuster_not_a_member
            - adjuster_not_accepting
            - environment_mismatch
            - rate_limited
            - internal_error
            - export_provider_unavailable
        request_id:
          type: string
          description: The id of this request. Quote it when contacting support.
        errors:
          type: array
          description: For `validation_failed`, each invalid field, parameter or header.
          items:
            type: object
            description: >-
              One problem. Exactly one of `pointer`, `parameter` or `header`
              says where.
            required:
              - detail
            properties:
              pointer:
                type: string
                description: >-
                  JSON Pointer to a body field, for example `/loss/date`. Empty
                  for the whole body.
              parameter:
                type: string
                description: The name of a query or path parameter, for example `limit`.
              header:
                type: string
                description: The name of a request header, for example `Idempotency-Key`.
              detail:
                type: string
                description: What is wrong with it.
              check:
                type: integer
                description: For a roof problem, the number of the check.
              severity:
                type: string
                description: >
                  For a roof problem, how serious it is; a request is refused
                  only when at least

                  one is `error`. Open list: new values may be added; treat an
                  unknown value as

                  `major`.
                enum:
                  - error
                  - major
                  - minor
        existing_claim_id:
          type: string
          format: uuid
          description: >-
            For `duplicate_claim`, the id of the claim that already exists.
            Always a claim your key can read.
        existing_claim_url:
          type: string
          format: uri
          description: >-
            For `duplicate_claim`, the API link to the claim that already
            exists. Always a claim your key can read.
        existing_export_id:
          type: string
          format: uuid
          description: >-
            For `duplicate_export`, the id of the export that already exists.
            Always an export your key can read.
        existing_export_url:
          type: string
          format: uri
          description: >-
            For `duplicate_export`, the API link to the export that already
            exists. Always an export your key can read.
  responses:
    Unauthorized:
      description: >
        The key is missing, malformed, unknown, revoked or expired
        (`invalid_key`).
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            invalid_key:
              summary: invalid_key
              value:
                type: https://docs.osaconnection.com/errors#invalid_key
                title: Invalid API key
                status: 401
                detail: The API key is missing, malformed, revoked or expired.
                code: invalid_key
                request_id: 7f3e9a1c2b4d6e8f0a1b3c5d7e9f1a2b
    Forbidden:
      description: >
        The key is valid but can't do this. `not_in_plan`: the operation is not
        included in your

        organisation's plan and add-ons, whatever the key's own permissions.
        `insufficient_scope`:

        your plan and add-ons include the operation, but the key doesn't have
        the permission it

        needs.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            insufficient_scope:
              summary: insufficient_scope
              value:
                type: https://docs.osaconnection.com/errors#insufficient_scope
                title: Insufficient scope
                status: 403
                detail: This key doesn't have the claims:write permission.
                code: insufficient_scope
                request_id: 0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e
            not_in_plan:
              summary: not_in_plan
              value:
                type: https://docs.osaconnection.com/errors#not_in_plan
                title: Not in plan
                status: 403
                detail: >-
                  Member invitations are not included in your organisation's
                  plan and add-ons.
                code: not_in_plan
                request_id: 1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f
    NotFound:
      description: >
        Nothing with this id exists in your partner account, or your key can't
        see it

        (`not_found`). Another partner's claim, and a real claim requested with
        a test key, both

        return this; so do another partner's export, and an export of the other
        environment (a

        test export asked for with a live key, or a live export with a test
        key).
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            not_found:
              summary: not_found
              value:
                type: https://docs.osaconnection.com/errors#not_found
                title: Not found
                status: 404
                detail: No claim with this id exists in your partner account.
                code: not_found
                request_id: 2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a
            esx_export_not_found:
              summary: not_found (an export)
              value:
                type: https://docs.osaconnection.com/errors#not_found
                title: Not found
                status: 404
                detail: No export with this id exists in your partner account.
                code: not_found
                request_id: 3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b
    ValidationFailed:
      description: >
        The request is invalid (`validation_failed`): a missing, unknown or
        invalid body field,

        query parameter, path parameter or header. `errors` lists each problem:
        `pointer` for a

        body field, `parameter` for a query or path parameter, `header` for a
        header.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            validation_failed:
              summary: validation_failed
              value:
                type: https://docs.osaconnection.com/errors#validation_failed
                title: Validation failed
                status: 422
                detail: The request has 1 invalid field.
                code: validation_failed
                request_id: 8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a
                errors:
                  - parameter: limit
                    detail: must be <= 200
    RateLimited:
      description: >
        Too many requests for this key (`rate_limited`). Wait for the number of
        seconds in

        `Retry-After`, then retry.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            rate_limited:
              summary: rate_limited
              value:
                type: https://docs.osaconnection.com/errors#rate_limited
                title: Rate limited
                status: 429
                detail: This key has exceeded 300 requests per minute.
                code: rate_limited
                request_id: 9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f
    InternalError:
      description: >
        Something failed on OSA's side (`internal_error`). Retry with
        exponential backoff; for

        `POST` requests, reuse the same `Idempotency-Key`. If it persists,
        contact OSA with the

        `request_id`.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
          examples:
            internal_error:
              summary: internal_error
              value:
                type: https://docs.osaconnection.com/errors#internal_error
                title: Internal error
                status: 500
                detail: Something went wrong on our side. Retry later.
                code: internal_error
                request_id: 2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: osa_live_… or osa_test_…
      description: >
        Send your API key as a bearer token: `Authorization: Bearer osa_live_…`.

        Keys are opaque; each belongs to exactly one partner. Keys starting with
        `osa_test_`

        reach only test claims and test accounts. The scopes listed on each
        operation are the

        permissions the key needs. A key's permissions are set when it is issued
        and can be

        changed by OSA on request, never beyond what your plan and add-ons
        include.

        `GET /v1/me` always shows the current set.

````

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