Klarefi API

Klarefi API as documented publicly: 25 operations. Contract generated from the documentation by API Evangelist (2026-11-13); not the provider's own document.

GitHub OpenAPI

Operations 25

GET /api/v1/cases/{caseid} Read case status, intake events, and decision-ready handoff packages #
GET /api/v1/cases/{caseid}/events Read case status, intake events, and decision-ready handoff packages #
GET /api/v1/cases/{caseid}/package Read case status, intake events, and decision-ready handoff packages #
GET /api/v1/connectors List configured connectors #
POST /api/v1/connectors Create or update a connector #
POST /api/v1/connectors/import Import an OpenAPI connector #
DELETE /api/v1/connectors/{connectorkey} Delete a configured connector #
GET /api/v1/connectors/{connectorkey} Read a configured connector #
DELETE /api/v1/documents/{docid} Erase uploaded documents and derived data for privacy workflows #
GET /api/v1/health Service health check #
GET /api/v1/me Identify the authenticated org #
GET /api/v1/operator/queue List the bounded operator queue #
POST /api/v1/process Queue a document for processing #
POST /api/v1/sessions Create a hosted intake session #
POST /api/v1/sessions/{sessionid}/consent Draft saves and uploads return 409 consent_required while an applicant who must consent has not yet agreed to the processing notice. #
POST /api/v1/sessions/{sessionid}/handoff Complete customer-side handoff #
POST /api/v1/webhooks/deliveries/{deliveryid}/ack Acknowledge webhook handoff #
POST /api/v1/webhooks/test Use POST /api/v1/webhooks/test to test a receiver. #
GET /api/v1/workflows List workflow declarations #
POST /api/v1/workflows Save a workflow draft #
GET /case-file/case_abc123 GET /case-file/case_abc123 #
POST /claim_12345 POST /claim_12345 #
POST /process document_url is missing from POST /process #
POST /s/550e8400-e29b-41d4-a716-446655440000 POST /s/550e8400-e29b-41d4-a716-446655440000 #
POST /webhooks/klarefi POST /webhooks/klarefi #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/klarefi-com:klarefi-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

klarefi-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Klarefi API
  version: '2026-11-13'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-13: 25 operation(s) read from 16 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; Klarefi has published no machine-readable contract
    that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 4
    documentation: 21
    pages-with-code: 6
    pages-read: 16
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-13'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://www.klarefi.com/docs/api/cases
  - https://www.klarefi.com/docs/api/errors
  - https://www.klarefi.com/docs/api/overview
  - https://www.klarefi.com/docs/api/sessions
  - https://www.klarefi.com/docs/api/webhooks
  - https://www.klarefi.com/docs/api/documents
  - https://www.klarefi.com/docs/api/reference
  - https://www.klarefi.com/docs/api/quickstart
  - https://www.klarefi.com/docs/api/idempotency
  - https://www.klarefi.com/docs-source/api/cases
  - https://www.klarefi.com/docs-source/api/errors
  - https://www.klarefi.com/docs/api/authentication
  - https://www.klarefi.com/docs/reference/sessions
  - https://www.klarefi.com/docs-source/api/overview
  - https://www.klarefi.com/docs-source/api/sessions
  - https://www.klarefi.com/docs-source/api/webhooks
