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

# Get full voice provider configuration (superadmin)

> Returns the configured Twilio and Sinch credentials for the org plus the active provider and the caller's `voicePhoneNumbers` array. Superadmin only — response includes raw account SIDs / API keys. Superadmins may pass `?organizationId=` to inspect another tenant.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/calls/providers/config
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/config:
    get:
      tags:
        - Calls
      summary: Get full voice provider configuration (superadmin)
      description: >-
        Returns the configured Twilio and Sinch credentials for the org plus the
        active provider and the caller's `voicePhoneNumbers` array. Superadmin
        only — response includes raw account SIDs / API keys. Superadmins may
        pass `?organizationId=` to inspect another tenant.
      operationId: get_calls_providers_config
      parameters:
        - in: query
          name: organizationId
          required: false
          schema:
            type: string
          description: Superadmin-only override to target a different org.
      responses:
        '200':
          description: Provider configuration with credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsVoiceProviderConfigResponse'
        '401':
          description: Unauthorized or not a superadmin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Failed to load configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsVoiceProviderConfigResponse:
      type: object
      properties:
        activeProvider:
          type: string
          nullable: true
          enum:
            - twilio
            - sinch
            - null
        providers:
          type: array
          items:
            $ref: '#/components/schemas/CallsVoiceProviderConfigItem'
        userPhoneNumbers:
          type: array
          items:
            $ref: '#/components/schemas/CallsUserPhoneNumberEntry'
      additionalProperties: true
      example:
        activeProvider: sinch
        providers:
          - provider: sinch
            isEnabled: true
            isConfigured: true
            phoneNumber: '+14165550100'
        userPhoneNumbers:
          - provider: sinch
            phoneNumber: '+14165550100'
            isDefault: true
    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
    CallsVoiceProviderConfigItem:
      type: object
      properties:
        provider:
          type: string
          enum:
            - twilio
            - sinch
        isEnabled:
          type: boolean
        isConfigured:
          type: boolean
        phoneNumber:
          type: string
        twilioAccountSid:
          type: string
        twilioAuthToken:
          type: string
        twilioApiKeySid:
          type: string
        twilioApiKeySecret:
          type: string
        twilioTwimlAppSid:
          type: string
        twilioServiceSid:
          type: string
        sinchApplicationKey:
          type: string
        sinchApplicationSecret:
          type: string
      additionalProperties: true
      example:
        provider: sinch
        isEnabled: true
        isConfigured: true
        phoneNumber: '+14165550100'
        sinchApplicationKey: sinch-app-key-xxxx
        sinchApplicationSecret: sinch-app-secret-xxxx
    CallsUserPhoneNumberEntry:
      type: object
      description: Entry in `User.voicePhoneNumbers`.
      properties:
        provider:
          type: string
          enum:
            - twilio
            - sinch
        phoneNumber:
          type: string
        isDefault:
          type: boolean
        isInboundEnabled:
          type: boolean
        aiEnabled:
          type: boolean
        aiAgentId:
          type: string
          description: Prompt._id linked when AI is enabled.
        elevenlabsPhoneNumberId:
          type: string
          description: ElevenLabs phone-number ID once imported.
        label:
          type: string
      additionalProperties: true
      example:
        provider: sinch
        phoneNumber: '+14165550100'
        isDefault: true
        isInboundEnabled: true
        aiEnabled: false
        label: Main line
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````