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

# Inventory refresh status

> Read the original metadata refresh state and last-good snapshot. An unfinished original run may resume; partial or failed refreshes preserve prior observations.



## OpenAPI

````yaml /openapi/solverapi.openapi.json get /v1/model-inventory/imports/{importId}
openapi: 3.1.0
info:
  description: >-
    Run approved AI models under data, cost, and time limits. A cost limit can
    stop another provider call after recorded spend reaches the limit; it cannot
    reverse a call already in progress. Each finished run returns a receipt
    naming the selected model and provider without including the prompt or model
    output. Use the model catalog for what your organization can run now.
    Provider secrets never appear in API requests or responses. Retry a mutation
    with the same Idempotency-Key and the same request body.
  title: Millwork API
  version: 1.0.0
servers:
  - url: https://api.getmillwork.dev
security: []
tags:
  - description: >-
      Submit work, check its status, cancel it, and read the result. The API
      calls each run an execution.
    name: Runs
  - description: >-
      Register an asynchronous coding agent and manage its repository-bound
      credentials.
    name: Review Composer
  - description: Connect a repository to this organization through the Millwork GitHub App.
    name: GitHub review connections
  - description: A record of how a run was handled, without prompt or result content.
    name: Receipts
  - description: Models this organization can use now.
    name: Models
  - description: Providers and sign-in methods that can be connected.
    name: Available providers
  - description: Provider accounts connected to this organization.
    name: Provider connections
  - description: >-
      Observed account models, exact routes, current readiness, import recovery
      and bounded permission plans. Observations are separate from tested model
      records.
    name: Account model inventory
  - description: >-
      Confirm and recover explicit permission for one exact account route and
      task envelope. Permission does not run a model or record a test.
    name: Exact route permissions
  - description: >-
      One-time browser steps for connecting a provider without sending its
      secret in an API request.
    name: Secure credential setup
  - description: Exact models and provider routes available through connected accounts.
    name: Provider models
  - description: Create, label, list, and revoke organization API keys.
    name: API keys
  - description: Organization members and invitations.
    name: Members
  - description: Metered usage and quota state.
    name: Usage
  - description: Account, plan and allowance snapshot.
    name: Account
  - description: Checkout, billing portal and billing profile.
    name: Billing
  - description: Webhook endpoints, deliveries and replay.
    name: Webhooks
  - description: Organization-scoped compliance export.
    name: Compliance export
  - description: >-
      Models, agents, and skills Millwork can choose for a run. The API calls
      each one an arm.
    name: Registered options
  - description: >-
      Checks that score output and can stop, retry, or choose another option
      within the request policy.
    name: Output checks
  - description: Routing proposals and their review lifecycle.
    name: Repair proposals
  - description: Aggregate evaluation trend and repair history.
    name: Evaluation
  - description: Publisher and release identity records for supported models.
    name: Model definitions
  - description: >-
      Protected provider-credential references. Secret material never appears in
      this API.
    name: Credential references
  - description: Dashboard browser sign-in, sign-up, session lookup, and sign-out.
    name: Browser access
  - description: >-
      Record and recover support requests from the signed-in human session.
      Notification delivery is separate from request status.
    name: Support requests
  - description: Read-only demo session setup.
    name: Demo
  - description: Machine setup and the authenticated organization profile.
    name: Organizations
  - description: Eligible immutable starter presets and typed blockers.
    name: Tenant templates
  - description: Stateless starter plan resolution. No write and no provider call.
    name: Tenant template plans
  - description: Durable starter applications that resume instead of restarting.
    name: Tenant template applications
paths:
  /v1/model-inventory/imports/{importId}:
    get:
      tags:
        - Account model inventory
      summary: Inventory refresh status
      description: >-
        Read the original metadata refresh state and last-good snapshot. An
        unfinished original run may resume; partial or failed refreshes preserve
        prior observations.
      operationId: getModelInventoryImportsByImportId
      parameters:
        - in: path
          name: importId
          required: true
          schema:
            maxLength: 200
            minLength: 1
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  completed_at:
                    anyOf:
                      - type: string
                      - type: 'null'
                  connection_id:
                    type: string
                  failure_code:
                    anyOf:
                      - type: string
                      - type: 'null'
                  import_id:
                    type: string
                  last_good_at:
                    anyOf:
                      - type: string
                      - type: 'null'
                  last_good_snapshot_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                  observed_count:
                    minimum: 0
                    type: integer
                  recovery_action:
                    anyOf:
                      - enum:
                          - wait_or_resume_import
                          - retry_import
                          - reconnect_connection
                          - refresh_current_binding
                          - check_connection
                          - inspect_source_status
                          - review_sync_policy
                          - review_absence_baseline
                          - review_native_source_profile
                          - check_profile_status
                      - type: 'null'
                  result_digest:
                    anyOf:
                      - type: string
                      - type: 'null'
                  started_at:
                    type: string
                  state:
                    enum:
                      - complete
                      - partial
                      - importing
                      - failed
                required:
                  - last_good_snapshot_id
                  - last_good_at
                  - import_id
                  - connection_id
                  - state
                  - started_at
                  - completed_at
                  - observed_count
                  - failure_code
                  - result_digest
                  - recovery_action
                type: object
          description: Default Response
        4XX:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: >-
            Request failure in RFC 7807 format. The `type` field identifies the
            reason. Validation errors list affected fields. Rate and quota
            errors include `retry_after_s` and the `Retry-After` header.
        5XX:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: >-
            Server failure in RFC 7807 format. The response does not include
            internal error details.
      security:
        - bearerAuth: []
        - sessionCookie: []
