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

# Add carrier contacts, or correct, confirm, mark as left, report, archive or restore a market's contact

> Records one edit to carrier contacts as new rows with their author and time: added (1 to 200 new contacts, each for the acting seat's office or every office, each naming its carrier by market or by the carrier as a contact list writes it), corrected (a new value beside the source's, which stays visible as replaces), confirmed (still right), left (left the carrier; replaced_by names a contact already on the market, so a replacement on no list is added first) or reported (the contact needs a look: reason left_carrier, details_wrong or other with a note; the contact carries the newest report until a correction or a confirmation). archived (the contact leaves the current list and is served under status archived with who archived it and when; nothing is deleted) or restored (an archived or left contact is current again). Every seat that reads the market's contacts may make every kind of edit. A line is a product_id of /records/products. An AMS 360 contact is never changed; its correction is a value beside it. An added contact that duplicates a current contact at its carrier is skipped, and one whose carrier resolves to no single market is unmatched; rows and totals say which. preview answers the same rows and writes nothing. A contact carries no login, username, password or PIN, and a body that carries one is refused. One Idempotency-Key is one edit: a repeated key answers the first. data is the contact as GET /records/carrier-contacts serves it.



## OpenAPI

````yaml /openapi.generated.json post /records/carrier-contacts/edits
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /records/carrier-contacts/edits:
    post:
      tags:
        - markets
      summary: >-
        Add carrier contacts, or correct, confirm, mark as left, report, archive
        or restore a market's contact
      description: >-
        Records one edit to carrier contacts as new rows with their author and
        time: added (1 to 200 new contacts, each for the acting seat's office or
        every office, each naming its carrier by market or by the carrier as a
        contact list writes it), corrected (a new value beside the source's,
        which stays visible as replaces), confirmed (still right), left (left
        the carrier; replaced_by names a contact already on the market, so a
        replacement on no list is added first) or reported (the contact needs a
        look: reason left_carrier, details_wrong or other with a note; the
        contact carries the newest report until a correction or a confirmation).
        archived (the contact leaves the current list and is served under status
        archived with who archived it and when; nothing is deleted) or restored
        (an archived or left contact is current again). Every seat that reads
        the market's contacts may make every kind of edit. A line is a
        product_id of /records/products. An AMS 360 contact is never changed;
        its correction is a value beside it. An added contact that duplicates a
        current contact at its carrier is skipped, and one whose carrier
        resolves to no single market is unmatched; rows and totals say which.
        preview answers the same rows and writes nothing. A contact carries no
        login, username, password or PIN, and a body that carries one is
        refused. One Idempotency-Key is one edit: a repeated key answers the
        first. data is the contact as GET /records/carrier-contacts serves it.
      operationId: editMarketCarrierContact
      parameters:
        - description: >-
            The member the read is made for (a WorkOS user id). Unset keeps the
            org-wide posture the key alone grants.
          in: header
          name: Nexio-Act-As
          schema:
            description: >-
              The member the read is made for (a WorkOS user id). Unset keeps
              the org-wide posture the key alone grants.
            type: string
        - description: >-
            The acting member's verified email, lowercased. Ignored without
            Nexio-Act-As.
          in: header
          name: Nexio-Act-As-Email
          schema:
            description: >-
              The acting member's verified email, lowercased. Ignored without
              Nexio-Act-As.
            type: string
        - description: The calling application (workbench).
          in: header
          name: Nexio-Consumer
          schema:
            description: The calling application (workbench).
            type: string
        - description: The calling application's build.
          in: header
          name: Nexio-Consumer-Build
          schema:
            description: The calling application's build.
            type: string
        - description: The access vocabulary hash the calling build was generated against.
          in: header
          name: Nexio-Consumer-Vocabulary
          schema:
            description: >-
              The access vocabulary hash the calling build was generated
              against.
            type: string
        - description: >-
            A caller-chosen request id, echoed in the Nexio-Request-Id response
            header.
          in: header
          name: Nexio-Request-Id
          schema:
            description: >-
              A caller-chosen request id, echoed in the Nexio-Request-Id
              response header.
            type: string
        - description: >-
            The caller's remaining budget for this request, in whole
            milliseconds (1 to 10 digits, greater than zero), relative to
            receipt. The engine stops work at the shorter of this and the
            route's own budget, and answers 504 request_timeout when it expires.
            A value above the route budget is capped to it; a malformed value is
            ignored.
          in: header
          name: Nexio-Timeout
          schema:
            description: >-
              The caller's remaining budget for this request, in whole
              milliseconds (1 to 10 digits, greater than zero), relative to
              receipt. The engine stops work at the shorter of this and the
              route's own budget, and answers 504 request_timeout when it
              expires. A value above the route budget is capped to it; a
              malformed value is ignored.
            type: string
        - description: 'One key per edit: a repeated key answers the first.'
          in: header
          name: Idempotency-Key
          required: true
          schema:
            description: 'One key per edit: a repeated key answers the first.'
            maxLength: 128
            minLength: 8
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CarrierContactEditRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CarrierContactEditAnswer'
          description: OK
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Bad Request
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Unprocessable Entity
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Internal Server Error
        '503':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    CarrierContactEditRequest:
      additionalProperties: false
      properties:
        contact:
          $ref: '#/components/schemas/CarrierContactAddedFields'
          deprecated: true
          description: >-
            deprecated: send contacts, a list of one. For added: one new
            contact.
        contact_id:
          description: The contact edited; empty for added.
          maxLength: 300
          type: string
        contacts:
          description: >-
            For added: the new contacts, 1 to 200 (one add is a list of one).
            Each names its carrier by market or carrier, else the request's
            market. A contact that duplicates a current contact at its carrier
            (the same e-mail in any case, or the same name when neither has an
            e-mail) is skipped; a carrier that resolves to no single market
            leaves the contact unmatched.
          items:
            $ref: '#/components/schemas/CarrierContactAddedFields'
          maxItems: 200
          type:
            - array
            - 'null'
        field:
          description: The value a correction changes; product_id sets the contact's line.
          enum:
            - name
            - title
            - contact_type
            - product_id
            - region
            - email
            - phone
            - ext
          type: string
        kind:
          description: >-
            archived takes a contact off the market's current list and keeps it,
            its values and its history; restored makes an archived or left
            contact current again.
          enum:
            - added
            - corrected
            - confirmed
            - left
            - reported
            - archived
            - restored
          type: string
        market:
          description: >-
            The market the edit is on, as GET /records/carrier-contacts takes
            it. Required for every kind but added; for added, the carrier of
            every contact that names none itself.
          maxLength: 600
          type: string
        note:
          description: >-
            For reported: what is wrong, in the reporter's words. Required for
            other.
          maxLength: 300
          type: string
        preview:
          description: >-
            For added: answer what each contact would be (added, skipped or
            unmatched) and write nothing.
          type: boolean
        reason:
          description: >-
            For reported: why the contact needs a look. It left the carrier, its
            details are wrong, or another reason the note gives.
          enum:
            - left_carrier
            - details_wrong
            - other
          type: string
        replaced_by:
          description: >-
            For left: the id of the contact who replaced them, already on this
            market. A replacement on no list is added first, then the contact is
            marked left: two edits.
          maxLength: 300
          type: string
        value:
          description: >-
            The corrected value; for product_id, a product id of
            /records/products.
          maxLength: 300
          type: string
      required:
        - kind
      type: object
    CarrierContactEditAnswer:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/CarrierContactRecord'
          description: >-
            The contact as GET /records/carrier-contacts serves it: the one
            edited, or for an add of one contact the contact added, or the
            current one it duplicates. Absent for a preview and for an add of
            several contacts.
        preview:
          description: True when nothing was written.
          type: boolean
        request_id:
          type: string
        rows:
          description: 'For added: each contact''s outcome, in request order.'
          items:
            $ref: '#/components/schemas/CarrierContactAddResult'
          type:
            - array
            - 'null'
        source:
          $ref: '#/components/schemas/Source'
        totals:
          $ref: '#/components/schemas/CarrierContactAddTotals'
          description: 'For added: the contacts per outcome.'
        unreachable:
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        warnings:
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - preview
        - source
        - unreachable
        - warnings
        - request_id
      type: object
    Problem:
      additionalProperties: false
      properties:
        code:
          description: >-
            The stable machine-readable error code, UPPER_SNAKE_CASE, one
            meaning forever.
          enum:
            - INVALID_ARGUMENT
            - UNAUTHENTICATED
            - CAPABILITY_DENIED
            - NOT_VISIBLE_OR_ABSENT
            - IDEMPOTENT_REQUEST_IN_FLIGHT
            - ETAG_MISMATCH
            - VALIDATION_FAILED
            - IDEMPOTENCY_KEY_PAYLOAD_MISMATCH
            - SOURCE_UNAVAILABLE
            - RATE_LIMITED
            - INTERNAL
            - DEADLINE_EXCEEDED
            - UNAVAILABLE
            - CLIENT_CLOSED_REQUEST
          type: string
        detail:
          description: A human-readable sentence about this occurrence.
          type: string
        details:
          description: >-
            Structured detail for the reason (for example which owner selection
            rule failed). A Records refusal names its reason code in
            details.reason; a projection refusal (SOURCE_UNAVAILABLE) also names
            its closed subtype in details.subtype (admission_pending, no_build,
            binding_changed, agency_admission_unbounded,
            authority_coordinates_changed, guard_absent, derivation_unaccepted),
            and only admission_pending, which clears by itself, also carries
            details.retry_after_ms, equal to retry_after_ms and the Retry-After
            header.
        errors:
          description: Each invalid parameter, for INVALID_ARGUMENT.
          items:
            $ref: '#/components/schemas/ProblemError'
          type:
            - array
            - 'null'
        instance:
          description: The request path this occurrence answered.
          type: string
        reason:
          description: >-
            The finer cause within the code, UPPER_SNAKE_CASE (for example
            SCOPE_UNAVAILABLE under CAPABILITY_DENIED).
          type: string
        request_id:
          description: The request id, as echoed in the Nexio-Request-Id response header.
          type: string
        retry_after_ms:
          description: When a retry may succeed, the wait before it.
          format: int64
          type: integer
        status:
          description: The HTTP status code.
          format: int64
          type: integer
        title:
          description: The HTTP status phrase.
          type: string
        type:
          description: A URI naming the problem type, derived from the code.
          type: string
      required:
        - type
        - title
        - status
        - code
        - request_id
      type: object
    CarrierContactAddedFields:
      additionalProperties: false
      properties:
        carrier:
          description: >-
            The contact's carrier as a contact list writes it ("Natl General",
            "Travelers Insurance"), resolved as the firm's list loads resolve
            it. Used when market is empty.
          maxLength: 300
          type: string
        contact_type:
          maxLength: 300
          type: string
        email:
          maxLength: 300
          type: string
        every_office:
          description: >-
            The contact serves every office; otherwise it serves the acting
            seat's office.
          type: boolean
        ext:
          maxLength: 300
          type: string
        kind:
          enum:
            - person
            - desk
          type: string
        market:
          description: >-
            The contact's carrier: a market as GET /records/carrier-contacts
            takes it.
          maxLength: 600
          type: string
        name:
          maxLength: 300
          type: string
        phone:
          maxLength: 300
          type: string
        product_id:
          description: 'The line the contact handles: a product id of /records/products.'
          maxLength: 300
          type: string
        region:
          maxLength: 300
          type: string
        title:
          maxLength: 300
          type: string
      required:
        - kind
      type: object
    CarrierContactRecord:
      additionalProperties: false
      properties:
        archived:
          $ref: '#/components/schemas/CarrierContactMark'
          description: Who archived the contact and when, until someone restores it.
        fields:
          $ref: '#/components/schemas/CarrierContactRecordFields'
        group:
          description: >-
            Where the acting seat sees the contact: its own office's, every
            office's, another office's, a claims reporting mailbox (a row of the
            claims reporting sheet, named by its Carrier cell), left the
            carrier, or archived.
          enum:
            - seat_office
            - every_office
            - other_offices
            - claims_reporting
            - left
            - archived
          type: string
        history:
          description: >-
            What happened to the contact, newest first: loaded from a list, read
            from AMS 360, added, corrected, confirmed, marked as left, reported,
            archived, restored; each edit with who made it and when, served to
            every seat that reads the contact.
          items:
            $ref: '#/components/schemas/CarrierContactHistoryEntry'
          type:
            - array
            - 'null'
        id:
          description: >-
            The contact's id: list:&lt;key&gt; for a list row,
            ams360:&lt;datasource&gt;:&lt;UWRTID&gt; for an AMS 360 underwriter
            row, user:&lt;key&gt; for a contact a person added. Edits name it.
          type: string
        kind:
          description: >-
            person, desk (a shared mailbox or line) or not_stated (the source
            names no one).
          enum:
            - person
            - desk
            - not_stated
          type: string
        left:
          $ref: '#/components/schemas/CarrierContactLeft'
          description: Who marked the contact as left, when, and who replaced them.
        lineage:
          description: >-
            Every source a value of this contact comes from; each value's from
            names its keys.
          items:
            $ref: '#/components/schemas/CarrierContactLineage'
          type:
            - array
            - 'null'
        offices:
          description: The offices the contact serves, as its sources state them.
          items:
            $ref: '#/components/schemas/CarrierContactOfficeRecord'
          type:
            - array
            - 'null'
        read_only:
          description: >-
            True for an AMS 360 row: AMS 360 is never changed, so a correction
            is a value beside it.
          type: boolean
        region:
          description: >-
            The region the contact serves: the source's region when it states
            one, else the states of the offices it serves.
          type: string
        reported:
          $ref: '#/components/schemas/CarrierContactReport'
          description: >-
            The newest report that the contact needs a look, until someone
            corrects or confirms it.
        status:
          description: >-
            archived when someone archived the contact and no one has restored
            it since, else left when it is marked as left, else current.
          enum:
            - current
            - left
            - archived
          type: string
        works_with:
          description: >-
            The offices the contact serves, and for an AMS 360 row the producers
            whose policies name it.
          items:
            $ref: '#/components/schemas/CarrierContactRelationship'
          type:
            - array
            - 'null'
      required:
        - id
        - kind
        - fields
        - lineage
        - offices
        - region
        - group
        - status
        - read_only
        - works_with
        - history
      type: object
    CarrierContactAddResult:
      additionalProperties: false
      properties:
        carrier:
          description: The carrier as the contact named it.
          type: string
        carrier_label:
          description: >-
            The resolved carrier's name as its contacts carry it, else its
            market.
          type: string
        contact_id:
          description: >-
            For added: the contact's id, the same on a preview and the write
            under one Idempotency-Key.
          type: string
        duplicate_of:
          description: >-
            For skipped: the id of the contact it duplicates, a current one or
            an earlier contact of this request.
          type: string
        email:
          type: string
        market_ref:
          description: The market the carrier resolved to.
          type: string
        name:
          type: string
        reason:
          enum:
            - duplicate
            - carrier_unknown
            - carrier_ambiguous
          type: string
        row:
          description: The contact's position in contacts, from 0.
          format: int64
          type: integer
        status:
          description: >-
            added (written, or on a preview would be), skipped (it duplicates a
            current contact) or unmatched (its carrier names no single market).
          enum:
            - added
            - skipped
            - unmatched
          type: string
      required:
        - row
        - status
        - carrier
      type: object
    Source:
      additionalProperties: false
      properties:
        actor:
          $ref: '#/components/schemas/Actor'
        connection:
          description: >-
            The id of the connection that answered; empty when the read had no
            connection.
          type: string
        coverage:
          $ref: '#/components/schemas/SourceCoverage'
          description: >-
            What the family's data has: late only when its source is older than
            its measured window, and the gaps a reader states where it shows an
            absence for the family.
        elapsed_ms:
          description: A live source's call time for this read.
          format: int64
          type: integer
        family:
          description: The registry family that answered.
          type: string
        freshness:
          description: >-
            The freshness word as served before freshness_promised and
            freshness_observed existed; read those two instead.
          type: string
        freshness_observed:
          description: >-
            What this read observed: settled or prior_stable (the warehouse
            pin), reused (a kept answer of the same statement and data version),
            live (a call answered now), fresh or stale.
          type: string
        freshness_promised:
          description: >-
            What the source promises: pinned (the warehouse, read at a pinned
            instant), live (the system of record, per call), store (the
            platform's own store) or computed (a derived function over other
            reads).
          type: string
        id:
          description: >-
            The registry source id (warehouse, ams360_ems, ...), empty when
            absent.
          type: string
        kind:
          description: >-
            The kind of source that answered: the warehouse, the customer's
            system of record (whichever vendor; the vendor is in id), the
            platform's own store, or absent when no source serves the family.
          enum:
            - warehouse
            - system
            - store
            - absent
          type: string
        operations:
          description: >-
            What ran to serve this answer, in order: the warehouse statements,
            vendor operations, store families or functions. Empty only when no
            source serves the family.
          items:
            $ref: '#/components/schemas/SourceOperation'
          type:
            - array
            - 'null'
        origin:
          description: Which input decided the source.
          enum:
            - default
            - connection
            - seat
          type: string
        reason:
          $ref: '#/components/schemas/SourceReason'
          description: Why the family is absent, when kind is absent.
        snapshot_at:
          description: >-
            The instant the rows were read at: the warehouse pin, or the live
            call's time.
          format: date-time
          type:
            - string
            - 'null'
        snapshot_id:
          description: The warehouse snapshot the rows came from, when one names them.
          type: string
        stale_since:
          description: When the snapshot stopped being current, for a stale read.
          format: date-time
          type: string
        subject:
          $ref: '#/components/schemas/Subject'
        system:
          deprecated: true
          description: >-
            deprecated: read kind; removed with generation 1. The system behind
            the source.
          enum:
            - warehouse
            - ams360
            - store
            - absent
          type: string
      required:
        - coverage
        - family
        - kind
        - connection
        - system
        - id
        - origin
        - freshness
        - freshness_promised
        - snapshot_at
        - operations
        - subject
        - actor
      type: object
    CarrierContactAddTotals:
      additionalProperties: false
      properties:
        added:
          format: int64
          type: integer
        skipped:
          format: int64
          type: integer
        unmatched:
          format: int64
          type: integer
      required:
        - added
        - skipped
        - unmatched
      type: object
    Unreachable:
      additionalProperties: false
      properties:
        detail:
          type: string
        part:
          description: The envelope part (a field path or a child family).
          type: string
        reason:
          description: 'Why: no_adapter, not_documented, absent, source_unavailable, ...'
          type: string
        ref:
          description: The vendor reference id of the call that failed, when one did.
          type: string
      required:
        - part
        - reason
      type: object
    Warning:
      additionalProperties: false
      properties:
        code:
          description: >-
            UPPER_SNAKE_CASE, one meaning forever (LIMIT_COERCED, FACET_DROPPED,
            ...).
          type: string
        detail:
          type: string
      required:
        - code
      type: object
    ProblemError:
      additionalProperties: false
      properties:
        location:
          description: Where the input was, for example query.limit.
          type: string
        message:
          type: string
        value: {}
      required:
        - message
      type: object
    CarrierContactMark:
      additionalProperties: false
      properties:
        at:
          type: string
        by:
          description: The e-mail of who marked it.
          type: string
        by_name:
          description: Their name, or their e-mail when no name resolves.
          type: string
      required:
        - by
        - by_name
        - at
      type: object
    CarrierContactRecordFields:
      additionalProperties: false
      properties:
        contact_type:
          $ref: '#/components/schemas/CarrierContactValue'
          description: >-
            The contact's function as the source words it (a department, a
            claims desk).
        email:
          $ref: '#/components/schemas/CarrierContactValue'
        ext:
          $ref: '#/components/schemas/CarrierContactValue'
        lob:
          $ref: '#/components/schemas/CarrierContactValue'
          description: >-
            The lines the source says the contact handles, as written; never
            corrected (product is the line as a product_id).
        name:
          $ref: '#/components/schemas/CarrierContactValue'
        phone:
          $ref: '#/components/schemas/CarrierContactValue'
        product:
          $ref: '#/components/schemas/CarrierContactValue'
          description: >-
            The line: a product_id of /records/products, label its name. A list
            row's line text names it exactly at load, or a person sets it.
        region:
          $ref: '#/components/schemas/CarrierContactValue'
          description: The region the source says the contact covers, as written.
        title:
          $ref: '#/components/schemas/CarrierContactValue'
        website:
          $ref: '#/components/schemas/CarrierContactValue'
      type: object
    CarrierContactHistoryEntry:
      additionalProperties: false
      properties:
        after:
          type: string
        at:
          type: string
        before:
          type: string
        by:
          description: The e-mail of who made the edit.
          type: string
        by_name:
          description: Their name, or their e-mail when no name resolves.
          type: string
        field:
          type: string
        id:
          type: string
        kind:
          enum:
            - loaded
            - ams360
            - added
            - corrected
            - confirmed
            - left
            - reported
            - archived
            - restored
          type: string
        note:
          description: 'For reported: what is wrong, in the reporter''s words.'
          type: string
        reason:
          description: 'For reported: why the contact needs a look.'
          enum:
            - left_carrier
            - details_wrong
            - other
          type: string
        replaced_by_name:
          description: >-
            For left: the replacement's name as served, or its e-mail when it
            has none.
          type: string
      required:
        - id
        - kind
        - at
      type: object
    CarrierContactLeft:
      additionalProperties: false
      properties:
        at:
          type: string
        replaced_by_name:
          description: The replacement's name as served, or its e-mail when it has none.
          type: string
      required:
        - at
      type: object
    CarrierContactLineage:
      additionalProperties: false
      properties:
        at:
          description: When the list row was loaded or the edit made, RFC 3339.
          type: string
        changed_at:
          description: The AMS 360 row's change date, YYYY-MM-DD.
          type: string
        key:
          type: string
        kind:
          enum:
            - office_list
            - claims_sheet
            - ams360
            - user_edit
          type: string
        label:
          description: The list's file name, AMS 360, or the edit.
          type: string
        office:
          description: >-
            Whose list it is, in the sender's words; empty for a list every
            office uses.
          type: string
        person:
          description: 'Who made the edit: their e-mail.'
          type: string
        person_name:
          description: >-
            Who made the edit: their name, or their e-mail when no name
            resolves.
          type: string
        row:
          description: The row in the list's sheet.
          format: int64
          type: integer
        sender:
          description: Who sent the list.
          type: string
        sent:
          description: The day the list was sent or filed, YYYY-MM-DD.
          type: string
        sheet:
          type: string
      required:
        - key
        - kind
        - label
      type: object
    CarrierContactOfficeRecord:
      additionalProperties: false
      properties:
        every_office:
          type: boolean
        label:
          type: string
      required:
        - label
        - every_office
      type: object
    CarrierContactReport:
      additionalProperties: false
      properties:
        at:
          type: string
        by:
          description: The e-mail of who reported it.
          type: string
        by_name:
          description: Their name, or their e-mail when no name resolves.
          type: string
        note:
          description: What is wrong, in the reporter's words.
          type: string
        reason:
          enum:
            - left_carrier
            - details_wrong
            - other
          type: string
      required:
        - by
        - by_name
        - at
        - reason
      type: object
    CarrierContactRelationship:
      additionalProperties: false
      properties:
        last_placed_at:
          description: The newest of those policies' effective date, YYYY-MM-DD.
          type: string
        name:
          type: string
        party:
          enum:
            - office
            - producer
          type: string
        policies:
          description: Policies in the last 36 months that name the contact as underwriter.
          format: int64
          type: integer
      required:
        - party
        - name
      type: object
    Actor:
      additionalProperties: false
      properties:
        impersonation_kind:
          enum:
            - act_as
            - workos
          type: string
        impersonator:
          description: The operator behind an impersonated session.
          type: string
        member:
          description: The acting member (Nexio-Act-As); empty for a key acting as itself.
          type: string
      type: object
    SourceCoverage:
      additionalProperties: false
      properties:
        as_of:
          description: >-
            The earliest as-of among the family's sources, present only when the
            state is late.
          format: date-time
          type: string
        gaps:
          description: >-
            The family's absence gaps, each stated in plain words with its share
            and whose it is to fill. Empty when the family has none.
          items:
            $ref: '#/components/schemas/CoverageGap'
          type: array
        late:
          $ref: '#/components/schemas/CoverageLate'
          description: Present only when the state is late.
        state:
          description: >-
            late: a source is older than its measured window. current: no source
            is late. unmeasured: no source with a refresh cadence has two stored
            commits yet, so no window is known.
          enum:
            - current
            - late
            - unmeasured
          type: string
      required:
        - state
        - gaps
      type: object
    SourceOperation:
      additionalProperties: false
      properties:
        kind:
          description: >-
            statement: a registered warehouse statement; vendor: a system of
            record operation; store: a platform store family; compute: a derived
            function.
          enum:
            - statement
            - vendor
            - store
            - compute
          type: string
        ref:
          description: >-
            The statement name, the Records operation ref, the store family or
            the function.
          type: string
        reused:
          description: >-
            True when a kept answer of the same statement and data version was
            replayed instead of run.
          type: boolean
      required:
        - kind
        - ref
        - reused
      type: object
    SourceReason:
      additionalProperties: false
      properties:
        kind:
          type: string
        note:
          type: string
        ref:
          type: string
      required:
        - kind
      type: object
    Subject:
      additionalProperties: false
      properties:
        member:
          $ref: '#/components/schemas/SubjectMember'
          description: >-
            The member whose book was read, when the request read as another
            member.
        scope:
          description: The scope kind the acting seat resolved to (self, office, all, ...).
          type: string
        selection:
          description: >-
            The subject selection served, as subject= tokens (own,
            book:&lt;code&gt;, producer:&lt;code|me&gt;,
            client_manager:&lt;code|me&gt;, member:&lt;id&gt;). Empty when none
            was sent.
          items:
            type: string
          type:
            - array
            - 'null'
        selection_kind:
          description: >-
            own, code, client_manager, account, boundary or whole: what the
            served relation is.
          type: string
        selection_source:
          description: >-
            request when the caller chose the selection; none when it chose
            nothing.
          type: string
      required:
        - scope
        - selection
        - selection_kind
        - selection_source
      type: object
    CarrierContactValue:
      additionalProperties: false
      properties:
        from:
          description: The lineage keys the value comes from.
          items:
            type: string
          type:
            - array
            - 'null'
        label:
          description: >-
            For product: the product's name; empty when the products collection
            could not be read.
          type: string
        replaces:
          $ref: '#/components/schemas/CarrierContactReplaced'
          description: The source value a correction replaced, kept visible.
        value:
          type: string
        values:
          description: >-
            For email and phone: each value on its own, in the source's order;
            value is the first.
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - value
        - from
      type: object
    CoverageGap:
      additionalProperties: false
      properties:
        code:
          description: Stable gap code.
          type: string
        owner:
          description: Who keeps the source that would fill the gap.
          enum:
            - firm
            - vertafore
            - nexio
          type: string
        section_field:
          description: >-
            Dotted path inside a derived read's section that holds this gap's
            fact: the gap applies when that value is empty.
          type: string
        section_lines:
          description: >-
            AMS 360 line codes the gap speaks to: it applies only when the
            read's line_codes name one.
          items:
            type: string
          type:
            - array
            - 'null'
        sentence:
          description: >-
            The gap in plain words: the source, the share it covers and whose it
            is to fill.
          type: string
      required:
        - code
        - sentence
        - owner
      type: object
    CoverageLate:
      additionalProperties: false
      properties:
        sentence:
          type: string
      required:
        - sentence
      type: object
    SubjectMember:
      additionalProperties: false
      properties:
        display_name:
          type: string
        id:
          type: string
        scope:
          type: string
      required:
        - id
        - display_name
        - scope
      type: object
    CarrierContactReplaced:
      additionalProperties: false
      properties:
        value:
          type: string
        values:
          description: 'For email and phone: each replaced value on its own, in order.'
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - value
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

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