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

# Set the active voice provider (superadmin)

> Switches the active voice provider for the organization to either `twilio` or `sinch`. The target provider must already be configured (credentials present); otherwise the call is rejected. Superadmin only.



## OpenAPI

````yaml /api-reference/openapi.yaml post /api/calls/providers/active
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/calls/providers/active:
    post:
      tags:
        - Calls
      summary: Set the active voice provider (superadmin)
      description: >-
        Switches the active voice provider for the organization to either
        `twilio` or `sinch`. The target provider must already be configured
        (credentials present); otherwise the call is rejected. Superadmin only.
      operationId: post_calls_providers_active
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallsSetActiveVoiceProviderRequest'
      responses:
        '200':
          description: Active provider switched
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsSimpleSuccessResponse'
        '400':
          description: Provider not configured or invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '401':
          description: Unauthorized or not a superadmin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Failed to set active provider
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsSetActiveVoiceProviderRequest:
      type: object
      properties:
        provider:
          type: string
          enum:
            - twilio
            - sinch
          description: >-
            Voice provider to activate for the org; must already have
            credentials configured.
      required:
        - provider
      additionalProperties: true
      example:
        provider: sinch
    CallsSimpleSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
      required:
        - success
      additionalProperties: true
      example:
        success: true
        message: Configuration saved
    CallsErrorResponse:
      type: object
      description: >-
        Error envelope used across most calls endpoints. Some endpoints wrap a
        string error; validation endpoints (parseContractInput) return a
        structured `error` object with `code` and `details`.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
              additionalProperties: true
        code:
          type: string
          description: >-
            Stable error code on certain errors (e.g. `NUMBER_NOT_ON_TRUNK`,
            `AGENT_NOT_SYNCED`, `OUTBOUND_IN_FLIGHT`).
      additionalProperties: true
      example:
        success: false
        error: Call not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````