POST/realtime/calls

Create call

Create a new Realtime API call over WebRTC and receive the SDP answer needed to complete the peer connection.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 body fields
sdpstringrequired
WebRTC Session Description Protocol (SDP) offer generated by the caller.
sessionobjectoptional
Optional session configuration to apply before the realtime session is created. Use the same parameters you would send in a [`create client secret`](https://developers.openai.com/api/reference/resources/realtime/subresources/client_secrets/methods/create) request.

1 status code
201Realtime call created successfully.