> ## Documentation Index
> Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt
> Use this file to discover all available pages before exploring further.
# requestOpenExternalUrl
API reference for the requestOpenExternalUrl method.
Opens an external URL.
The URL is opened natively, such as in a new browser tab on desktop or in a browser sheet on mobile.
In some browsers, the user must enable popup permissions before any URL can be opened.
## Usage
### Open an external URL
```typescript
import { requestOpenExternalUrl } from '@canva/platform';
await requestOpenExternalUrl({
url: 'https://www.example.com',
});
```
### Detect when a user navigates to the external URL
```typescript
import { requestOpenExternalUrl } from '@canva/platform';
const response = await requestOpenExternalUrl({
url: 'https://www.example.com',
});
if (response.status === 'completed') {
// URL opened successfully
}
```
### Detect when a user doesn't navigate to the external URL
```typescript
import { requestOpenExternalUrl } from '@canva/platform';
const response = await requestOpenExternalUrl({
url: 'https://www.example.com',
});
if (response.status === 'aborted') {
// User declined to open URL
}
```
## Parameters
Options for prompting the user to open an external URL.
Properties of request>}>
The URL to open.
## Returns
The result of prompting the user to open an external URL. This is a `Promise` that resolves with the following object:
The result when a user agrees to navigate to an external URL.
The status of the request.
The only valid value is `"completed"`.
The result when a user doesn't agree to navigate to an external URL.
The status of the request.
The only valid value is `"aborted"`.