> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # checkPermissions > checkPermissions function in the WebRTC namespace. ### checkPermissions * `Const` **checkPermissions**(`name?`): `Promise` Asynchronously returns whether we have permissions to access the specified resource. Some common parameter values for `name` are `"camera"`, `"microphone"`, and `"speaker"`. In those cases, prefer the dedicated functions [checkCameraPermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-camera-permissions), [checkMicrophonePermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-microphone-permissions), and [checkSpeakerPermissions](/docs/browser-sdk/v3/js/reference/webrtc/check-speaker-permissions). #### Parameters **`name`** `DevicePermissionName` Name of the resource. --- #### Returns `Promise` #### Example ```javascript await SignalWire.WebRTC.checkPermissions("camera"); // true: we have permission for using the camera ``` > checkPermissions function in the WebRTC namespace.