> For the complete documentation index, see [llms.txt](https://ninjapay.gitbook.io/webupi-protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ninjapay.gitbook.io/webupi-protocol/how-to/webupi-reference/webupi.getupiid.md).

# webUPI.getUPIId()

Request the user's UPI ID. This can be used for sending payment requests to the user.

#### **Method**

```jsx

async function getUPIId(): GetUPIIdResponse;

```

#### **Response**

```jsx

interface GetUPIIdResponse {
  upiId: string;
}

```

#### **Code Example**

```jsx

await webUPI.enable();
const upiId = await webUPI.getUPIId();
console.log(upiId);
```
