getOrCreateCall

@POST(value = "/video/call/{type}/{id}")
abstract suspend fun getOrCreateCall(@Path(value = "type") type: String, @Path(value = "id") id: String, @Body getOrCreateCallRequest: GetOrCreateCallRequest, @Query(value = "connection_id") connectionId: String? = null): GetOrCreateCallResponse

Get or create a call Gets or creates a new call Sends events: - call.created - call.notification - call.ring Required permissions: - CreateCall - ReadCall - UpdateCallSettings Responses:

  • 201: Successful response

  • 400: Bad request

  • 429: Too many requests

Return

GetOrCreateCallResponse

Parameters

type
id
getOrCreateCallRequest
connectionId

(optional)