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

# Upsert Inbound Route



## OpenAPI

````yaml /openapi.json put /v1/routes
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/routes:
    put:
      tags:
        - Routing
      summary: Upsert Inbound Route
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                route_id:
                  type: string
                  example: route-1
                did_number:
                  type: string
                  example: '+15550000000'
                agent_ws_url:
                  type: string
                  example: ws://127.0.0.1:8765/agent
                voice_engine:
                  type: string
                  example: pipecat
              required:
                - did_number
                - agent_ws_url
      responses:
        '200':
          description: Route created/updated
      security:
        - BearerAuth: []
        - CookieAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your Tenant API key (or use SANDBOX_API_KEY)
    CookieAuth:
      type: apiKey
      in: cookie
      name: callvrse_session
      description: HttpOnly session cookie issued on login

````