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

# Execute a cross-organization user transfer (SuperAdmin only)

> Kicks off an asynchronous transfer of a user (and their owned data: contacts, conversations, automations, workflows, webchat configs, acquired items, email/calendar/sheets integrations, voice numbers, etc.) into a target organization. Requires a fresh scanVersion from /transfer/scan and a reassigneeUserId that owns whatever cannot be moved. SUPERADMIN only.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/organizations/transfer/execute
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/organizations/transfer/execute:
    post:
      tags:
        - Organizations
      summary: Execute a cross-organization user transfer (SuperAdmin only)
      description: >-
        Kicks off an asynchronous transfer of a user (and their owned data:
        contacts, conversations, automations, workflows, webchat configs,
        acquired items, email/calendar/sheets integrations, voice numbers, etc.)
        into a target organization. Requires a fresh scanVersion from
        /transfer/scan and a reassigneeUserId that owns whatever cannot be
        moved. SUPERADMIN only.
      operationId: post_organizations_transfer_execute
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrgTransferExecuteRequest'
      responses:
        '202':
          description: Transfer accepted and started in the background
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgTransferExecuteResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '403':
          description: 'Forbidden: Only Superadmin can transfer users between organizations'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganizationErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    OrgTransferExecuteRequest:
      type: object
      properties:
        scanVersion:
          type: string
          minLength: 1
          description: >-
            Version token returned by the prior scan call; rejected if stale to
            prevent applying an out-of-date transfer plan.
        userId:
          type: string
          description: >-
            User being transferred; must match the userId from the matching
            scan.
        targetOrganizationId:
          type: string
          description: >-
            Destination organization for the user; must match the
            targetOrganizationId from the matching scan.
        targetDepartmentId:
          type: string
          description: >-
            Optional department within the target organization the user joins;
            the user is added as a manager when newAccessRole is
            DEPARTMENT_HEAD, otherwise as a member.
        newAccessRole:
          type: string
          enum:
            - ADMIN
            - DEPARTMENT_HEAD
            - SALES_REP
          description: Access role the user receives in the target organization.
        reassigneeUserId:
          type: string
          description: >-
            User in the source org who inherits the transferring user's owned
            resources (contacts, conversations, automations, workflows, webchat
            configs, prompts); must differ from userId.
        agentRemaps:
          type: array
          items:
            $ref: '#/components/schemas/OrgTransferAgentRemap'
          default: []
          description: >-
            Optional remappings applied to the transferring user's automations
            so each fromAgentId is swapped to the corresponding toAgentId owned
            by the reassignee.
      required:
        - scanVersion
        - userId
        - targetOrganizationId
        - newAccessRole
        - reassigneeUserId
      additionalProperties: true
      example:
        scanVersion: scan-2026-05-18T14:30:00Z-abc123
        userId: 5f7b1c2e8a1d4e0012c3b4a6
        targetOrganizationId: 5f7b1c2e8a1d4e0012c3b401
        targetDepartmentId: 5f7b1c2e8a1d4e0012c3b510
        newAccessRole: SALES_REP
        reassigneeUserId: 5f7b1c2e8a1d4e0012c3b4a8
        agentRemaps:
          - fromAgentId: 5f7b1c2e8a1d4e0012c3b610
            toAgentId: 5f7b1c2e8a1d4e0012c3b611
    OrgTransferExecuteResponse:
      type: object
      properties:
        transferId:
          type: string
        status:
          type: string
          enum:
            - in_progress
      required:
        - transferId
        - status
      additionalProperties: true
      example:
        transferId: 5f7b1c2e8a1d4e0012c3b900
        status: in_progress
    OrganizationErrorResponse:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
      additionalProperties: true
      example:
        error: Organization not found
        details: No organization exists with the provided id
    OrgTransferAgentRemap:
      type: object
      properties:
        fromAgentId:
          type: string
        toAgentId:
          type: string
      required:
        - fromAgentId
        - toAgentId
      additionalProperties: true
      example:
        fromAgentId: 5f7b1c2e8a1d4e0012c3b610
        toAgentId: 5f7b1c2e8a1d4e0012c3b611
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````