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

# Register output check

> Register a verifier.



## OpenAPI

````yaml /openapi/solverapi.openapi.json post /v1/verifiers
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: 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: >-
      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: Read-only demo session setup.
    name: Demo
  - description: Machine setup and the authenticated organization profile.
    name: Organizations
paths:
  /v1/verifiers:
    post:
      tags:
        - Output checks
      summary: Register output check
      description: Register a verifier.
      operationId: postVerifiers
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                display_name:
                  maxLength: 200
                  minLength: 1
                  type: string
                endpoint:
                  additionalProperties: false
                  properties:
                    auth_ref:
                      type: string
                    url:
                      format: uri
                      type: string
                  required:
                    - url
                    - auth_ref
                  type: object
                input_data_classes:
                  items:
                    $ref: '#/components/schemas/DataClass'
                  minItems: 1
                  type: array
                kind:
                  enum:
                    - endpoint
                scoring:
                  additionalProperties: false
                  properties:
                    correctness:
                      enum:
                        - boolean_anchors
                    quality:
                      enum:
                        - scalar_0_1
                  required:
                    - correctness
                    - quality
                  type: object
                version:
                  minLength: 1
                  type: string
              required:
                - display_name
                - version
                - kind
                - endpoint
                - input_data_classes
                - scoring
              type: object
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                additionalProperties: false
                description: >-
                  Registration result. Millwork tests the verifier before
                  setting the status.
                properties:
                  hash:
                    type: string
                  preflight:
                    additionalProperties: false
                    properties:
                      checked_at:
                        format: date-time
                        type: string
                      contract:
                        anyOf:
                          - additionalProperties: false
                            properties:
                              validated:
                                description: >-
                                  true only when the endpoint answered 2xx with
                                  a valid VerifierResult.
                                type: boolean
                              verifier_result:
                                anyOf:
                                  - additionalProperties: false
                                    properties:
                                      anchor_results:
                                        additionalProperties:
                                          type: boolean
                                        type: object
                                      is_correct:
                                        type: boolean
                                      named_metrics:
                                        additionalProperties:
                                          type: number
                                        type: object
                                      quality_score:
                                        type: number
                                    required:
                                      - is_correct
                                      - quality_score
                                    type: object
                                  - type: 'null'
                              violation:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                                description: >-
                                  Contract-violation detail when the endpoint
                                  was reachable but its response failed
                                  validation; null otherwise.
                            required:
                              - validated
                              - verifier_result
                              - violation
                            type: object
                          - type: 'null'
                        description: >-
                          null when the endpoint was unreachable (no response to
                          check).
                      detail:
                        anyOf:
                          - type: string
                          - type: 'null'
                      http_status:
                        anyOf:
                          - type: number
                          - type: 'null'
                        description: >-
                          HTTP status the endpoint answered with; null when no
                          response arrived.
                      outcome:
                        enum:
                          - reachable
                          - unreachable
                        type: string
                      reason_code:
                        anyOf:
                          - enum:
                              - scheme_rejected
                              - dns_resolution_failed
                              - private_range_rejected
                              - probe_timeout
                              - endpoint_unreachable
                              - authentication_failed
                            type: string
                          - type: 'null'
                    required:
                      - outcome
                      - reason_code
                      - http_status
                      - contract
                      - detail
                      - checked_at
                    type: object
                  status:
                    enum:
                      - ready
                      - degraded
                    type: string
                  status_reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                  verifier_id:
                    type: string
                required:
                  - verifier_id
                  - hash
                  - status
                  - status_reason
                  - preflight
                type: object
          description: >-
            Registration result. Millwork tests the verifier before setting the
            status.
        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:
    DataClass:
      enum:
        - public
        - sandbox
        - tenant_internal
    Problem:
      additionalProperties: false
      properties:
        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
        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

````