Live

Create a Live WebRTC session or place an outbound SIP call. Start with the Live prompting guide for session configuration and Telephony and SIP for trunk setup and call monitoring.

Set transport.type to webrtc and supply an SDP offer, or set it to sip and supply an E.164 destination and trunk credentials. Outbound SIP calling must be enabled for your organization. Ringing is limited to 3 minutes and connected calls to 2 hours; these limits are not configurable in the request.

Returns 201 Created after session initialization. WebRTC responses include an SDP answer. SIP responses do not wait for the callee to answer. Attach a sideband connection using session.id to monitor SIP call progress.

Each SIP request creates a new call. If a request times out or the connection fails, retry with caution: the original request may have succeeded, and a retry can place another call.

post/live/sessions

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/live/sessions
  • Auth
    HTTP bearer

Request body

Response

Returns 201 Created with a WebRTC answer or an initialized outbound SIP session. A SIP response does not mean the callee has answered.

Changes

    • info

      request property ////////////// list-of-types was widened by adding types array to media type application/json

    • info

      request property ////////////// list-of-types was widened by adding types array to media type application/json

    • info

      request property ////////////// list-of-types was widened by adding types array to media type application/json

    • info

      request property ////////// list-of-types was widened by adding types array to media type application/json

    • info

      request property ////////// list-of-types was widened by adding types array to media type application/json

    • info

      request property ////////// list-of-types was widened by adding types array to media type application/json

    • info

      added the new optional request property ///////

    • info

      added the new optional request property ///////

    • info

      added the new optional request property ///////