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

# Get a claim

> One claim, read through its account under the seat's account boundary, as the account's claims list reads it. A claim-keyed read serves the claim's narrative fields, as its child collections do, and the claim's activity notes, newest first: notes.data are the notes saved on the claim's AMS 360 activities, one row each, saved at occurred_at by entered_by_usercode and entered_by_name; notes.total counts them. A note's date and author are its row's, never a date inside its text (what the note quotes) or an activity's changed_by (its last editor). Unknown and hidden claims share one refusal.



## OpenAPI

````yaml /openapi.generated.json get /records/claims/{id}
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/claims/{id}:
    get:
      tags:
        - claims
      summary: Get a claim
      description: >-
        One claim, read through its account under the seat's account boundary,
        as the account's claims list reads it. A claim-keyed read serves the
        claim's narrative fields, as its child collections do, and the claim's
        activity notes, newest first: notes.data are the notes saved on the
        claim's AMS 360 activities, one row each, saved at occurred_at by
        entered_by_usercode and entered_by_name; notes.total counts them. A
        note's date and author are its row's, never a date inside its text (what
        the note quotes) or an activity's changed_by (its last editor). Unknown
        and hidden claims share one refusal.
      operationId: getClaim
      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: The claim instance key.
          in: path
          name: id
          required: true
          schema:
            description: The claim instance key.
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordClaimDetail'
          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
        '424':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Failed Dependency
        '429':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Too Many Requests
        '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
        '504':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: Gateway Timeout
      security:
        - bearer: []