servers:
- url: https://app.klarefi.com
paths:
  /api/v1/cases/{caseid}:
    get:
      operationId: get_api_v1_cases_caseid
      tags:
      - Api
      summary: Read case status, intake events, and decision-ready handoff packages
      x-source: https://www.klarefi.com/docs/api/cases
      parameters:
      - name: caseid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1CasesCaseidResponse'
      x-evidence:
        kind: documentation
  /api/v1/cases/{caseid}/events:
    get:
      operationId: get_api_v1_cases_caseid_events
      tags:
      - Api
      summary: Read case status, intake events, and decision-ready handoff packages
      x-source: https://www.klarefi.com/docs/api/cases
      parameters:
      - name: caseid
        in: path
        required: true
        schema:
          type: string
      - name: after_cursor
        in: query
        required: false
        schema:
          type: integer
        description: Cursor to start after (default 0)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: Maximum number of events to return (default 100, max 500)
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1CasesCaseidEventsResponse'
      x-evidence:
        kind: documentation
  /api/v1/cases/{caseid}/package:
    get:
      operationId: get_api_v1_cases_caseid_package
      tags:
      - Api
      summary: Read case status, intake events, and decision-ready handoff packages
      x-source: https://www.klarefi.com/docs/api/cases
      parameters:
      - name: caseid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1CasesCaseidPackageResponse'
      x-evidence:
        kind: documentation
  /api/v1/connectors:
    get:
      operationId: get_api_v1_connectors
      tags:
      - Api
      summary: List configured connectors
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ConnectorsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_connectors
      tags:
      - Api
      summary: Create or update a connector
      x-source: https://www.klarefi.com/docs/api/reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ConnectorsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1ConnectorsResponse'
      x-evidence:
        kind: documentation
  /api/v1/connectors/import:
    post:
      operationId: post_api_v1_connectors_import
      tags:
      - Api
      summary: Import an OpenAPI connector
      x-source: https://www.klarefi.com/docs/api/reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ConnectorsImportRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1ConnectorsImportResponse'
      x-evidence:
        kind: documentation
  /api/v1/connectors/{connectorkey}:
    delete:
      operationId: delete_api_v1_connectors_connectorkey
      tags:
      - Api
      summary: Delete a configured connector
      x-source: https://www.klarefi.com/docs/api/reference
      parameters:
      - name: connectorkey
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiV1ConnectorsConnectorkeyResponse'
      x-evidence:
        kind: documentation
    get:
      operationId: get_api_v1_connectors_connectorkey
      tags:
      - Api
      summary: Read a configured connector
      x-source: https://www.klarefi.com/docs/api/reference
      parameters:
      - name: connectorkey
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1ConnectorsConnectorkeyResponse'
      x-evidence:
        kind: documentation
  /api/v1/documents/{docid}:
    delete:
      operationId: delete_api_v1_documents_docid
      tags:
      - Api
      summary: Erase uploaded documents and derived data for privacy workflows
      x-source: https://www.klarefi.com/docs/api/documents
      parameters:
      - name: docid
        in: path
        required: true
        schema:
          type: string
      responses:
        '2000':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiV1DocumentsDocidResponse'
      x-evidence:
        kind: documentation
  /api/v1/health:
    get:
      operationId: get_api_v1_health
      tags:
      - Api
      summary: Service health check
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1HealthResponse'
      x-evidence:
        kind: documentation
  /api/v1/me:
    get:
      operationId: get_api_v1_me
      tags:
      - Api
      summary: Identify the authenticated org
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1MeResponse'
      x-evidence:
        kind: documentation
  /api/v1/operator/queue:
    get:
      operationId: get_api_v1_operator_queue
      tags:
      - Api
      summary: List the bounded operator queue
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1OperatorQueueResponse'
      x-evidence:
        kind: documentation
  /api/v1/process:
    post:
      operationId: post_api_v1_process
      tags:
      - Api
      summary: Queue a document for processing
      x-source: https://www.klarefi.com/docs/api/reference
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ProcessRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1ProcessResponse'
      x-evidence:
        kind: documentation
  /api/v1/sessions:
    post:
      operationId: post_api_v1_sessions
      tags:
      - Api
      summary: Create a hosted intake session
      description: Creates a hosted intake session. Requires an idempotency_key in the JSON body or an Idempotency-Key header.
      x-source: https://www.klarefi.com/docs/api/overview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1SessionsRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/sessions/{sessionid}/consent:
    post:
      operationId: post_api_v1_sessions_sessionid_consent
      tags:
      - Api
      summary: Draft saves and uploads return 409 consent_required while an applicant who must consent has not yet agreed to the processing notice.
      description: Record a missing consent for a session.
      x-source: https://www.klarefi.com/docs/api/errors
      parameters:
      - name: sessionid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1SessionsSessionidConsentResponse'
      x-evidence:
        kind: documentation
  /api/v1/sessions/{sessionid}/handoff:
    post:
      operationId: post_api_v1_sessions_sessionid_handoff
      tags:
      - Api
      summary: Complete customer-side handoff
      x-source: https://www.klarefi.com/docs/api/reference
      parameters:
      - name: sessionid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1SessionsSessionidHandoffRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1SessionsSessionidHandoffResponse'
      x-evidence:
        kind: documentation
  /api/v1/webhooks/deliveries/{deliveryid}/ack:
    post:
      operationId: post_api_v1_webhooks_deliveries_deliveryid_ack
      tags:
      - Api
      summary: Acknowledge webhook handoff
      x-source: https://www.klarefi.com/docs/api/reference
      parameters:
      - name: deliveryid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1WebhooksDeliveriesDeliveryidAckResponse'
      x-evidence:
        kind: documentation
  /api/v1/webhooks/test:
    post:
      operationId: post_api_v1_webhooks_test
      tags:
      - Api
      summary: Use POST /api/v1/webhooks/test to test a receiver.
      x-source: https://www.klarefi.com/docs/api/webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1WebhooksTestRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1WebhooksTestResponse'
      x-evidence:
        kind: documentation
  /api/v1/workflows:
    get:
      operationId: get_api_v1_workflows
      tags:
      - Api
      summary: List workflow declarations
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiV1WorkflowsResponse'
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_workflows
      tags:
      - Api
      summary: Save a workflow draft
      x-source: https://www.klarefi.com/docs/api/reference
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /case-file/case_abc123:
    get:
      operationId: get_case_file_case_abc123
      tags:
      - Case File
      summary: GET /case-file/case_abc123
      x-source: https://www.klarefi.com/docs/api/cases
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl \" $KLAREFI_API_BASE_URL /api/v1/cases/case_abc123\"  -H \"Authorization: Bearer $KLAREFI_API_KEY \" \n The response is\
          \ the current operator workspace projection. Unknown fields\nshould be ignored. \n Copy Text { \n \"case_id\" : \"case_abc123\" , \n\
          \ \"case_type_id\" : \"motor_claim\" , \n \"workflow_id\" : \"motor_claim_intake\" , \n \"workflow_version\" : \"3\" , \n \"operating_mode\"\
          \ : \"system_of_action\" , \n \"runtime_s"
  /claim_12345:
    post:
      operationId: post_claim_12345
      tags:
      - Claim 12345
      summary: POST /claim_12345
      x-source: https://www.klarefi.com/docs/api/sessions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostClaim12345Request'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostClaim12345Response'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \" $KLAREFI_API_BASE_URL /api/v1/sessions\"  -H \"Authorization: Bearer $KLAREFI_API_KEY \"  -H \"Content-Type:\
          \ application/json\"  -d '{ \n \"case_type_id\": \"motor_claim\", \n \"idempotency_key\": \"session_claim_12345\", \n \"external_case_id\"\
          : \"claim_12345\", \n \"external_applicant_id\": \"applicant_789\", \n \"external_customer_id\": \"customer_456\", \n \"trace_id\":\
          \ \"trace_claim_12345\", \n \"ttl_hours\": 168, "
  /process:
    post:
      operationId: post_process
      tags:
      - Process
      summary: document_url is missing from POST /process
      description: Processing endpoint requires a public HTTPS document URL.
      x-source: https://www.klarefi.com/docs/api/errors
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostProcessResponse'
      x-evidence:
        kind: documentation
  /s/550e8400-e29b-41d4-a716-446655440000:
    post:
      operationId: post_s_550e8400_e29b_41d4_a716_446655440000
      tags:
      - S
      summary: POST /s/550e8400-e29b-41d4-a716-446655440000
      x-source: https://www.klarefi.com/docs/api/quickstart
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostS550E8400E29B41D4A716446655440000Request'
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostS550E8400E29B41D4A716446655440000Response'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl examples use\n KLAREFI_API_BASE_URL ; set both to the dashboard value. \n Install Copy Anchor Link \n Copy Text npm install\
          \ @klarefi/node \n npx klarefi doctor \n Hosted intake Copy Anchor Link \n Create a session when Klarefi should own the applicant-facing\
          \ intake. Run this\nfrom trusted server-side code, then redirect the applicant to signed_url . \n Copy Text import {Klarefi} from \"\
          @klarefi/node\" "
  /webhooks/klarefi:
    post:
      operationId: post_webhooks_klarefi
      tags:
      - Webhooks
      summary: POST /webhooks/klarefi
      x-source: https://www.klarefi.com/docs/api/webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostWebhooksKlarefiRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST \" $KLAREFI_API_BASE_URL /api/v1/webhooks/test\"  -H \"Authorization: Bearer $KLAREFI_API_KEY \"  -H \"Content-Type:\
          \ application/json\"  -d '{ \n \"endpoint_url\": \"https://your-app.example.com/webhooks/klarefi\", \n \"signing_secret\": \"whsec_your_signing_secret\"\
          \ \n }' \n Copy Text { \n \"success\" : true , \n \"status_code\" : 200 \n } \n To verify a captured payload locally: \n Copy Text npx\
          \ klarefi webho"
