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

# Check pipeline stage usage and reassignment alternatives

> Returns whether the stage still has assigned records and lists the other active stages on the same pipeline that the records can be reassigned to.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/pipelines/stages/{stageId}/usage
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/pipelines/stages/{stageId}/usage:
    get:
      tags:
        - Pipelines
      summary: Check pipeline stage usage and reassignment alternatives
      description: >-
        Returns whether the stage still has assigned records and lists the other
        active stages on the same pipeline that the records can be reassigned
        to.
      operationId: get_pipeline_stage_usage
      parameters:
        - in: path
          name: stageId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Pipeline stage usage returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineStageUsageResponse'
        '400':
          description: Invalid stageId format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineErrorResponse'
        '404':
          description: Pipeline stage or parent pipeline not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PipelineErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    PipelineStageUsageResponse:
      type: object
      properties:
        success:
          type: boolean
        stageId:
          type: string
        stageName:
          type: string
        pipelineType:
          type: string
          enum:
            - Contact
            - Application
        isInUse:
          type: boolean
        recordsCount:
          type: number
        hasAlternatives:
          type: boolean
        alternatives:
          type: array
          items:
            $ref: '#/components/schemas/PipelineStageUsageAlternative'
      additionalProperties: true
      example:
        success: true
        stageId: 67f0a0b0c0d0e0f0a0b0c0d0
        stageName: New
        pipelineType: Contact
        isInUse: true
        recordsCount: 7
        hasAlternatives: true
        alternatives:
          - id: 67f0a0b0c0d0e0f0a0b0c0d1
            name: Qualified
            color: '#10B981'
    PipelineErrorResponse:
      type: object
      properties:
        error:
          type: string
      additionalProperties: true
      example:
        error: Pipeline not found
    PipelineStageUsageAlternative:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        color:
          type: string
      additionalProperties: true
      example:
        id: 67f0a0b0c0d0e0f0a0b0c0d1
        name: Qualified
        color: '#10B981'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````