components:
  schemas:
    Problem:
      additionalProperties: false
      properties:
        blockers:
          items:
            additionalProperties: false
            properties:
              action:
                type: string
              actor:
                type: string
              code:
                enum:
                  - access_unverified
                  - binding_revoked
                  - binding_rotated
                  - identity_unbound
                  - policy_disabled
                  - authority_expired
                  - price_incomplete
                  - capability_unverified
                  - model_details_unverified
                  - invocation_access_unverified
                  - source_profile_unproven
                  - spend_bound_missing
                  - data_policy_unknown
                  - task_unsupported
                  - source_unavailable
                  - profile_status_unverified
                  - evidence_expired
                  - snapshot_changed
                  - plan_changed
                  - consent_missing
                  - quote_expired
                  - version_incompatible
                  - unknown_paid
                  - usage_unreliable
                  - bound_exceeded
                type: string
              evidence_refs:
                items:
                  type: string
                type: array
              message:
                type: string
            required:
              - code
              - actor
              - action
              - message
              - evidence_refs
            type: object
          type: array
        current_offer:
          additionalProperties: false
          properties:
            content_markdown:
              type: string
            display_label:
              type: string
            document_id:
              type: string
            offer_id:
              pattern: ^[a-f0-9]{64}$
              type: string
            published_url:
              format: uri
              type: string
            source_sha256:
              pattern: ^[a-f0-9]{64}$
              type: string
            title:
              type: string
            updated_at:
              format: date-time
              type: string
            version_id:
              type: string
          required:
            - document_id
            - title
            - version_id
            - display_label
            - updated_at
            - source_sha256
            - offer_id
            - content_markdown
            - published_url
          type: object
        current_organization:
          additionalProperties: false
          properties:
            legal_entity_name:
              maxLength: 256
              minLength: 1
              type: string
            profile_revision:
              minimum: 1
              type: integer
          required:
            - profile_revision
            - legal_entity_name
          type: object
        detail:
          description: Short, safe, occurrence-specific description. Never a stack trace.
          type: string
        errors:
          description: Per-field validation failures (validation_failed only).
          items:
            additionalProperties: false
            properties:
              field:
                type: string
              message:
                type: string
            required:
              - field
              - message
            type: object
          type: array
        instance:
          description: Unique id for this occurrence, safe to quote in support requests.
          format: uuid
          type: string
        next_actions:
          items:
            additionalProperties: false
            properties:
              action:
                type: string
              actor:
                type: string
            required:
              - actor
              - action
            type: object
          type: array
        reason:
          enum:
            - agreement_terminated
            - agreement_recovery_required
            - price_changed
          type: string
        reason_code:
          enum:
            - access_unverified
            - binding_revoked
            - binding_rotated
            - identity_unbound
            - policy_disabled
            - authority_expired
            - price_incomplete
            - capability_unverified
            - model_details_unverified
            - invocation_access_unverified
            - source_profile_unproven
            - spend_bound_missing
            - data_policy_unknown
            - task_unsupported
            - source_unavailable
            - profile_status_unverified
            - evidence_expired
            - snapshot_changed
            - plan_changed
            - consent_missing
            - quote_expired
            - version_incompatible
            - unknown_paid
            - usage_unreliable
            - bound_exceeded
          type: string
        retry_after_s:
          description: >-
            Seconds to wait before retrying (rate_limited and quota_exceeded
            only; mirrored as the Retry-After header).
          type: integer
        status:
          description: HTTP status code, duplicated in the body per RFC 7807.
          type: integer
        title:
          description: Human-readable summary of the problem type.
          type: string
        type:
          description: Stable URI that identifies the error type.
          format: uri
          type: string
      required:
        - type
        - title
        - status
        - instance
      type: object
  securitySchemes:
    bearerAuth:
      description: Organization API key for application requests.
      scheme: bearer
      type: http
    sessionCookie:
      description: Dashboard browser session. Do not use this credential in an application.
      in: cookie
      name: solverapi_session
      type: apiKey

````

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