components:
  schemas:
    GetApiV1CasesCaseidResponse:
      type: object
      properties:
        case_id:
          type: string
        case_type_id:
          type: string
        workflow_id:
          type: string
        workflow_version:
          type: string
        operating_mode:
          type: string
        runtime_status:
          type: string
        workspace:
          type: object
          description: Current workspace projection
        queue_row:
          type: object
          description: Queue information for the case
        updated_at:
          type: string
          description: ISO‑8601 timestamp
    GetApiV1CasesCaseidEventsResponse:
      type: object
      properties:
        case_id:
          type: string
        events:
          type: array
          description: List of event objects
        next_cursor:
          type: integer
        has_more:
          type: boolean
    GetApiV1CasesCaseidPackageResponse:
      type: object
      properties:
        schema_version:
          type: string
        generated_at:
          type: string
          description: ISO‑8601 timestamp
        case:
          type: object
          description: Basic case metadata
        decisions:
          type: array
          description: List of decision objects (may be empty)
        items:
          type: array
          description: List of item objects (may be empty)
        facts:
          type: array
          description: Facts associated with the case
        documents:
          type: array
          description: Documents attached to the case
        calculated_facts:
          type: array
          description: Facts calculated by the workflow
        decision:
          type: object
          description: Decision details (offer or decline)
        summary:
          type: object
          description: Counts of resolved, needs_input, failed, and document facts
        case_file_url:
          type: string
          description: URL to the signed case file (may be null)
    GetApiV1ConnectorsResponse:
      type: object
      properties:
        connectors:
          type: array
          description: Array of connector objects
        environment:
          type: string
    PostApiV1ConnectorsRequest:
      type: object
      properties:
        connector_key:
          type: string
        label:
          type: string
        connector_type:
          type: string
        transport:
          type: object
        functions:
          type: array
      required:
      - connector_key
      - label
      - connector_type
      - transport
    PostApiV1ConnectorsResponse:
      type: object
      properties:
        connector_key:
          type: string
        created:
          type: boolean
        approval_required:
          type: boolean
        approval_status:
          type: string
          description: e.g., "pending_approval"
        environment:
          type: string
    PostApiV1ConnectorsImportRequest:
      type: object
      properties:
        connector_key:
          type: string
        label:
          type: string
        openapi_url:
          type: string
        openapi_json:
          type: object
        auth:
          type: object
      required:
      - connector_key
      - label
    PostApiV1ConnectorsImportResponse:
      type: object
      properties:
        connector_key:
          type: string
        created:
          type: boolean
        approval_required:
          type: boolean
        approval_status:
          type: string
        environment:
          type: string
        functions_imported:
          type: integer
    DeleteApiV1ConnectorsConnectorkeyResponse:
      type: object
      properties:
        connector_key:
          type: string
        deleted:
          type: boolean
        approval_required:
          type: boolean
        approval_status:
          type: string
        environment:
          type: string
    GetApiV1ConnectorsConnectorkeyResponse:
      type: object
      properties:
        connector:
          type: object
        environment:
          type: string
    DeleteApiV1DocumentsDocidResponse:
      type: object
      properties:
        erasure_receipt:
          type: object
          description: Details of the erasure job
    GetApiV1HealthResponse:
      type: object
      properties:
        status:
          type: string
          description: Health status, e.g., "ok"
    GetApiV1MeResponse:
      type: object
      properties:
        org_id:
          type: string
          description: Organization identifier
        environment:
          type: string
          description: Environment name, e.g., "test"
    GetApiV1OperatorQueueResponse:
      type: object
      properties:
        queue:
          type: array
          description: Operator queue items
    PostApiV1ProcessRequest:
      type: object
      properties:
        document_url:
          type: string
        case_type_id:
          type: string
        idempotency_key:
          type: string
        external_case_id:
          type: string
        external_applicant_id:
          type: string
        external_customer_id:
          type: string
        trace_id:
          type: string
      required:
      - document_url
      - case_type_id
      - idempotency_key
    PostApiV1ProcessResponse:
      type: object
      properties:
        case_id:
          type: string
        doc_id:
          type: string
        job_id:
          type: string
        status:
          type: string
          description: '"queued" etc.'
        idempotent_replay:
          type: boolean
    PostApiV1SessionsRequest:
      type: object
      properties:
        idempotency_key:
          type: string
          description: Idempotency key for the request, can also be provided via Idempotency-Key header
      required:
      - idempotency_key
    PostApiV1SessionsSessionidConsentResponse:
      type: object
      properties:
        error:
          type: object
          description: Error object containing code and message.
        error.code:
          type: string
          description: consent_required
        error.message:
          type: string
          description: Applicant must consent before proceeding.
    PostApiV1SessionsSessionidHandoffRequest:
      type: object
      properties:
        notify:
          type: object
          description: 'Optional notification object, e.g. { "email": "applicant@example.com" }'
    PostApiV1SessionsSessionidHandoffResponse:
      type: object
      properties:
        session_id:
          type: string
        signed_url:
          type: string
        access_token:
          type: string
        access_token_expires_at:
          type: string
        expires_at:
          type: string
        customer_completed_at:
          type: string
        already_marked:
          type: boolean
        notification:
          type: object
    PostApiV1WebhooksDeliveriesDeliveryidAckResponse:
      type: object
      properties:
        acknowledgement_id:
          type: string
        acknowledged:
          type: boolean
        already_acknowledged:
          type: boolean
        delivery_id:
          type: string
    PostApiV1WebhooksTestRequest:
      type: object
      properties:
        endpoint_url:
          type: string
          description: The URL of the webhook endpoint to receive the test event.
        signing_secret:
          type: string
          description: The secret used to sign the test webhook payload.
      required:
      - endpoint_url
      - signing_secret
    PostApiV1WebhooksTestResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Indicates the test request succeeded.
        status_code:
          type: integer
          description: HTTP status code returned by the test endpoint.
    GetApiV1WorkflowsResponse:
      type: object
      properties:
        workflows:
          type: array
          description: Array of workflow objects
    PostClaim12345Request:
      type: object
      properties:
        case_type_id:
          type: string
        idempotency_key:
          type: string
        external_case_id:
          type: string
        external_applicant_id:
          type: string
        external_customer_id:
          type: string
        trace_id:
          type: string
        ttl_hours:
          type: integer
        return_url:
          type: string
        locale:
          type: string
        prefill:
          type: object
          properties:
            field_values:
              type: object
              properties:
                claimant_name:
                  type: string
                prior_reference:
                  type:
                  - string
                  - 'null'
    PostClaim12345Response:
      type: object
      properties:
        session_id:
          type: string
        signed_url:
          type: string
        access_token:
          type: string
        access_token_expires_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        agent:
          type: object
          properties:
            api_base:
              type: string
            manifest_url:
              type: string
            access_token:
              type: string
        snippet:
          type: string
        idempotent_replay:
          type: boolean
        prefill:
          type: object
          properties:
            applied_field_ids:
              type: array
              items:
                type: string
    PostProcessResponse:
      type: object
      properties:
        error:
          type: object
          description: Error object containing type, code, and message.
        error.type:
          type: string
          description: validation_error
        error.code:
          type: string
          description: missing_document_url
        error.message:
          type: string
          description: document_url is required and must be a string
    PostS550E8400E29B41D4A716446655440000Request:
      type: object
      properties:
        case_type_id:
          type: string
        idempotency_key:
          type: string
        external_case_id:
          type: string
        external_applicant_id:
          type: string
        ttl_hours:
          type: integer
        locale:
          type: string
    PostS550E8400E29B41D4A716446655440000Response:
      type: object
      properties:
        session_id:
          type: string
        signed_url:
          type: string
        access_token:
          type: string
        access_token_expires_at:
          type: string
          format: date-time
        expires_at:
          type: string
          format: date-time
        agent:
          type: object
          properties:
            api_base:
              type: string
            manifest_url:
              type: string
            access_token:
              type: string
        snippet:
          type: string
        idempotent_replay:
          type: boolean
    PostWebhooksKlarefiRequest:
      type: object
      properties:
        endpoint_url:
          type: string
        signing_secret:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Case File
- name: Claim 12345
- name: Process
- name: S
- name: Webhooks