SignalWire SIP Endpoints (Legacy) API

Manage SIP endpoints for voice communication. Use SIP Credentials for new integrations.

Operations 5

GET /api/relay/rest/endpoints/sip List SIP endpoints #
POST /api/relay/rest/endpoints/sip Create SIP endpoint #
GET /api/relay/rest/endpoints/sip/{id} Get SIP endpoint #
PUT /api/relay/rest/endpoints/sip/{id} Update SIP endpoint #
DELETE /api/relay/rest/endpoints/sip/{id} Delete SIP endpoint #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/signalwire-sip-endpoints-legacy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

signalwire-sip-endpoints-legacy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SignalWire REST SIP Endpoints (Legacy) API
  version: 1.0.0
  contact:
    name: SignalWire
    url: https://support.signalwire.com/portal/en/newticket?departmentId=1029313000000006907&layoutId=1029313000000074011
    email: support@signalwire.com
  license:
    name: MIT
    url: https://github.com/signalwire/docs/blob/main/LICENSE
  termsOfService: https://signalwire.com/legal/signalwire-cloud-agreement
  description: Manage SIP endpoints for voice communication. Use SIP Credentials for new integrations.
servers:
- url: https://{space_name}.signalwire.com
  description: SignalWire API
  variables:
    space_name:
      default: '{Your_Space_Name}'
      description: Your SignalWire Space name
security:
- SignalWireBasicAuth: []
tags:
- name: SIP Endpoints (Legacy)
  description: Manage SIP endpoints for voice communication. Use SIP Credentials for new integrations.
  externalDocs:
    url: https://signalwire.com/docs/apis
    description: Developer documentation on SignalWire REST APIs
paths:
  /api/relay/rest/endpoints/sip:
    get:
      operationId: list_sip_endpoints
      summary: List SIP endpoints
      description: 'Returns a list of your SIP endpoints.


        This endpoint is deprecated. Use SIP Credentials instead.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.


        Learn more about API scopes.'
      parameters:
      - $ref: '#/components/parameters/ListSipEndpointsQuery.filter_username'
      - $ref: '#/components/parameters/ListSipEndpointsQuery.filter_caller_id'
      - $ref: '#/components/parameters/ListSipEndpointsQuery.page_number'
      - $ref: '#/components/parameters/ListSipEndpointsQuery.page_size'
      - $ref: '#/components/parameters/ListSipEndpointsQuery.page_token'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpointListResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '422':
          description: The request failed validation. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.ValidationError'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - SIP Endpoints (Legacy)
    post:
      operationId: create_sip_endpoint
      summary: Create SIP endpoint
      description: 'Creates a new SIP endpoint.


        This endpoint is deprecated. Use SIP Credentials instead.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.


        Learn more about API scopes.'
      parameters: []
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpointResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '422':
          description: The request failed validation. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.ValidationError'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - SIP Endpoints (Legacy)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSipEndpointRequest'
  /api/relay/rest/endpoints/sip/{id}:
    get:
      operationId: retrieve_sip_endpoint
      summary: Get SIP endpoint
      description: 'Retrieves the details of a SIP endpoint.


        This endpoint is deprecated. Use SIP Credentials instead.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.


        Learn more about API scopes.'
      parameters:
      - $ref: '#/components/parameters/SipEndpointPathID'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpointResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '422':
          description: The request failed validation. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.ValidationError'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - SIP Endpoints (Legacy)
    put:
      operationId: update_sip_endpoint
      summary: Update SIP endpoint
      description: 'Updates a SIP endpoint.


        This endpoint is deprecated. Use SIP Credentials instead.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.


        Learn more about API scopes.'
      parameters:
      - $ref: '#/components/parameters/SipEndpointPathID'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SipEndpointResponse'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '422':
          description: The request failed validation. See errors for details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.ValidationError'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - SIP Endpoints (Legacy)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSipEndpointRequest'
    delete:
      operationId: delete_sip_endpoint
      summary: Delete SIP endpoint
      description: 'Permanently deletes a SIP endpoint.


        This endpoint is deprecated. Use SIP Credentials instead.


        #### Permissions


        The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_.


        Learn more about API scopes.'
      parameters:
      - $ref: '#/components/parameters/SipEndpointPathID'
      responses:
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
        '400':
          description: The request is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode400'
        '401':
          description: Access is unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode401'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode404'
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Types.StatusCodes.StatusCode500'
      tags:
      - SIP Endpoints (Legacy)
