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

# Get origination

> Retrieve an underwriting request, its immutable submitted application, product and policy versions, document associations, requirements, status and risk-package reference, including before processing completes.

Retrieve an underwriting request, its immutable submitted application, product and policy versions, document associations, requirements, status and risk-package reference, including before processing completes. All IDs and cursors must belong to the authorized workspace and environment. Required scope: insights:read.

Examples use synthetic IDs. Replace them with values returned by your environment.


## OpenAPI

````yaml openapi/amlok.json GET /v1/originations/{id}
openapi: 3.1.0
info:
  title: AMLOK API
  version: 1.0.0
  description: >-
    AMLOK API: borrower connections, Insights origination, immutable risk
    packages and Signal monitoring. Use your institution-issued API origin.
servers: []
security:
  - BearerAuth: []
paths:
  /v1/originations/{id}:
    get:
      tags:
        - Insights
      summary: Get origination
      description: >-
        Retrieve an underwriting request, its immutable submitted application,
        product and policy versions, document associations, requirements, status
        and risk-package reference, including before processing completes. All
        IDs and cursors must belong to the authorized workspace and environment.
        Required scope: insights:read.
      operationId: getOrigination
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
          description: id
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Origination'
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                  - data
                  - meta
                additionalProperties: false
              example:
                data:
                  id: orgn_synthetic
                  borrower_id: bor_synthetic
                  institution_reference: LOS-2026-0042
                  status: completed
                  created_at: '2026-11-06T12:00:00Z'
                  updated_at: '2026-11-06T12:00:00Z'
                  requirements: []
                  risk_package_id: rp_synthetic
                  failure: null
                  record_version: 1
                  submitted_request:
                    borrower_id: bor_synthetic
                    application:
                      institution_reference: LOS-2026-0042
                      requested_amount:
                        amount: '50000.00'
                        currency: CAD
                      requested_term_months: 12
                      purpose: Working capital
                      application_schema_id: app_schema_synthetic
                      declared_data:
                        annual_revenue: '600000.00'
                    lending_product_version_id: lpv_synthetic
                    risk_policy_version_id: rpv_synthetic
                    connection_ids:
                      - con_synthetic
                    document_ids: []
                  document_ids: []
                  connection_ids:
                    - con_synthetic
                meta:
                  request_id: req_synthetic
                  schema_version: 1.0.0
                  environment: sandbox
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '400':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: validation_error
                  message: Validation error.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '401':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: unauthenticated
                  message: Unauthenticated.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '403':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: forbidden
                  message: Forbidden.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '404':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: not_found
                  message: Not found.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '409':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: invalid_state
                  message: Invalid state.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '410':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: cursor_expired
                  message: Cursor expired.
                  retryable: false
                  request_id: req_synthetic
                  field: null
          headers:
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '429':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: rate_limited
                  message: Rate limited.
                  retryable: true
                  request_id: req_synthetic
                  field: null
          headers:
            Retry-After:
              description: Minimum delay in seconds before retry.
              schema:
                type: integer
                minimum: 0
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
        '503':
          description: >-
            Inspect structured error; retry only when retryable. 429 and 503 can
            include Retry-After.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
                required:
                  - error
                additionalProperties: false
              example:
                error:
                  code: temporarily_unavailable
                  message: Temporarily unavailable.
                  retryable: true
                  request_id: req_synthetic
                  field: null
          headers:
            Retry-After:
              description: Minimum delay in seconds before retry.
              schema:
                type: integer
                minimum: 0
            X-Request-ID:
              schema:
                type: string
                minLength: 1
              description: Same request ID as meta.request_id or error.request_id.
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: Shell
          label: cURL
          source: |-
            curl --request GET --fail-with-body --max-time 30 \
              "${AMLOK_API_BASE_URL}/v1/originations/record_synthetic" \
              --header "Authorization: Bearer ${AMLOK_API_KEY}" \
              --header 'Accept: application/json'
        - lang: Python
          source: >
            import os

            import requests


            headers = {'Accept': 'application/json'}

            headers["Authorization"] = "Bearer " + os.environ["AMLOK_API_KEY"]

            response = requests.request('GET', os.environ["AMLOK_API_BASE_URL"]
            + '/v1/originations/record_synthetic', headers=headers, timeout=30,
            allow_redirects=False)

            response.raise_for_status()

            print(response.json())
        - lang: JavaScript
          source: >
            const headers = {"Accept": "application/json"};

            headers.Authorization = `Bearer ${process.env.AMLOK_API_KEY}`;

            const response = await fetch(process.env.AMLOK_API_BASE_URL +
            "/v1/originations/record_synthetic", {
              method: "GET", headers, redirect: "error", signal: AbortSignal.timeout(30000)
            });

            if (!response.ok) throw new Error(`HTTP ${response.status}: ${await
            response.text()}`);

            console.log(await response.json());
