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

# Sign a person in: receipt, seat and product grant in one call

> The Workbench's server credential only, naming the signed-in person (Nexio-Act-As, Nexio-Act-As-Email, the verified employee identifier) with their session token and no impersonation. In order: the sign-in receipt (POST /access/principals/resolve, without Nexio-Act-As), the seat (GET /records/seats/current/entitlement), then, only when the seat is admitted, the product grant (GET /access/products/effective) and, when the principal holds no grant for the product, the requested default grant (POST /access/product-access) and the grant read again. Each step answers as its own route does. A receipt that refuses the sign-in's method (sign_in_method_not_allowed) ends the sign-in before the seat; any other receipt refusal stops nothing.



## OpenAPI

````yaml /openapi.generated.json post /access/sign-in
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:
  /access/sign-in:
    post:
      tags:
        - Access
      summary: 'Sign a person in: receipt, seat and product grant in one call'
      description: >-
        The Workbench's server credential only, naming the signed-in person
        (Nexio-Act-As, Nexio-Act-As-Email, the verified employee identifier)
        with their session token and no impersonation. In order: the sign-in
        receipt (POST /access/principals/resolve, without Nexio-Act-As), the
        seat (GET /records/seats/current/entitlement), then, only when the seat
        is admitted, the product grant (GET /access/products/effective) and,
        when the principal holds no grant for the product, the requested default
        grant (POST /access/product-access) and the grant read again. Each step
        answers as its own route does. A receipt that refuses the sign-in's
        method (sign_in_method_not_allowed) ends the sign-in before the seat;
        any other receipt refusal stops nothing.
      operationId: signIn
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignInAnswer'
          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
      security:
        - bearer: []