components:
  schemas:
    Types.StatusCodes.StatusCode401:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Unauthorized
      unevaluatedProperties:
        not: {}
      description: Access is unauthorized.
    SipEndpointResponse:
      type: object
      required:
      - type
      - id
      - username
      - caller_id
      - send_as
      - ciphers
      - codecs
      - encryption
      - call_handler
      - calling_handler_resource_id
      - call_request_url
      - call_request_method
      - call_fallback_url
      - call_fallback_method
      - call_status_callback_url
      - call_status_callback_method
      - call_laml_application_id
      - call_dialogflow_agent_id
      - call_relay_topic
      - call_relay_topic_status_callback_url
      - call_relay_context
      - call_relay_context_status_callback_url
      - call_relay_application
      - call_video_room_id
      - call_relay_script_url
      properties:
        type:
          type: string
          description: A string representation of the type of object this record is.
          examples:
          - sip_endpoint
        id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: The unique identifier of the SIP endpoint.
          examples:
          - 67075301-69b2-4fc3-8a2c-c95a69a5665e
        username:
          type: string
          description: The username for the SIP endpoint.
          examples:
          - c3p0
        caller_id:
          anyOf:
          - type: string
          - type: 'null'
          description: Friendly Caller ID used as the CNAM when dialing a phone number or the From when dialing another SIP Endpoint.
          examples:
          - C-3P0
        send_as:
          type: string
          description: When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
          examples:
          - random
        ciphers:
          type: array
          items:
            type: string
          description: A list of encryption ciphers this endpoint will support.
        codecs:
          type: array
          items:
            type: string
          description: A list of codecs this endpoint will support.
        encryption:
          type: string
          enum:
          - default
          - required
          - optional
          description: Whether connections to this endpoint require encryption or if encryption is optional.
          examples:
          - required
        call_handler:
          anyOf:
          - $ref: '#/components/schemas/SipEndpointCallHandler'
          - type: 'null'
          description: What type of handler you want to run on inbound calls.
          examples:
          - ai_agent
        calling_handler_resource_id:
          anyOf:
          - $ref: '#/components/schemas/uuid'
          - type: 'null'
          description: The unique identifier of the calling handler resource.
          examples:
          - fe4093d9-58c2-4931-b4b9-5679f82652c6
        call_request_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the LaML URL to access when a call is received. This is only used (and required) when call_handler is set to laml_webhooks.
        call_request_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_request_url. Valid values are GET and POST.
          examples:
          - POST
        call_fallback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the LaML URL to access when the call to call_request_url fails. This is only used (and required) when call_handler is set to laml_webhooks.
        call_fallback_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_fallback_url. Valid values are GET and POST.
          examples:
          - POST
        call_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to laml_webhooks.
        call_status_callback_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_status_callback_url. Valid values are GET and POST.
          examples:
          - POST
        call_laml_application_id:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the ID of the LaML application to forward incoming calls to. This is only used (and required) when call_handler is set to laml_application.
        call_dialogflow_agent_id:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the ID of the Dialogflow agent to forward incoming calls to. This is only used (and required) when call_handler is set to dialogflow.
        call_relay_topic:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay topic to forward incoming calls to. This is only used (and required) when call_handler is set to relay_topic.
          examples:
          - office
        call_relay_topic_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_topic.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_context:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay context to forward incoming calls to. This is only used (and required) when call_handler is set to relay_context.
        call_relay_context_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_context.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_application:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay application to forward incoming calls to. This is only used (and required) when call_handler is set to relay_application.
        call_video_room_id:
          anyOf:
          - $ref: '#/components/schemas/uuid'
          - type: 'null'
          description: A string representing the ID of the Video Room to forward incoming calls to. This is only used (and required) when call_handler is set to video_room.
        call_relay_script_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL of a SWML script to respond to incoming calls. This is only used (and required) when call_handler is set to relay_script.
          examples:
          - https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92
      unevaluatedProperties:
        not: {}
      description: Response containing a single SIP endpoint.
    Types.StatusCodes.StatusCode400:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Bad Request
      unevaluatedProperties:
        not: {}
      description: The request is invalid.
    SipEndpoint:
      type: object
      required:
      - type
      - id
      - username
      - caller_id
      - send_as
      - ciphers
      - codecs
      - encryption
      - call_handler
      - calling_handler_resource_id
      - call_request_url
      - call_request_method
      - call_fallback_url
      - call_fallback_method
      - call_status_callback_url
      - call_status_callback_method
      - call_laml_application_id
      - call_dialogflow_agent_id
      - call_relay_topic
      - call_relay_topic_status_callback_url
      - call_relay_context
      - call_relay_context_status_callback_url
      - call_relay_application
      - call_video_room_id
      - call_relay_script_url
      properties:
        type:
          type: string
          description: A string representation of the type of object this record is.
          examples:
          - sip_endpoint
        id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: The unique identifier of the SIP endpoint.
          examples:
          - 67075301-69b2-4fc3-8a2c-c95a69a5665e
        username:
          type: string
          description: The username for the SIP endpoint.
          examples:
          - c3p0
        caller_id:
          anyOf:
          - type: string
          - type: 'null'
          description: Friendly Caller ID used as the CNAM when dialing a phone number or the From when dialing another SIP Endpoint.
          examples:
          - C-3P0
        send_as:
          type: string
          description: When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
          examples:
          - random
        ciphers:
          type: array
          items:
            type: string
          description: A list of encryption ciphers this endpoint will support.
        codecs:
          type: array
          items:
            type: string
          description: A list of codecs this endpoint will support.
        encryption:
          type: string
          enum:
          - default
          - required
          - optional
          description: Whether connections to this endpoint require encryption or if encryption is optional.
          examples:
          - required
        call_handler:
          anyOf:
          - $ref: '#/components/schemas/SipEndpointCallHandler'
          - type: 'null'
          description: What type of handler you want to run on inbound calls.
          examples:
          - ai_agent
        calling_handler_resource_id:
          anyOf:
          - $ref: '#/components/schemas/uuid'
          - type: 'null'
          description: The unique identifier of the calling handler resource.
          examples:
          - fe4093d9-58c2-4931-b4b9-5679f82652c6
        call_request_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the LaML URL to access when a call is received. This is only used (and required) when call_handler is set to laml_webhooks.
        call_request_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_request_url. Valid values are GET and POST.
          examples:
          - POST
        call_fallback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the LaML URL to access when the call to call_request_url fails. This is only used (and required) when call_handler is set to laml_webhooks.
        call_fallback_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_fallback_url. Valid values are GET and POST.
          examples:
          - POST
        call_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to laml_webhooks.
        call_status_callback_method:
          anyOf:
          - type: string
            enum:
            - GET
            - POST
          - type: 'null'
          description: A string representing the HTTP method to use with call_status_callback_url. Valid values are GET and POST.
          examples:
          - POST
        call_laml_application_id:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the ID of the LaML application to forward incoming calls to. This is only used (and required) when call_handler is set to laml_application.
        call_dialogflow_agent_id:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the ID of the Dialogflow agent to forward incoming calls to. This is only used (and required) when call_handler is set to dialogflow.
        call_relay_topic:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay topic to forward incoming calls to. This is only used (and required) when call_handler is set to relay_topic.
          examples:
          - office
        call_relay_topic_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_topic.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_context:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay context to forward incoming calls to. This is only used (and required) when call_handler is set to relay_context.
        call_relay_context_status_callback_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL to send status change messages to. This is only used (and required) when call_handler is set to relay_context.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_application:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing the Relay application to forward incoming calls to. This is only used (and required) when call_handler is set to relay_application.
        call_video_room_id:
          anyOf:
          - $ref: '#/components/schemas/uuid'
          - type: 'null'
          description: A string representing the ID of the Video Room to forward incoming calls to. This is only used (and required) when call_handler is set to video_room.
        call_relay_script_url:
          anyOf:
          - type: string
          - type: 'null'
          description: A string representing a URL of a SWML script to respond to incoming calls. This is only used (and required) when call_handler is set to relay_script.
          examples:
          - https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92
      unevaluatedProperties:
        not: {}
      description: SIP endpoint model.
    UpdateSipEndpointRequest:
      type: object
      properties:
        username:
          type: string
          description: String representing the username portion of the endpoint. Must be unique across your project and must not contain white space characters or @.
          examples:
          - c3p0
        password:
          type: string
          description: A password to authenticate registrations to this endpoint.
          examples:
          - yavinOrBust
        caller_id:
          type: string
          description: Friendly Caller ID used as the CNAM when dialing a phone number or the From when dialing another SIP Endpoint.
          examples:
          - C-3P0
        send_as:
          type: string
          description: When dialing a PSTN phone number, you must send it From a number you have purchased or verified. send_as indicates which number this endpoint has set as its origination. random indicates it will randomly choose a purchased or verified number from within the project.
          examples:
          - random
        ciphers:
          type: array
          items:
            type: string
          description: A list of encryption ciphers this endpoint will support.
        codecs:
          type: array
          items:
            type: string
          description: A list of codecs this endpoint will support.
        encryption:
          type: string
          enum:
          - default
          - required
          - optional
          description: Specifies the encryption requirements for connections to this endpoint.
          examples:
          - required
        call_handler:
          type: string
          enum:
          - relay_context
          - relay_topic
          - relay_application
          - relay_connector
          - relay_script
          - laml_webhooks
          - laml_application
          - dialogflow
          - video_room
          - call_flow
          - ai_agent
          description: What type of handler you want to run on inbound calls.
          examples:
          - ai_agent
        call_request_url:
          type: string
          description: The LaML URL to access when a call is received. Required when call_handler is laml_webhooks.
        call_request_method:
          type: string
          enum:
          - GET
          - POST
          description: The HTTP method to use with call_request_url.
          examples:
          - POST
        call_fallback_url:
          type: string
          description: The LaML URL to access when the call to call_request_url fails. Required when call_handler is laml_webhooks.
        call_fallback_method:
          type: string
          enum:
          - GET
          - POST
          description: The HTTP method to use with call_fallback_url.
          examples:
          - POST
        call_status_callback_url:
          type: string
          description: A URL to send status change messages to. Required when call_handler is laml_webhooks.
        call_status_callback_method:
          type: string
          enum:
          - GET
          - POST
          description: The HTTP method to use with call_status_callback_url.
          examples:
          - POST
        call_laml_application_id:
          type: string
          description: The ID of the LaML application to forward incoming calls to. Required when call_handler is laml_application.
        call_dialogflow_agent_id:
          type: string
          description: The ID of the Dialogflow agent to forward incoming calls to. Required when call_handler is dialogflow.
        call_relay_topic:
          type: string
          description: The Relay topic to forward incoming calls to. Required when call_handler is relay_topic.
          examples:
          - office
        call_relay_topic_status_callback_url:
          type: string
          description: A URL to send status change messages to. Required when call_handler is relay_topic.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_context:
          type: string
          description: The Relay context to forward incoming calls to. Required when call_handler is relay_context.
          examples:
          - office
        call_relay_context_status_callback_url:
          type: string
          description: A URL to send status change messages to. Required when call_handler is relay_context.
          examples:
          - https://myapplication/handle_relay_callbacks
        call_relay_application:
          type: string
          description: The Relay application to forward incoming calls to. Required when call_handler is relay_application.
          examples:
          - my-relay-app
        call_video_room_id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: The ID of the Video Room to forward incoming calls to. Required when call_handler is video_room.
        call_flow_id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: The ID of the Call Flow to forward incoming calls to. Required when call_handler is call_flow.
        call_flow_version:
          type: string
          description: The version of the Call Flow to use. Valid values are 'working_copy' or 'current_deployed'.
        call_ai_agent_id:
          allOf:
          - $ref: '#/components/schemas/uuid'
          description: The ID of the AI Agent to forward incoming calls to. Required when call_handler is ai_agent.
        call_relay_script_url:
          type: string
          description: A URL of a SWML script to respond to incoming calls. Required when call_handler is relay_script.
          examples:
          - https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92
      unevaluatedProperties:
        not: {}
      description: Request body for updating a SIP endpoint.
    Types.StatusCodes.StatusCode404:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - Not Found
      unevaluatedProperties:
        not: {}
      description: The server cannot find the requested resource.
    Types.StatusCodes.SpaceApiErrorItem:
      type: object
      required:
      - detail
      - status
      - title
      - code
      properties:
        detail:
          type: string
          description: A description of what caused the error.
          examples:
          - Label can't be blank
        status:
          type: string
          description: The HTTP status code.
          examples:
          - '422'
        title:
          type: string
          description: A short summary of the error type.
          examples:
          - Invalid Attribute
        code:
          type: string
          description: The error code.
          examples:
          - '422'
      unevaluatedProperties:
        not: {}
      description: Details about a specific validation error.
    PaginationLinks:
      type: object
      required:
      - self
      - first
      properties:
        self:
          type: string
          description: Link to the current page.
        first:
          type: string
          description: Link to the first page.
        next:
          type: string
          description: Link to the next page. Only present when there are more results.
        prev:
          type: string
          description: Link to the previous page. Only present when not on the first page.
      unevaluatedProperties:
        not: {}
      description: Pagination links for list responses.
    Types.StatusCodes.StatusCode500:
    

# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/signalwire/refs/heads/main/openapi/signalwire-sip-endpoints-legacy-api-openapi.yml