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

# Resolve a dedup review by keeping the pair separate

> Marks the review as kept_separate without merging the contacts. Admin/Superadmin only.



## OpenAPI

````yaml /api-reference/openapi.yaml patch /api/contacts/dedup-reviews/{reviewId}/keep-separate
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/contacts/dedup-reviews/{reviewId}/keep-separate:
    patch:
      tags:
        - Contacts
      summary: Resolve a dedup review by keeping the pair separate
      description: >-
        Marks the review as kept_separate without merging the contacts.
        Admin/Superadmin only.
      operationId: patch_contact_dedup_review_keep_separate
      parameters:
        - in: path
          name: reviewId
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactDedupReviewResolutionBody'
      responses:
        '200':
          description: Review kept separate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactDedupReviewKeepSeparateResponse'
        '400':
          description: Invalid reviewId
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '403':
          description: Caller is not admin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '404':
          description: Review not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '409':
          description: Review already resolved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ContactDedupReviewResolutionBody:
      type: object
      properties:
        resolution:
          type: object
          additionalProperties: true
          description: >-
            Free-form resolution payload persisted on the review (e.g.
            `fieldChoices` map of `source`/`candidate` selections that drive the
            merge).
      additionalProperties: true
      example:
        resolution:
          firstName: candidate
          lastName: candidate
          email: source
    ContactDedupReviewKeepSeparateResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
        data:
          $ref: '#/components/schemas/DedupReviewDto'
      required:
        - success
      additionalProperties: true
      example:
        success: true
        message: Review kept separate
        data:
          _id: 64f0a1b2c3d4e5f6a7b8ca30
          status: kept_separate
    LegacyErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        data: {}
      additionalProperties: true
      example:
        error: Attachment not found
        message: Attachment not found
    DedupReviewDto:
      type: object
      properties:
        _id:
          type: string
        organizationId:
          type: string
          nullable: true
        sourceContactId:
          nullable: true
          oneOf:
            - type: string
            - $ref: '#/components/schemas/ContactDto'
        candidateContactId:
          nullable: true
          oneOf:
            - type: string
            - $ref: '#/components/schemas/ContactDto'
        reviewSource:
          type: string
          enum:
            - fuzzy_match
            - phone_conflict
        status:
          type: string
          enum:
            - needs_review
            - merged
            - kept_separate
        score:
          type: number
        thresholdSnapshot:
          type: object
          additionalProperties: true
        fieldBreakdown:
          type: object
          additionalProperties: true
        sourceSnapshot:
          type: object
          additionalProperties: true
        candidateSnapshot:
          type: object
          additionalProperties: true
        phoneConflict:
          $ref: '#/components/schemas/DedupReviewPhoneConflict'
        resolution:
          type: object
          additionalProperties: true
        resolvedBy:
          nullable: true
          oneOf:
            - type: string
            - type: object
              properties:
                _id:
                  type: string
                fullName:
                  type: string
                  nullable: true
                email:
                  type: string
                  nullable: true
              additionalProperties: true
        resolvedAt:
          type: string
          format: date-time
          nullable: true
        createdAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
          nullable: true
      additionalProperties: true
      example:
        _id: 64f0a1b2c3d4e5f6a7b8ca30
        organizationId: 64f0a1b2c3d4e5f6a7b8c9d3
        sourceContactId: 64f0a1b2c3d4e5f6a7b8c9d0
        candidateContactId: 64f0a1b2c3d4e5f6a7b8ca31
        reviewSource: fuzzy_match
        status: needs_review
        score: 0.87
        createdAt: '2026-05-10T12:00:00.000Z'
    ContactDto:
      type: object
      properties:
        _id:
          type: string
        firstName:
          type: string
          nullable: true
        lastName:
          type: string
          nullable: true
        phoneNumber:
          nullable: true
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContactPhoneNumber'
        secondaryPhoneNumber:
          type: array
          nullable: true
          items:
            type: string
        email:
          type: string
          nullable: true
        status:
          type: string
          nullable: true
        pipelineId:
          type: string
          nullable: true
        pipelineStage:
          type: string
          nullable: true
        organizationId:
          type: string
          nullable: true
        userId:
          type: string
          nullable: true
        createdBy:
          type: string
          nullable: true
        assignees:
          type: array
          items: {}
        createdAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
          nullable: true
        existingConversationId:
          type: string
          nullable: true
          description: >-
            Set on responses from /api/contacts/inactive when called with
            includeExisting=true. Identifies the caller-accessible conversation
            in the requested channel; clients should route to this conversation
            instead of creating a new one.
      additionalProperties: true
      example:
        _id: 64f0a1b2c3d4e5f6a7b8c9d0
        firstName: Jane
        lastName: Doe
        phoneNumber:
          - value: '+14165550100'
            isPrimary: true
        secondaryPhoneNumber: []
        email: jane.doe@example.com
        status: New Lead
        pipelineId: 64f0a1b2c3d4e5f6a7b8c9d1
        pipelineStage: 64f0a1b2c3d4e5f6a7b8c9d2
        organizationId: 64f0a1b2c3d4e5f6a7b8c9d3
        userId: 64f0a1b2c3d4e5f6a7b8c9d4
        createdBy: 64f0a1b2c3d4e5f6a7b8c9d4
        assignees:
          - 64f0a1b2c3d4e5f6a7b8c9d4
        createdAt: '2026-05-01T14:30:00.000Z'
        updatedAt: '2026-05-15T09:12:00.000Z'
    DedupReviewPhoneConflict:
      type: object
      properties:
        phoneNumber:
          type: string
      required:
        - phoneNumber
      additionalProperties: true
      example:
        phoneNumber: '+14165550100'
    ContactPhoneNumber:
      type: object
      properties:
        value:
          type: string
        isPrimary:
          type: boolean
      required:
        - value
      additionalProperties: true
      example:
        value: '+14165550100'
        isPrimary: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````