components:
  schemas:
    SignInRequest:
      additionalProperties: false
      properties:
        default_grant:
          $ref: '#/components/schemas/WorkbenchProductAccessRequest'
          description: >-
            The default grant the caller's policy allows, as POST
            /access/product-access takes it. Written only when the seat is
            admitted and the principal holds no grant for the product.
        identity:
          $ref: '#/components/schemas/PrincipalIdentity'
          description: >-
            The AuthKit-verified user the sign-in receipt records, as POST
            /access/principals/resolve takes it. Absent: no receipt is written.
      type: object
    SignInAnswer:
      additionalProperties: false
      properties:
        default_grant:
          $ref: '#/components/schemas/SignInGrantStep'
          description: >-
            POST /access/product-access's answer. Absent when no default grant
            was written.
        products:
          $ref: '#/components/schemas/SignInProductsStep'
          description: >-
            GET /access/products/effective's answer, after any default grant.
            Absent when the seat was not admitted.
        receipt:
          $ref: '#/components/schemas/SignInStep'
          description: >-
            POST /access/principals/resolve's status. A 403 with reason
            sign_in_method_not_allowed ends the sign-in: no other step runs. Any
            other refusal here stops nothing.
        seat:
          $ref: '#/components/schemas/SignInSeatStep'
          description: >-
            GET /records/seats/current/entitlement's answer. Status 0 when the
            receipt refused the sign-in's method.
      required:
        - receipt
        - seat
      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
    WorkbenchProductAccessRequest:
      additionalProperties: false
      properties:
        actor_id:
          type: string
        expected_updated_at: {}
        expires_at:
          format: date-time
          type:
            - string
            - 'null'
        note:
          type:
            - string
            - 'null'
        org_id:
          type: string
        product_key:
          description: >-
            The product the grant admits; the API administers grants for
            insurance only.
          enum:
            - insurance
          type: string
        role:
          type:
            - string
            - 'null'
        source:
          type: string
        source_ref:
          type:
            - string
            - 'null'
        source_synced_at:
          format: date-time
          type:
            - string
            - 'null'
        status:
          type: string
        subject_id:
          type: string
        subject_type:
          type: string
        sync_run_id:
          type:
            - string
            - 'null'
      required:
        - product_key
        - org_id
        - subject_type
        - subject_id
        - role
        - status
        - actor_id
        - source
        - source_ref
        - source_synced_at
        - sync_run_id
        - note
        - expires_at
      type: object
    PrincipalIdentity:
      additionalProperties: false
      properties:
        auth_method:
          description: >-
            Optional AuthKit authentication method of the sign-in this call
            reports (SSO, Password, MagicAuth, GoogleOAuth, ...),
            case-insensitive. An org that allows only some methods refuses a
            sign-in with any other, with a missing one or with an unknown one.
          maxLength: 64
          type: string
        auth_organization_id:
          type: string
        auth_session_id:
          description: >-
            Optional AuthKit session id (sid) of the sign-in this call reports.
            Recorded on the audit event for correlation; never a credential.
          maxLength: 128
          pattern: ^session_[A-Za-z0-9]+$
          type: string
        auth_user_id:
          type: string
        display_name:
          description: Optional AuthKit first and last name. Blank preserves a stored name.
          maxLength: 256
          type: string
        email:
          type: string
        email_verified:
          type: boolean
        external_id:
          type: string
      required:
        - auth_user_id
        - email
        - email_verified
        - external_id
        - auth_organization_id
      type: object
    SignInGrantStep:
      additionalProperties: false
      properties:
        created:
          type: boolean
        problem:
          $ref: '#/components/schemas/Problem'
        status:
          description: 'The step route''s HTTP status. 0: the step did not answer.'
          format: int64
          type: integer
      required:
        - status
      type: object
    SignInProductsStep:
      additionalProperties: false
      properties:
        problem:
          $ref: '#/components/schemas/Problem'
        record:
          $ref: '#/components/schemas/RecordEffectiveProducts'
        status:
          description: 'The step route''s HTTP status. 0: the step did not answer.'
          format: int64
          type: integer
      required:
        - status
      type: object
    SignInStep:
      additionalProperties: false
      properties:
        problem:
          $ref: '#/components/schemas/Problem'
        status:
          description: 'The step route''s HTTP status. 0: the step did not answer.'
          format: int64
          type: integer
      required:
        - status
      type: object
    SignInSeatStep:
      additionalProperties: false
      properties:
        problem:
          $ref: '#/components/schemas/Problem'
        record:
          $ref: '#/components/schemas/RecordSeatEntitlement'
        status:
          description: 'The step route''s HTTP status. 0: the step did not answer.'
          format: int64
          type: integer
      required:
        - status
      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
    RecordEffectiveProducts:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/EffectiveProducts'
        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
    RecordSeatEntitlement:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/SeatEntitlement'
        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
    EffectiveProducts:
      additionalProperties: false
      properties:
        decisions:
          additionalProperties:
            $ref: '#/components/schemas/AppVisibilityDecision'
          description: The visibility decision per app, keyed by product key.
          type: object
        requests:
          additionalProperties:
            $ref: '#/components/schemas/ProductGrantRequest'
          type: object
        roles:
          additionalProperties:
            items:
              type: string
            type:
              - array
              - 'null'
          type: object
        statuses:
          additionalProperties:
            type: string
          type: object
      required:
        - decisions
        - statuses
        - roles
        - requests
      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
    SeatEntitlement:
      additionalProperties: false
      properties:
        entitlement:
          $ref: '#/components/schemas/Entitlement'
        execution:
          $ref: '#/components/schemas/SeatExecutionView'
        scope:
          $ref: '#/components/schemas/SeatScopeState'
      required:
        - execution
      type: object
    AppVisibilityDecision:
      additionalProperties: false
      properties:
        can_launch:
          description: The caller may open the app.
          type: boolean
        can_see:
          description: The app is listed for this caller.
          type: boolean
        reason:
          description: Why the decision is what it is.
          enum:
            - public
            - authenticated
            - granted
            - internal
            - hidden
            - not-authorized
            - suspended
            - requested
            - request-available
            - revoked-at-source
          type: string
      required:
        - can_see
        - can_launch
        - reason
      type: object
    ProductGrantRequest:
      additionalProperties: false
      properties:
        requested_at:
          format: date-time
          type: string
        status:
          type: string
      required:
        - status
        - requested_at
      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
    Entitlement:
      additionalProperties: false
      properties:
        assigned_roots:
          additionalProperties:
            items:
              type: string
            type:
              - array
              - 'null'
          type: object
        book_scope:
          $ref: '#/components/schemas/BookScopeView'
        datasets:
          additionalProperties:
            $ref: '#/components/schemas/DatasetRule'
          type: object
        denied_fields:
          items:
            type: string
          type:
            - array
            - 'null'
        documents:
          additionalProperties:
            type: string
          type: object
        exceptions:
          items:
            $ref: '#/components/schemas/ExceptionGrant'
          type:
            - array
            - 'null'
        identity_rev:
          type: string
        label_source:
          type: string
        leader:
          $ref: '#/components/schemas/SeatLeader'
        policy_role:
          type: string
        policy_source:
          type: string
        policy_version:
          additionalProperties:
            format: int64
            type: integer
          type: object
        posture:
          type: string
        principal:
          type: string
        profile:
          $ref: '#/components/schemas/SeatProfile'
        refused:
          type: string
        refused_detail:
          $ref: '#/components/schemas/RefusedDetail'
        related_books:
          $ref: '#/components/schemas/RelatedBooks'
        roles:
          items:
            type: string
          type:
            - array
            - 'null'
        surfaces:
          additionalProperties:
            type: string
          type: object
        system_grants:
          items:
            type: string
          type:
            - array
            - 'null'
        team:
          $ref: '#/components/schemas/Team'
        workflows:
          additionalProperties:
            $ref: '#/components/schemas/WorkflowRule'
          type: object
      required:
        - posture
        - principal
        - roles
        - surfaces
        - datasets
        - workflows
        - denied_fields
        - documents
        - system_grants
        - exceptions
        - policy_version
        - assigned_roots
        - book_scope
        - identity_rev
      type: object
    SeatExecutionView:
      additionalProperties: false
      properties:
        admitted:
          type: boolean
        book_scope_actions:
          additionalProperties:
            type: boolean
          type: object
        closed_to_act_as_grant:
          description: >-
            An operator whose only View as authority is the act_as grant may not
            View as this seat: it holds operator authority, or the
            workbench_admin grant at any access level (viewAsTargetAuthority).
          type: boolean
        held:
          type: boolean
        opens_leader_report:
          type: boolean
        operator_administrator:
          description: >-
            This seat holds operator authority: Platform scope, or the
            workbench_admin grant with the access surface at write
            (operatorAuthority). The act_as grant alone never sets it.
          type: boolean
        retention_level:
          enum:
            - corporate
            - platform
            - market
          type: string
        scope:
          $ref: '#/components/schemas/SeatExecutionScope'
        view_as_operator:
          description: >-
            This seat may View as another member (viewAsOperatorAllowed's rule,
            actAsAuthority). Starting still checks the target.
          type: boolean
      required:
        - book_scope_actions
        - view_as_operator
        - operator_administrator
        - closed_to_act_as_grant
        - held
        - admitted
        - scope
        - retention_level
        - opens_leader_report
      type: object
    SeatScopeState:
      additionalProperties: false
      properties:
        kind:
          description: >-
            The served scope's kind (All, Platform, Self, Assigned, ...). Empty
            when refused.
          type: string
        refused:
          description: >-
            The refusal code when the seat's scope does not resolve. Empty when
            it resolves.
          type: string
      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
    BookScopeView:
      additionalProperties: false
      properties:
        ams_groups:
          items:
            $ref: '#/components/schemas/BookScopeAMSGroup'
          type:
            - array
            - 'null'
        book_coverage:
          $ref: '#/components/schemas/BookCoverageCheck'
        boundary:
          $ref: '#/components/schemas/BookScopeBoundary'
        granting_members:
          format: int64
          type: integer
        kind:
          type: string
        partial:
          items:
            $ref: '#/components/schemas/Partial'
          type:
            - array
            - 'null'
        producer_code_count:
          format: int64
          type: integer
        service_members:
          format: int64
          type: integer
      required:
        - kind
        - producer_code_count
        - partial
        - granting_members
        - service_members
      type: object
    DatasetRule:
      additionalProperties: false
      properties:
        access:
          type: string
        scope:
          type: string
      required:
        - scope
        - access
      type: object
    ExceptionGrant:
      additionalProperties: false
      properties:
        action:
          type: string
        approved_by:
          type: string
        ends_at:
          format: date-time
          type: string
        id:
          type: string
        principal_id:
          type: string
        reason:
          type: string
        revoked_at:
          format: date-time
          type: string
        scope:
          $ref: '#/components/schemas/ExceptionScope'
        starts_at:
          format: date-time
          type: string
        state:
          enum:
            - scheduled
            - live
            - ended
            - revoked
          type: string
        workflow:
          type: string
      required:
        - id
        - principal_id
        - workflow
        - action
        - scope
        - reason
        - approved_by
        - starts_at
        - ends_at
        - state
      type: object
    SeatLeader:
      additionalProperties: false
      properties:
        default_market:
          type: string
        employee_id:
          type: string
        kind:
          type: string
        market:
          type: string
        platform:
          type: string
        role:
          type: string
        source:
          type: string
        title:
          type: string
      required:
        - kind
        - source
      type: object
    SeatProfile:
      additionalProperties: false
      properties:
        assignment_version:
          format: int64
          type: integer
        display_name:
          type: string
        operator:
          type: string
        slug:
          type: string
        version:
          format: int64
          type: integer
      required:
        - slug
        - display_name
        - version
        - assignment_version
      type: object
    RefusedDetail:
      additionalProperties: false
      properties:
        reason:
          type: string
      required:
        - reason
      type: object
    RelatedBooks:
      additionalProperties: false
      properties:
        books:
          items:
            $ref: '#/components/schemas/RelatedBook'
          type:
            - array
            - 'null'
      required:
        - books
      type: object
    Team:
      additionalProperties: false
      properties:
        producers:
          items:
            $ref: '#/components/schemas/TeamMember'
          type:
            - array
            - 'null'
        support:
          items:
            $ref: '#/components/schemas/TeamMember'
          type:
            - array
            - 'null'
      required:
        - producers
        - support
      type: object
    WorkflowRule:
      additionalProperties: false
      properties:
        actions:
          items:
            type: string
          type:
            - array
            - 'null'
        execution:
          additionalProperties:
            type: string
          type: object
        scope:
          type: string
      required:
        - scope
        - actions
        - execution
      type: object
    SeatExecutionScope:
      additionalProperties: false
      properties:
        kind:
          enum:
            - none
            - own
            - assigned
            - org
          type: string
        principal:
          type: string
      required:
        - kind
      type: object
    BookScopeAMSGroup:
      additionalProperties: false
      properties:
        code:
          type: string
        long:
          type: string
        short:
          type: string
      required:
        - code
        - short
        - long
      type: object
    BookCoverageCheck:
      additionalProperties: false
      properties:
        missing_agencies:
          items:
            type: string
          type:
            - array
            - 'null'
        reason:
          type: string
        result:
          type: string
      required:
        - result
      type: object
    BookScopeBoundary:
      additionalProperties: false
      properties:
        access_keys:
          format: int64
          type: integer
        kind:
          type: string
        linked:
          $ref: '#/components/schemas/BookScopeLinkedBoundary'
        read_at:
          type: string
        source:
          type: string
        unit_name:
          type: string
      required:
        - kind
        - source
        - read_at
      type: object
    Partial:
      additionalProperties: false
      properties:
        principal_id:
          type: string
        reason:
          type: string
      required:
        - principal_id
        - reason
      type: object
    ExceptionScope:
      additionalProperties: false
      properties:
        kind:
          type: string
        root_ids:
          items:
            type: string
          type:
            - array
            - 'null'
        root_type:
          type: string
      required:
        - kind
      type: object
    RelatedBook:
      additionalProperties: false
      properties:
        code:
          type:
            - string
            - 'null'
        in_force_accounts:
          format: int64
          type: integer
        in_force_policies:
          format: int64
          type: integer
        kind:
          type: string
        name:
          type: string
      required:
        - kind
        - code
        - name
        - in_force_policies
        - in_force_accounts
      type: object
    TeamMember:
      additionalProperties: false
      properties:
        code:
          type: string
        in_force_accounts:
          format: int64
          type: integer
        in_force_policies:
          format: int64
          type: integer
        name:
          type: string
      required:
        - code
        - name
        - in_force_policies
        - in_force_accounts
      type: object
    BookScopeLinkedBoundary:
      additionalProperties: false
      properties:
        access_keys:
          format: int64
          type: integer
        datasource:
          type: string
        employee_code:
          type: string
        employee_id:
          type: string
        groups:
          format: int64
          type: integer
        served_datasource:
          type: string
        unit_name:
          type: string
      required:
        - datasource
        - served_datasource
        - employee_id
        - employee_code
        - access_keys
        - groups
      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.