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

# Preview owned-resource counts for a cross-organization user transfer (SuperAdmin only)

> Returns aggregate counts of items currently owned by the user (contacts, conversations, assignee-only conversations, automations, workflows, webchat configurations, acquired items, integrations, voice numbers, prompts, automation keys, etc.) so the operator can review what would be moved. Does not mutate state.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/organizations/transfer/preview
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/preview:
    post:
      tags:
        - Organizations
      summary: >-
        Preview owned-resource counts for a cross-organization user transfer
        (SuperAdmin only)
      description: >-
        Returns aggregate counts of items currently owned by the user (contacts,
        conversations, assignee-only conversations, automations, workflows,
        webchat configurations, acquired items, integrations, voice numbers,
        prompts, automation keys, etc.) so the operator can review what would be
        moved. Does not mutate state.
      operationId: post_organizations_transfer_preview
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrgTransferPreviewRequest'
      responses:
        '200':
          description: Preview counts returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgTransferPreviewResponse'
        '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:
    OrgTransferPreviewRequest:
      type: object
      properties:
        userId:
          type: string
          description: >-
            User being moved out of the source organization; the preview counts
            the resources currently owned by this user.
        targetOrganizationId:
          type: string
          description: >-
            Organization the user would be transferred into; used to identify
            cross-org references in the preview.
      required:
        - userId
        - targetOrganizationId
      additionalProperties: true
      example:
        userId: 5f7b1c2e8a1d4e0012c3b4a6
        targetOrganizationId: 5f7b1c2e8a1d4e0012c3b401
    OrgTransferPreviewResponse:
      type: object
      properties:
        contacts:
          type: integer
        conversations:
          type: integer
        assigneeConversations:
          type: integer
        automations:
          type: integer
        workflows:
          type: integer
        webchatConfigurations:
          type: integer
        acquiredItems:
          type: integer
        emailAccounts:
          type: integer
        calendarConnections:
          type: integer
        calendarToolConfigurations:
          type: integer
        googleSheetsTokens:
          type: integer
        unfiredReminders:
          type: integer
        promptCount:
          type: integer
        voicePhoneNumbers:
          type: integer
        automationKeys:
          type: integer
      additionalProperties: true
      example:
        contacts: 1240
        conversations: 3580
        assigneeConversations: 412
        automations: 7
        workflows: 3
        webchatConfigurations: 2
        acquiredItems: 18
        emailAccounts: 1
        calendarConnections: 1
        calendarToolConfigurations: 1
        googleSheetsTokens: 0
        unfiredReminders: 22
        promptCount: 15
        voicePhoneNumbers: 2
        automationKeys: 4
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````