# enable

To begin interacting with Webbtc APIs you'll first need to enable the provider. Calling `webbtc.enable()` will prompt the user for permission to use the Webbtc capabilities of the browser. After that, you are free to call any of the other API methods.&#x20;

#### Method&#x20;

```typescript
async function enable(): void;
```

**Example**

```javascript
try {
  if(typeof window.webbtc !== 'undefined') {
    await window.webbtc.enable();
  }
}
catch(error) {
  // User denied permission or cancelled 
  console.log(error);
}
```
