> ## Documentation Index
> Fetch the complete documentation index at: https://docs.callvrse.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve agent live-test WebSocket URL

> Returns the provider-backed WebSocket endpoint used by the dashboard live-test preview. Tenant-scoped: the agent must belong to the authenticated customer. Mirrors the gateway's agent-provider URL resolution.



## OpenAPI

````yaml /openapi.json get /v1/agents/{id}/ws
openapi: 3.0.3
info:
  title: Callvrse Telephony Gateway API
  description: >-
    Unified programmable voice gateway API for calls, carriers, DIDs, agent
    sessions, and routing.
  version: 1.0.0
servers:
  - url: http://127.0.0.1:8080
    description: Local development
security: []
paths:
  /v1/agents/{id}/ws:
    get:
      tags:
        - agents
      summary: Resolve agent live-test WebSocket URL
      description: >-
        Returns the provider-backed WebSocket endpoint used by the dashboard
        live-test preview. Tenant-scoped: the agent must belong to the
        authenticated customer. Mirrors the gateway's agent-provider URL
        resolution.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Agent ID
      responses:
        '200':
          description: Resolved agent WebSocket URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                    example: ws://127.0.0.1:8765/ws/receptionist?api_key=...
                  agent_id:
                    type: string
                required:
                  - url
                  - agent_id
        '401':
          description: Unauthenticated
        '404':
          description: Agent not found or not owned by customer
        '409':
          description: No enabled agent provider can reach the agent
        '503':
          description: Agent store or provider registry not configured
      security:
        - BearerAuth: []
        - SessionCookie: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your Tenant API key (or use SANDBOX_API_KEY)

````