components:
  schemas:
    Origination:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        borrower_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        institution_reference:
          type: string
          minLength: 1
          description: >-
            Institution reference for Origination. Constraints, requiredness and
            allowed values are defined by this schema.
        status:
          type: string
          enum:
            - accepted
            - collecting
            - requires_action
            - processing
            - waiting_for_credits
            - completed
            - failed
            - cancelled
          description: >-
            Current lifecycle state. See the product lifecycle and recovery
            guides.
        created_at:
          type: string
          minLength: 1
          format: date-time
          description: UTC time the record was created.
        updated_at:
          type: string
          minLength: 1
          format: date-time
          description: UTC time this resource last changed.
        requirements:
          type: array
          items:
            $ref: '#/components/schemas/Requirement'
          description: >-
            Requirements for Origination. Constraints, requiredness and allowed
            values are defined by this schema.
        risk_package_id:
          anyOf:
            - type: string
              minLength: 1
              description: >-
                Opaque identifier, authorized within the API key workspace and
                environment.
            - type: 'null'
          description: >-
            Risk package id for Origination. Constraints, requiredness and
            allowed values are defined by this schema.
        failure:
          anyOf:
            - $ref: '#/components/schemas/Error'
            - type: 'null'
          description: >-
            Failure for Origination. Constraints, requiredness and allowed
            values are defined by this schema.
        submitted_request:
          $ref: '#/components/schemas/CreateOrigination'
          description: >-
            Submitted request for Origination. Constraints, requiredness and
            allowed values are defined by this schema.
        document_ids:
          type: array
          items:
            type: string
            minLength: 1
            description: Opaque ID within the authorized workspace and environment.
          uniqueItems: true
          description: >-
            Current authorized document associations. Includes submitted
            documents and later documents accepted against open requirements. A
            completed assessment freezes its own document and evidence
            references.
        connection_ids:
          type: array
          items:
            type: string
            minLength: 1
            description: Opaque identifier in the authorized workspace and environment.
          uniqueItems: true
          description: >-
            Current effective connections, including resolved requirements.
            submitted_request remains immutable.
        record_version:
          type: integer
          minimum: 1
          description: >-
            Monotonic version for this resource; compare with
            event.resource_version.
      required:
        - id
        - borrower_id
        - institution_reference
        - status
        - created_at
        - updated_at
        - requirements
        - risk_package_id
        - failure
        - submitted_request
        - document_ids
        - connection_ids
        - record_version
      additionalProperties: false
      allOf:
        - if:
            properties:
              status:
                const: completed
          then:
            properties:
              risk_package_id:
                type: string
                minLength: 1
                description: >-
                  Opaque identifier, authorized within the API key workspace and
                  environment.
          else:
            properties:
              risk_package_id:
                type: 'null'
        - if:
            properties:
              status:
                const: requires_action
          then:
            properties:
              requirements:
                minItems: 1
          else:
            properties:
              requirements:
                maxItems: 0
        - if:
            properties:
              status:
                const: failed
          then:
            properties:
              failure:
                $ref: '#/components/schemas/Error'
          else:
            properties:
              failure:
                type: 'null'
    Meta:
      type: object
      properties:
        request_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        schema_version:
          type: string
          minLength: 1
          description: >-
            Schema version for Meta. Constraints, requiredness and allowed
            values are defined by this schema.
        environment:
          type: string
          enum:
            - sandbox
            - live
          description: >-
            Environment for Meta. Constraints, requiredness and allowed values
            are defined by this schema.
      required:
        - request_id
        - schema_version
        - environment
      additionalProperties: false
    Error:
      type: object
      properties:
        code:
          type: string
          enum:
            - validation_error
            - unauthenticated
            - forbidden
            - not_found
            - invalid_state
            - idempotency_conflict
            - insufficient_credits
            - precondition_failed
            - cursor_expired
            - rate_limited
            - temporarily_unavailable
            - deal_snapshot_conflict
            - payload_too_large
            - unsupported_media_type
            - document_rejected
            - processing_failed
            - session_expired
            - consent_purpose_missing
            - sandbox_only
            - scenario_not_available
            - idempotency_result_expired
          description: >-
            Code for Error. Constraints, requiredness and allowed values are
            defined by this schema.
        message:
          type: string
          minLength: 1
          description: >-
            Message for Error. Constraints, requiredness and allowed values are
            defined by this schema.
        retryable:
          type: boolean
          description: >-
            Retryable for Error. Constraints, requiredness and allowed values
            are defined by this schema.
        request_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        field:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          description: >-
            Field for Error. Constraints, requiredness and allowed values are
            defined by this schema.
      required:
        - code
        - message
        - retryable
        - request_id
        - field
      additionalProperties: false
    Requirement:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          description: Opaque identifier in the authorized workspace and environment.
        code:
          type: string
          enum:
            - source_missing
            - source_reauthorization_required
            - document_required
            - contact_support
          description: >-
            Code for Requirement. Constraints, requiredness and allowed values
            are defined by this schema.
        message:
          type: string
          minLength: 1
          description: >-
            Human-readable explanation; automate using code/action and typed
            fields.
        action:
          type: string
          enum:
            - connect_source
            - reauthorize_source
            - upload_document
            - contact_support
          description: >-
            Action for Requirement. Constraints, requiredness and allowed values
            are defined by this schema.
        connection_id:
          anyOf:
            - type: string
              minLength: 1
              description: Opaque identifier in the authorized workspace and environment.
            - type: 'null'
          description: >-
            Connection id for Requirement. Constraints, requiredness and allowed
            values are defined by this schema.
        integration_id:
          anyOf:
            - type: string
              minLength: 1
              description: Opaque identifier in the authorized workspace and environment.
            - type: 'null'
          description: >-
            Integration id for Requirement. Constraints, requiredness and
            allowed values are defined by this schema.
        document_type:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          description: >-
            Document type for Requirement. Constraints, requiredness and allowed
            values are defined by this schema.
        accepted_mime_types:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            Accepted mime types for Requirement. Constraints, requiredness and
            allowed values are defined by this schema.
        consent_purposes:
          type: array
          items:
            type: string
            enum:
              - credit_assessment
              - continuous_monitoring
          uniqueItems: true
          description: >-
            Consent purposes for Requirement. Constraints, requiredness and
            allowed values are defined by this schema.
      required:
        - id
        - code
        - message
        - action
        - connection_id
        - integration_id
        - document_type
        - accepted_mime_types
        - consent_purposes
      additionalProperties: false
      allOf:
        - if:
            properties:
              action:
                const: reauthorize_source
          then:
            properties:
              code:
                const: source_reauthorization_required
              connection_id:
                type: string
                minLength: 1
                description: Opaque identifier in the authorized workspace and environment.
              consent_purposes:
                minItems: 1
        - if:
            properties:
              action:
                const: connect_source
          then:
            properties:
              code:
                const: source_missing
              integration_id:
                type: string
                minLength: 1
                description: Opaque identifier in the authorized workspace and environment.
              consent_purposes:
                minItems: 1
        - if:
            properties:
              action:
                const: upload_document
          then:
            properties:
              code:
                const: document_required
              document_type:
                type: string
                minLength: 1
              accepted_mime_types:
                minItems: 1
        - if:
            properties:
              action:
                const: contact_support
          then:
            properties:
              code:
                const: contact_support
    CreateOrigination:
      type: object
      properties:
        borrower_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        application:
          $ref: '#/components/schemas/ApplicationInput'
          description: >-
            Application for CreateOrigination. Constraints, requiredness and
            allowed values are defined by this schema.
        lending_product_version_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        risk_policy_version_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        connection_ids:
          type: array
          items:
            type: string
            minLength: 1
            description: >-
              Opaque identifier, authorized within the API key workspace and
              environment.
          uniqueItems: true
          description: >-
            Connection ids for CreateOrigination. Constraints, requiredness and
            allowed values are defined by this schema.
        document_ids:
          type: array
          items:
            type: string
            minLength: 1
            description: >-
              Opaque identifier, authorized within the API key workspace and
              environment.
          uniqueItems: true
          description: >-
            Document ids for CreateOrigination. Constraints, requiredness and
            allowed values are defined by this schema.
      required:
        - borrower_id
        - application
        - lending_product_version_id
        - risk_policy_version_id
        - connection_ids
        - document_ids
      additionalProperties: false
      description: >-
        AMLOK resolves authorized source data, coverage, verification and
        calculations. Clients do not provide workflow IDs, manifests or
        processing_context. Validate product, policy, currency, market and
        borrower-type compatibility.
    ApplicationInput:
      type: object
      properties:
        institution_reference:
          type: string
          minLength: 1
          description: >-
            Institution reference for ApplicationInput. Constraints,
            requiredness and allowed values are defined by this schema.
        requested_amount:
          $ref: '#/components/schemas/Money'
          description: >-
            Requested amount for ApplicationInput. Constraints, requiredness and
            allowed values are defined by this schema.
        requested_term_months:
          type: integer
          minimum: 1
          description: >-
            Requested term months for ApplicationInput. Constraints,
            requiredness and allowed values are defined by this schema.
        purpose:
          type: string
          minLength: 1
          description: >-
            Purpose for ApplicationInput. Constraints, requiredness and allowed
            values are defined by this schema.
        declared_data:
          type: object
          description: >-
            Institution-defined application fields validated against
            application_schema_id; additionalProperties here does not bypass
            that schema.
        application_schema_id:
          type: string
          minLength: 1
          description: >-
            Opaque identifier, authorized within the API key workspace and
            environment.
        related_borrower_ids:
          type: array
          items:
            type: string
            minLength: 1
            description: >-
              Opaque identifier, authorized within the API key workspace and
              environment.
          uniqueItems: true
          description: >-
            Related borrower ids for ApplicationInput. Constraints, requiredness
            and allowed values are defined by this schema.
      required:
        - institution_reference
        - requested_amount
        - requested_term_months
        - purpose
        - application_schema_id
        - declared_data
      additionalProperties: false
    Money:
      type: object
      properties:
        amount:
          type: string
          minLength: 1
          pattern: ^(?:0|[1-9][0-9]*)\.[0-9]{2}$
          description: >-
            Amount for Money. Constraints, requiredness and allowed values are
            defined by this schema.
        currency:
          type: string
          minLength: 1
          pattern: ^[A-Z]{3}$
          description: >-
            Currency for Money. Constraints, requiredness and allowed values are
            defined by this schema.
      required:
        - amount
        - currency
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: >-
        Server-to-server API key bound to exactly one workspace, institution
        tenant and environment. No caller-supplied workspace override is
        accepted. Do not use in public browser code.

````

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