---
title: Client.id
slug: Web/API/Client/id
tags:
  - API
  - Client
  - Experimental
  - NeedsExample
  - Property
  - Reference
  - Service Workers
  - ServiceWorker
  - id
browser-compat: api.Client.id
---
{{APIRef("Service Workers API")}}

The **`id`** read-only property of the {{domxref("Client")}} interface returns the universally unique identifier of the {{domxref("Client")}} object.

## Syntax

```js
var clientId = client.id;
```

## Example

```js
TBD
```

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
