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

# Generate a Sinch Voice SDK token

> Mints a short-lived (10-minute) Sinch RTC JWT scoped to the authenticated user, plus the application key and the user's default Sinch caller ID. Required for the Sinch Web/Mobile SDK to register and place PSTN calls.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/calls/token/sinch
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/token/sinch:
    get:
      tags:
        - Calls
      summary: Generate a Sinch Voice SDK token
      description: >-
        Mints a short-lived (10-minute) Sinch RTC JWT scoped to the
        authenticated user, plus the application key and the user's default
        Sinch caller ID. Required for the Sinch Web/Mobile SDK to register and
        place PSTN calls.
      operationId: get_calls_token_sinch
      responses:
        '200':
          description: Sinch RTC token + caller identifier
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsSinchTokenResponse'
        '400':
          description: Sinch credentials not configured for this org
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Failed to generate token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsSinchTokenResponse:
      type: object
      properties:
        token:
          type: string
          description: Sinch RTC JWT (HS256, 10-minute expiry).
        applicationKey:
          type: string
        userId:
          type: string
        callerIdentifier:
          type: string
          description: >-
            User's default Sinch phone number used as the caller ID for PSTN
            calls. May be empty if not configured.
        expiresIn:
          type: integer
          description: Seconds until expiry (always 600).
      required:
        - token
        - applicationKey
        - userId
        - expiresIn
      additionalProperties: true
      example:
        token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.example.token
        applicationKey: sinch-app-key-xxxx
        userId: 64f0a1b2c3d4e5f6a7b8c9d4
        callerIdentifier: '+14165550100'
        expiresIn: 600
    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

````