components:
  schemas:
    RecordClaimDetail:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/ClaimDetail'
        missing_count:
          description: >-
            For a hierarchy record, source records missing that level after
            source filters and before name/ID filters.
          format: int64
          type: integer
        request_id:
          type: string
        source:
          $ref: '#/components/schemas/Source'
        unreachable:
          items:
            $ref: '#/components/schemas/Unreachable'
          type:
            - array
            - 'null'
        warnings:
          items:
            $ref: '#/components/schemas/Warning'
          type:
            - array
            - 'null'
      required:
        - data
        - 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
    ClaimDetail:
      additionalProperties: false
      properties:
        account_id:
          type:
            - string
            - 'null'
        additional_risk:
          type:
            - string
            - 'null'
        ams360_datasource:
          type:
            - string
            - 'null'
        catastrophe_code:
          type:
            - string
            - 'null'
        cause_of_loss:
          type:
            - string
            - 'null'
        claim_id:
          type:
            - string
            - 'null'
        claim_number:
          type:
            - string
            - 'null'
        claim_status:
          type:
            - string
            - 'null'
        closed_date:
          format: date-time
          type:
            - string
            - 'null'
        entered_date:
          format: date-time
          type:
            - string
            - 'null'
        id:
          type: string
        line_of_business:
          type:
            - string
            - 'null'
        line_of_business_id:
          type:
            - string
            - 'null'
        loss_date:
          format: date-time
          type:
            - string
            - 'null'
        loss_description:
          type:
            - string
            - 'null'
        loss_history:
          items:
            $ref: '#/components/schemas/BookClaimLossHistoryRow'
          type: array
        loss_location_address:
          type:
            - string
            - 'null'
        loss_location_city:
          type:
            - string
            - 'null'
        loss_location_state:
          type:
            - string
            - 'null'
        loss_location_zip:
          type:
            - string
            - 'null'
        notes:
          $ref: '#/components/schemas/ClaimNotes'
          description: >-
            The claim's activity notes, newest first. No rows with an
            unreachable notes part means they could not be read, not that there
            are none.
        occurrence_date:
          format: date-time
          type:
            - string
            - 'null'
        paid:
          $ref: '#/components/schemas/ClaimPaid'
          description: >-
            Present only with account_id and include=payments, on a claim whose
            payments were read: what was paid on this claim, summed from its
            payments. The list's paid figure sums the same rows.
        payments:
          items:
            $ref: '#/components/schemas/BookClaimPaymentRow'
          type: array
        policy_effective_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_end_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_expiration_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_id:
          type:
            - string
            - 'null'
        policy_in_served_rows:
          type: boolean
        report_authority:
          type:
            - string
            - 'null'
        report_date:
          format: date-time
          type:
            - string
            - 'null'
        report_number:
          type:
            - string
            - 'null'
        reported_by:
          type:
            - string
            - 'null'
        reported_to:
          type:
            - string
            - 'null'
        source_policy_id:
          type:
            - string
            - 'null'
        standing:
          description: >-
            Closed when closed_date is set, or when the status word
            (claim_status, else status) is closed and closed_date is null; open
            otherwise. Raw claim_status, status and closed_date are served
            unchanged beside it, including reopened conflicts.
          enum:
            - open
            - closed
          type: string
        status:
          type:
            - string
            - 'null'
      required:
        - notes
        - id
        - account_id
        - policy_id
        - source_policy_id
        - standing
        - ams360_datasource
        - claim_id
        - claim_number
        - line_of_business_id
        - line_of_business
        - claim_status
        - status
        - catastrophe_code
        - cause_of_loss
        - additional_risk
        - loss_date
        - occurrence_date
        - report_date
        - entered_date
        - closed_date
        - policy_effective_date
        - policy_expiration_date
        - policy_end_date
        - policy_in_served_rows
        - loss_location_city
        - loss_location_state
        - loss_location_zip
        - report_number
        - loss_description
        - loss_location_address
        - reported_by
        - reported_to
        - report_authority
      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
    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
    BookClaimLossHistoryRow:
      additionalProperties: false
      properties:
        amount_paid:
          type:
            - string
            - 'null'
        claim_number:
          type:
            - string
            - 'null'
        claim_status:
          type:
            - string
            - 'null'
        client_key:
          type:
            - string
            - 'null'
        closed_date:
          format: date-time
          type:
            - string
            - 'null'
        company:
          type:
            - string
            - 'null'
        date_of_loss:
          format: date-time
          type:
            - string
            - 'null'
        employee_name:
          type:
            - string
            - 'null'
        entered_date:
          format: date-time
          type:
            - string
            - 'null'
        kind_of_loss:
          type:
            - string
            - 'null'
        line_of_business:
          type:
            - string
            - 'null'
        loss_description:
          type:
            - string
            - 'null'
        loss_history_id:
          type:
            - string
            - 'null'
        mod_factor:
          type:
            - string
            - 'null'
        policy_effective_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_expiration_date:
          format: date-time
          type:
            - string
            - 'null'
        policy_number:
          type:
            - string
            - 'null'
        policy_year:
          type:
            - string
            - 'null'
        report_date:
          format: date-time
          type:
            - string
            - 'null'
      required:
        - loss_history_id
        - client_key
        - claim_number
        - claim_status
        - company
        - kind_of_loss
        - line_of_business
        - policy_number
        - policy_year
        - date_of_loss
        - report_date
        - closed_date
        - entered_date
        - policy_effective_date
        - policy_expiration_date
        - amount_paid
        - mod_factor
        - employee_name
        - loss_description
      type: object
    ClaimNotes:
      additionalProperties: false
      properties:
        data:
          description: >-
            The newest notes saved on the claim's AMS 360 activities
            (AFW_TRANSACTION REFTYPE 39), at most 10, one row each: occurred_at
            is when AMS 360 saved the note, entered_by_usercode and
            entered_by_name who saved it, comment_on_activity_id the activity it
            is on.
          items:
            $ref: '#/components/schemas/Activity'
          type:
            - array
            - 'null'
        total:
          $ref: '#/components/schemas/Total'
          description: How many notes the claim's activities hold; exact up to 100.
      required:
        - data
        - total
      type: object
    ClaimPaid:
      additionalProperties: false
      properties:
        amount:
          description: >-
            Exact decimal sum paid on this claim, by AMS 360 payment type:
            payment, claim payment, final payment and supplemental payment rows,
            less void and stop payment rows. Loss reserves, adjustment expense,
            recoveries, salvage, subrogation and rows of any other type are not
            paid. At the widest fraction any summed amount carries and at least
            two places. Null when no amount was summable or the seat cannot read
            payment amounts: absence, never zero.
          type:
            - string
            - 'null'
        amounts_counted:
          description: >-
            Paid rows (payments, voids and stop payments) whose amount was
            summed.
          format: int64
          type: integer
        amounts_missing:
          description: >-
            Paid rows whose amount was absent, blank, withheld from this seat or
            not a decimal. Every payment counts here when the seat cannot read
            the payment type that decides whether it is paid.
          format: int64
          type: integer
        payment_count:
          description: >-
            Paid rows (payments, voids and stop payments) on this claim; every
            payment when the seat cannot read the payment type.
          format: int64
          type: integer
      required:
        - amount
        - amounts_counted
        - amounts_missing
        - payment_count
      type: object
    BookClaimPaymentRow:
      additionalProperties: false
      properties:
        amount:
          type:
            - string
            - 'null'
        changed_date:
          format: date-time
          type:
            - string
            - 'null'
        check_date:
          format: date-time
          type:
            - string
            - 'null'
        claimant:
          type:
            - string
            - 'null'
        coverage_code:
          type:
            - string
            - 'null'
        draft_number:
          type:
            - string
            - 'null'
        entered_date:
          format: date-time
          type:
            - string
            - 'null'
        note:
          type:
            - string
            - 'null'
        paid_by:
          type:
            - string
            - 'null'
        payment_id:
          type:
            - string
            - 'null'
        payment_type:
          type:
            - string
            - 'null'
        phone:
          type:
            - string
            - 'null'
        phone_area_code:
          type:
            - string
            - 'null'
        phone_extension:
          type:
            - string
            - 'null'
      required:
        - payment_id
        - coverage_code
        - payment_type
        - amount
        - draft_number
        - check_date
        - entered_date
        - changed_date
        - claimant
        - paid_by
        - phone_area_code
        - phone
        - phone_extension
        - note
      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
    Activity:
      additionalProperties: false
      properties:
        account_id:
          description: The account the row is on, as an instance key.
          type: string
        account_name:
          description: The account's name, on the register's rows.
          type: string
        action:
          description: >-
            A task's action, or a comment's activity action, as the agency's
            activity actions list it (codes?domain=task_action).
          type: string
        activity_id:
          type:
            - string
            - 'null'
        ams360_datasource:
          type:
            - string
            - 'null'
        assigned_by_code:
          type:
            - string
            - 'null'
        assigned_to_code:
          type:
            - string
            - 'null'
        attached_id:
          description: The id of the record the row is attached to.
          type: string
        attached_type:
          description: >-
            The kind of record the row is attached to, as the source numbers it
            (a note's 53 customer, 26 policy, 39 claim).
          type: string
        body:
          type:
            - string
            - 'null'
        carrier_code:
          type:
            - string
            - 'null'
        changed_by:
          type:
            - string
            - 'null'
        changed_date:
          format: date-time
          type:
            - string
            - 'null'
        comment_on_activity_id:
          description: 'A comment''s: the id of the AMS 360 activity it was saved on.'
          type: string
        comments:
          description: >-
            An AMS 360 activity's (a comment row's) added comments, ordered by
            comment date then id; absent on every other row and on an activity
            with none. While the answer names activity_comments unreachable, an
            absent list is not proof the activity has none.
          items:
            $ref: '#/components/schemas/BookActivityComment'
          type:
            - array
            - 'null'
        completed_by:
          description: 'A task''s: the employee code of who completed it.'
          type: string
        completed_date:
          format: date-time
          type:
            - string
            - 'null'
        due_date:
          format: date-time
          type:
            - string
            - 'null'
        effective_date:
          description: 'A task''s: the policy version (endorsement date) it is attached to.'
          format: date-time
          type: string
        email:
          $ref: '#/components/schemas/EmailMessage'
          description: >-
            The row's body read into an email's fields when the body is an email
            (a comment or note holding a pasted message); absent otherwise.
        entered_by:
          description: 'A comment''s: the employee code of who saved it.'
          type: string
        entered_by_name:
          description: 'A comment''s: the full name of who saved it.'
          type: string
        entered_by_usercode:
          description: 'A comment''s: the AMS 360 usercode (short name) of who saved it.'
          type: string
        entered_date:
          format: date-time
          type:
            - string
            - 'null'
        entity_id:
          type:
            - string
            - 'null'
        entity_type:
          type:
            - string
            - 'null'
        exported_at:
          description: 'A task''s: when it was last exported to the user''s calendar.'
          format: date-time
          type: string
        id:
          description: >-
            The row's instance key: {instance}:activities:{id} for an activity,
            {instance}:suspenses:{id} for a suspense,
            {instance}:notes_and_remarks:{id} for a note or remark.
          type: string
        include_in_export:
          description: 'A remark''s: Y when it is included in the policy''s export.'
          type: string
        is_print:
          type:
            - string
            - 'null'
        is_sticky:
          type:
            - string
            - 'null'
        line_of_business_id:
          type:
            - string
            - 'null'
        occurred_at:
          format: date-time
          type:
            - string
            - 'null'
        policy_id:
          description: >-
            The policy term the row hangs on, as an instance key; absent for a
            row on the account itself.
          type: string
        priority:
          type:
            - string
            - 'null'
        purge_date:
          format: date-time
          type:
            - string
            - 'null'
        reschedule_count:
          description: 'A task''s: how many times its due date was changed.'
          type: string
        saved_with_download:
          description: 'A remark''s: Y when it is kept with the policy received by download.'
          type: string
        source:
          type: string
        status:
          type:
            - string
            - 'null'
        suspense:
          $ref: '#/components/schemas/SuspenseFacts'
          description: >-
            A suspense row's body read into its code and description; absent on
            activities, notes and remarks.
        task_state:
          $ref: '#/components/schemas/MachineState'
          description: >-
            A suspense's task status (completed once AMS 360 records a completed
            date or marks the item completed, pending until then) with its
            label, settled flag and tone from the org's declared task_status
            machine, the same state its task register row serves; absent on
            activities, notes and remarks, and when the org declares no
            task_status machine.
      required:
        - id
        - source
        - activity_id
        - ams360_datasource
        - occurred_at
        - body
        - status
        - priority
        - assigned_to_code
        - assigned_by_code
        - due_date
        - completed_date
        - carrier_code
        - line_of_business_id
        - is_sticky
        - is_print
        - purge_date
        - entered_date
        - changed_date
        - changed_by
        - entity_type
        - entity_id
      type: object
    Total:
      additionalProperties: false
      properties:
        exact:
          type: boolean
        value:
          format: int64
          type: integer
      required:
        - value
        - exact
      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
    BookActivityComment:
      additionalProperties: false
      properties:
        body:
          description: What the comment says.
          type:
            - string
            - 'null'
        comment_date:
          description: When the comment was made.
          format: date-time
          type:
            - string
            - 'null'
        entered_by:
          description: The employee code of who saved it.
          type:
            - string
            - 'null'
        entered_by_name:
          description: >-
            The full name of who saved it; null when the seat may not read it or
            no name resolves.
          type:
            - string
            - 'null'
        entered_date:
          description: When the comment was saved.
          format: date-time
          type:
            - string
            - 'null'
        id:
          description: The comment's id in AMS 360.
          type:
            - string
            - 'null'
      required:
        - id
        - body
        - comment_date
        - entered_date
        - entered_by
        - entered_by_name
      type: object
    EmailMessage:
      additionalProperties: false
      properties:
        cc:
          description: >-
            The copied recipients, as to names them. Empty when the header names
            none.
          items:
            type: string
          type:
            - array
            - 'null'
        earlier:
          description: >-
            The earlier messages it quotes, newest first. Empty when it quotes
            none.
          items:
            $ref: '#/components/schemas/EmailQuoted'
          type:
            - array
            - 'null'
        from:
          description: >-
            The sender the email's own header names; null when it names none (a
            Salesforce logged email carries no From line).
          type:
            - string
            - 'null'
        sent:
          description: >-
            When it was sent: YYYY-MM-DDTHH:MM wall time as the header prints
            it, or YYYY-MM-DD, the activity's own date, when the header carries
            no time. Null when neither is known.
          type:
            - string
            - 'null'
        subject:
          description: >-
            The header's subject without mail gateway tags such as [EXTERNAL];
            null when it has none.
          type:
            - string
            - 'null'
        text:
          description: >-
            What this message says: its own words without the messages it
            quotes, mail gateway banner markers, image placeholders and its
            trailer. Empty when it says nothing of its own.
          type: string
        to:
          description: >-
            The recipients the header names, each a person's name when the
            header gives one, else the address. Empty when it names none.
          items:
            type: string
          type:
            - array
            - 'null'
        trailer:
          description: >-
            What closes its own words: the signature block and legal disclaimers
            the API detects, kept rather than dropped. Empty when it has none.
          type: string
      required:
        - from
        - to
        - cc
        - sent
        - subject
        - text
        - trailer
        - earlier
      type: object
    SuspenseFacts:
      additionalProperties: false
      properties:
        code:
          description: >-
            The suspense code from the body's "Code: ... Desc:" layout; absent
            when the body carries none.
          type: string
        description:
          description: >-
            The body's "Desc:" text up to "Operator:" or "Who:"; the whole
            trimmed body when it carries no description; null when the body is
            blank.
          type:
            - string
            - 'null'
      required:
        - description
      type: object
    MachineState:
      additionalProperties: false
      properties:
        label:
          description: >-
            The words a person sees for the value; null when the machine labels
            none.
          type:
            - string
            - 'null'
        machine:
          description: The machine's state field (GET /records/machines/{field}).
          type: string
        next:
          anyOf:
            - $ref: '#/components/schemas/MachineNextStep'
              description: The next step served for the value; null when it has none.
            - type: 'null'
        settled:
          description: True when the value ends the work.
          type: boolean
        step:
          description: The workflow step the value sits in; null when it sits in none.
          type:
            - string
            - 'null'
        tone:
          description: The tone the value is shown with; null when the machine gives none.
          enum:
            - neutral
            - positive
            - warning
            - danger
            - null
          type:
            - string
            - 'null'
        value:
          type: string
      required:
        - machine
        - value
        - label
        - step
        - settled
        - tone
        - next
      type: object
    EmailQuoted:
      additionalProperties: false
      properties:
        cc:
          description: The copied recipients the quoted header names.
          items:
            type: string
          type:
            - array
            - 'null'
        from:
          description: The sender the quoted header names; null when it names none.
          type:
            - string
            - 'null'
        sent:
          description: >-
            When it was sent, YYYY-MM-DDTHH:MM wall time as the quoted header
            prints it; null when it does not read as a date.
          type:
            - string
            - 'null'
        subject:
          description: The quoted header's subject; null when it has none.
          type:
            - string
            - 'null'
        text:
          description: What the quoted message says, read as text is.
          type: string
        to:
          description: The recipients the quoted header names.
          items:
            type: string
          type:
            - array
            - 'null'
        trailer:
          description: The quoted message's signature and disclaimers, read as trailer is.
          type: string
      required:
        - from
        - to
        - cc
        - sent
        - subject
        - text
        - trailer
      type: object
    MachineNextStep:
      additionalProperties: false
      properties:
        key:
          description: The next step key.
          type: string
        label:
          description: The words a person sees for the step.
          type: string
        waiting_on:
          description: Who the work waits on at this step.
          type: string
      required:
        - key
      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.