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

# Confirm Capture

> Write a `leads` row from a confirmed OCR result.

Returns ``{lead_id}``. The frontend redirects to /leads after this so
the rep can promote with the existing convert-to-account flow.



## OpenAPI

````yaml /openapi-generated.json post /cards/captures/confirm
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /cards/captures/confirm:
    post:
      tags:
        - AnyCard
      summary: Confirm Capture
      description: |-
        Write a `leads` row from a confirmed OCR result.

        Returns ``{lead_id}``. The frontend redirects to /leads after this so
        the rep can promote with the existing convert-to-account flow.
      operationId: confirm_capture_route_cards_captures_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardCaptureConfirmBody'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Confirm Capture Route Cards Captures Confirm Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CardCaptureConfirmBody:
      properties:
        card_id:
          type: string
          minLength: 1
          title: Card Id
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        company:
          anyOf:
            - type: string
            - type: 'null'
          title: Company
        company_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Domain
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        linkedin:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        tags:
          items:
            type: string
          type: array
          title: Tags
        capture_payload:
          additionalProperties: true
          type: object
          title: Capture Payload
        source:
          type: string
          enum:
            - scan_badge
            - scan_card
            - manual
          title: Source
          default: scan_badge
      type: object
      required:
        - card_id
        - name
      title: CardCaptureConfirmBody
      description: |-
        Rep-confirmed extraction → write a `leads` row.

        The fields below are the editable result of the OCR confirm screen;
        ``capture_payload`` retains the raw OCR output for debugging and future
        model re-runs against the same S3 image.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````