---
title: WebSockets
summary: >-
  These endpoints allow you to enable, disable, and check the enablement status
  of the WebSockets product on your services.
url: https://www.fastly.com/documentation/reference/api/products/websockets
---

These endpoints allow you to enable, disable, and check the enablement status of the WebSockets product on your services.

## Data model

| Field | Type | Description |
|-------|------|-------------|
| `_links` | object |  |
| `product` | object |  |
| `service` | object |  |
| `customer` | object |  |
| `services` | array | A list of services with Websockets enabled. |

## API endpoints

### Get product enablement status

**GET** `/enabled-products/v1/websockets/services/{service_id}`

Get the enablement status of the WebSockets product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Enable product

**PUT** `/enabled-products/v1/websockets/services/{service_id}`

Enable the WebSockets product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Disable product

**DELETE** `/enabled-products/v1/websockets/services/{service_id}`

Disable the Websockets product on a service.

**Parameters:**

| Name | Type | In | Required | Description |
|------|------|----|---------|--------------|
| `service_id` | string | path | Yes | Alphanumeric string identifying the service. |

### Get services with product enabled

**GET** `/enabled-products/v1/websockets/services`

Get all the services which have the Websockets product enabled.
