> ## 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 WorkOS client id

> Public endpoint that returns the WorkOS client id the SPA needs to bootstrap AuthKit. Returns 500 when WORKOS_CLIENT_ID is not configured on the server.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/auth/workos/client-id
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/auth/workos/client-id:
    get:
      tags:
        - Auth
      summary: Get WorkOS client id
      description: >-
        Public endpoint that returns the WorkOS client id the SPA needs to
        bootstrap AuthKit. Returns 500 when WORKOS_CLIENT_ID is not configured
        on the server.
      operationId: get_auth_workos_client_id
      responses:
        '200':
          description: Client id returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthWorkOSClientIdResponse'
        '500':
          description: WorkOS client id is not configured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
components:
  schemas:
    AuthWorkOSClientIdResponse:
      type: object
      properties:
        clientId:
          type: string
      required:
        - clientId
      additionalProperties: false
      example:
        clientId: client_01HX9R3K4N6P8QZBVTYM2D5A7C
    AuthErrorResponse:
      type: object
      description: >-
        Generic error envelope returned by Auth endpoints. Most paths include
        only `error`; a few add `details`/`code` for diagnostic context.
      properties:
        error:
          type: string
        details:
          type: string
        code:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: Invalid or expired token
        code: TOKEN_EXPIRED

````